/* ============================================================
   Urbangate — Marketing design system
   Primary: #00483C  |  Display: Sora  |  Body: Inter
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --green-950: #01201a;
  --green-900: #023028;
  --primary:   #00483c;
  --primary-2: #0a5a4a;
  --primary-3: #127963;
  --mint:      #2fa689;
  --green-100: #d9ebe5;
  --green-50:  #eef6f2;
  --bg-soft:   #f5f9f7;
  --bg:        #ffffff;

  --gold:      #e6b450;
  --gold-600:  #c9922b;

  --ink:   #0a1512;
  --text:  #33423c;
  --muted: #6c7c74;
  --line:  #e4ece8;

  --radius-s: 10px;
  --radius:   16px;
  --radius-l: 24px;
  --radius-xl: 34px;

  --shadow-s: 0 1px 2px rgba(1,32,26,.06), 0 4px 14px rgba(1,32,26,.06);
  --shadow:   0 10px 30px -12px rgba(1,32,26,.18), 0 2px 8px rgba(1,32,26,.05);
  --shadow-l: 0 30px 60px -24px rgba(1,32,26,.28);

  --container: 1180px;
  --gutter: 24px;
  --header-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-3); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(18,121,99,.4); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--green-50), #fff); }
.section--dark { background: radial-gradient(1200px 500px at 80% -10%, rgba(47,166,137,.28), transparent), var(--green-950); color: #d8e7e1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.stack-lg > * + * { margin-top: 28px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-3);
  padding: 6px 14px; border-radius: 999px;
  background: var(--green-50); border: 1px solid var(--green-100);
}
.eyebrow--gold { color: var(--gold-600); background: #fbf3e0; border-color: #f0e0b8; }
.eyebrow--onDark { color: var(--gold); background: rgba(230,180,80,.12); border-color: rgba(230,180,80,.28); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 16px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section-head--onDark p { color: #a7c1b8; }

.lead { font-size: 19px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 24px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--primary-2); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #3a2a06; box-shadow: 0 8px 24px -10px rgba(201,146,43,.7); }
.btn-gold:hover { background: #f0c465; color: #3a2a06; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--green-100); box-shadow: var(--shadow-s); }
.btn-outline:hover { border-color: var(--primary-3); color: var(--primary-3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); padding: 12px 16px; }
.btn-ghost:hover { color: var(--primary-3); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--primary-2); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; padding: 0; color: var(--primary-3); font-weight: 600; gap: 6px; display: inline-flex; align-items: center; }
.btn-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(1,32,26,.5); }
.header .container { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--primary); letter-spacing: -.02em; }
.brand:hover { color: var(--primary); }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand b { font-weight: 700; }
.brand span { color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text); font-weight: 500; font-size: 15.5px;
  padding: 9px 14px; border-radius: 9px; position: relative;
}
.nav a:hover { color: var(--primary); background: var(--green-50); }
.nav a.is-active { color: var(--primary); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(47,166,137,.16), transparent 70%),
    radial-gradient(50% 60% at 8% 0%, rgba(0,72,60,.10), transparent 70%),
    linear-gradient(180deg, var(--green-50), #fff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .34em; background: rgba(230,180,80,.38); z-index: -1; border-radius: 4px; }
.hero p.sub { font-size: 20px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero .btn-row .btn { min-width: 0; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); font-weight: 500; }
.hero-meta .item svg { width: 20px; height: 20px; color: var(--primary-3); flex: none; }

.hero-visual { position: relative; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-s); position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-100); }
.card--flat:hover { transform: none; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--primary); border: 1px solid var(--green-100); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--gold { background: #fbf3e0; color: var(--gold-600); border-color: #f0e0b8; }
.icon-badge--onDark { background: rgba(47,166,137,.16); color: var(--mint); border-color: rgba(47,166,137,.3); }

.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); }
.feature-list li svg { width: 22px; height: 22px; flex: none; color: var(--primary-3); margin-top: 1px; }

/* ---------- Module showcase ---------- */
.module-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 44px; box-shadow: var(--shadow); overflow: hidden;
}
.module-card + .module-card { margin-top: 32px; }
.module-card.reverse .module-card__media { order: 2; }
.module-card h3 { font-size: clamp(24px, 3vw, 32px); }
.module-card .tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-3); }
.module-card__media { border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--green-50), var(--green-100)); aspect-ratio: 4/3; display: grid; place-items: center; }
.module-card__media svg { width: 82%; height: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 52px); color: var(--primary); letter-spacing: -.03em; line-height: 1; }
.stat .num .suffix { color: var(--gold-600); }
.stat .label { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 10px; }
.step .step-no {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary); color: #fff; margin-bottom: 16px;
}
.step h4 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.quote p { color: var(--ink); font-size: 16.5px; line-height: 1.6; flex: 1; }
.quote .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex: none; }
.quote .who b { display: block; color: var(--ink); font-size: 15px; }
.quote .who small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; color: var(--ink);
}
.faq-q .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-50); display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; }
.faq-q .chev svg { width: 16px; height: 16px; color: var(--primary); }
.faq-item.is-open .faq-q .chev { transform: rotate(45deg); background: var(--primary); }
.faq-item.is-open .faq-q .chev svg { color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { color: var(--muted); padding: 0 4px 22px; margin: 0; max-width: 720px; }

.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--primary-3); color: var(--primary); }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: 64px; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 90% -20%, rgba(230,180,80,.35), transparent), linear-gradient(135deg, var(--primary), var(--green-950)); box-shadow: var(--shadow-l); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.cta-band p { color: #bfe0d6; max-width: 560px; margin: 0 auto 28px; font-size: 18px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }
.field .req { color: var(--gold-600); }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary-3); box-shadow: 0 0 0 4px rgba(18,121,99,.12); }
.textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13.5px; color: var(--muted); }

.contact-info { display: grid; gap: 18px; }
.contact-info .ci { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ci .icon-badge { margin: 0; width: 48px; height: 48px; }
.contact-info .ci b { display: block; color: var(--ink); font-family: var(--font-display); }
.contact-info .ci span { color: var(--muted); font-size: 15.5px; }

/* ---------- Value / pricing cards ---------- */
.value-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value-card .icon-badge { background: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 72px 0 60px; background: linear-gradient(180deg, var(--green-50), #fff); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(47,166,137,.16), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 16px 0 14px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--primary-3); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: #a7c1b8; padding: 72px 0 32px; }
.footer a { color: #a7c1b8; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand span { color: var(--gold); }
.footer .about-blurb { font-size: 15px; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 11px; font-size: 15px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; }
.footer .socials a:hover { background: rgba(255,255,255,.08); }
.footer .socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- App mock (hero visual) ---------- */
.app-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 18px; position: relative; }
.app-mock .am-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-mock .am-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.app-mock .am-dots { display: flex; gap: 6px; }
.app-mock .am-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--green-100); }
.am-row { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 10px; border: 1px solid var(--line); }
.am-row .am-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--green-100); color: var(--primary); flex: none; }
.am-row .am-ic svg { width: 20px; height: 20px; }
.am-row .am-txt { flex: 1; min-width: 0; }
.am-row .am-txt b { font-family: var(--font-display); font-size: 14px; color: var(--ink); display: block; }
.am-row .am-txt small { font-size: 12px; color: var(--muted); }
.am-pill { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.am-pill.ok { background: #e4f4ec; color: #1c7a52; }
.am-pill.wait { background: #fbf3e0; color: #a9781f; }
.am-pill.live { background: var(--green-50); color: var(--primary); }
.am-qr { width: 96px; height: 96px; border-radius: 12px; background: conic-gradient(from 0deg, var(--primary) 0 25%, var(--green-100) 0 50%, var(--primary) 0 75%, var(--green-100) 0); position: relative; }
.am-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.am-float svg { width: 22px; height: 22px; }
.am-float--1 { top: -22px; left: -26px; }
.am-float--2 { bottom: 26px; right: -28px; }
.am-float .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .module-card { grid-template-columns: 1fr; padding: 32px; }
  .module-card.reverse .module-card__media { order: 0; }
  .module-card__media { max-width: 420px; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 18px var(--gutter) 28px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .32s var(--ease); margin: 0; z-index: 55;
  }
  body.nav-open .nav { transform: none; }
  .nav a { padding: 14px; font-size: 17px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .steps, .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .app-mock .am-float { display: none; }
  .hero { padding: 48px 0 64px; }
  .am-float { display: none; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
