/* ── Tokens ── */
:root {
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --teal-light: #5EEAD4;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --slate: #64748B;
  --ice: #F0FDFA;
  --white: #FFFFFF;
  --font-heading: 'Fraunces', serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.3rem;
}
.nav-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: grid; place-items: center; color: white; font-size: 1.1rem;
}
.nav-tld { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--slate); transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--navy) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: transform .2s, box-shadow .2s !important;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ── Hero ── */
.hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--ice) 0%, #FFFFFF 100%);
  text-align: center;
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(20,184,166,.1);
  color: var(--teal-dark);
  font-size: .85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -.03em;
  margin-bottom: 20px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; line-height: 1.7;
  color: var(--slate); max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Search Bar ── */
.search-bar {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  font-size: 1rem;
}
.search-bar input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: white;
  transition: all .2s;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20,184,166,.1);
}
.search-bar input::placeholder { color: #94A3B8; }

/* ── Section Shared ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.section-header p { font-size: 1.1rem; color: var(--slate); }

/* ── Restaurants Grid ── */
.restaurants { padding: 80px 0 100px; background: white; }
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ── Restaurant Card ── */
.restaurant-card {
  background: #FAFAFA;
  border-radius: 20px;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
  border: 2px solid transparent;
}
.restaurant-card:hover {
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-4px);
  border-color: rgba(20,184,166,.2);
}
.card-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.card-cover-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-cover-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-cover-icon {
  font-size: 3rem;
  color: rgba(255,255,255,.5);
}
.card-logo {
  position: absolute;
  bottom: -24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid white;
}
.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.card-logo-letter {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}
.card-body {
  padding: 36px 24px 24px;
}
.card-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-description {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--slate);
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-meta-item i { font-size: .75rem; }
.card-footer {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
  color: white;
  transition: all .2s;
}
.card-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.card-cta i { font-size: .8rem; transition: transform .2s; }
.restaurant-card:hover .card-cta i { transform: translateX(3px); }

.card-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(16,185,129,.1);
  color: #059669;
  font-size: .78rem;
  font-weight: 700;
}

/* ── Loading & Empty States ── */
.loading-state {
  text-align: center;
  padding: 60px 0;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid #E2E8F0;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: var(--slate); font-size: .95rem; }

.empty-state {
  text-align: center;
  padding: 60px 0;
}
.empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #F1F5F9;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  font-size: 1.5rem; color: var(--slate);
}
.empty-state h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 8px;
}
.empty-state p { color: var(--slate); font-size: .95rem; }

/* ── How it works ── */
.how-it-works { padding: 80px 0; background: var(--ice); }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 24px; }
.step-card {
  background: white; border-radius: 20px; padding: 36px 28px;
  text-align: center; flex: 1; max-width: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--slate); line-height: 1.6; }
.step-arrow { color: #CBD5E1; font-size: 1.5rem; }

/* ── CTA Pro ── */
.cta-pro { padding: 80px 0; background: white; }
.cta-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 28px;
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  color: white;
}
.cta-content { flex: 1; }
.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}
.cta-visual {
  flex-shrink: 0;
}
.cta-icon {
  width: 120px; height: 120px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: grid; place-items: center;
  font-size: 3rem; color: white;
  box-shadow: 0 16px 48px rgba(20,184,166,.3);
}

/* ── Buttons ── */
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white; font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(20,184,166,.3);
  transition: all .2s;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,184,166,.35); }

/* ── Footer ── */
.footer { padding: 80px 0 40px; background: var(--navy); color: #94A3B8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; }
.footer-brand .nav-brand { color: white; }
.footer h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer a { display: block; padding: 6px 0; font-size: .9rem; transition: color .2s; }
.footer a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid #334155; padding-top: 24px;
  text-align: center; font-size: .85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .restaurants-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .cta-card { flex-direction: column; padding: 40px 28px; gap: 32px; text-align: center; }
  .cta-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links a:not(.btn-nav) { display: none; }
}
