/* ─── TOKENS ─────────────────────────────── */
:root {
  --bg: #f4f0e8;
  --ink: #111008;
  --ink2: rgba(17,16,8,.5);
  --accent: #c9763a;
  --accent2: #e8924e;
  --line: rgba(17,16,8,.1);
  --serif: 'Cormorant', Georgia, serif;
  --sans: 'Syne', sans-serif;
  --mono: 'DM Mono', monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ─── NAV ─────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: rgba(244,240,232,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--sans); font-weight: 800; font-size: 17px;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink2); transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; background: var(--ink); color: var(--bg);
  padding: 10px 22px; transition: background .2s;
}
.nav-cta:hover { background: var(--accent); }

/* ─── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 88px;
  overflow: hidden;
}

/* Pure CSS animated mesh gradient */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(201,118,58,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(232,146,78,.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 60% 90%, rgba(220,190,140,.18) 0%, transparent 60%),
    radial-gradient(ellipse 90% 40% at 10% 10%, rgba(244,224,180,.2) 0%, transparent 50%),
    var(--bg);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%; }
  33%  { background-position: 30% 20%, 70% 30%, 80% 70%, 20% 40%; }
  66%  { background-position: 60% 10%, 40% 60%, 20% 40%, 80% 20%; }
  100% { background-position: 10% 50%, 90% 10%, 60% 80%, 30% 70%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-hed {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 128px);
  line-height: .9;
  letter-spacing: -.01em;
  margin-bottom: 32px;
  overflow: hidden;
}

.hero-hed .line {
  display: block;
}

.hero-hed em {
  display: block;
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink2);
  max-width: 44ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 88px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: drop 2.2s ease-in-out infinite 1s;
}

@keyframes drop {
  0%   { top: -100%; }
  100% { top: 200%; }
}

.hero-scroll span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink2);
  writing-mode: vertical-rl;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-block { display: block; text-align: center; width: 100%; padding: 18px; }
.btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* ─── SECTION LABEL ──────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-label--light { color: rgba(244,240,232,.35); }
.section-label--light::after { background: rgba(244,240,232,.12); }

/* ─── HOW IT WORKS ───────────────────────── */
.how {
  padding: 120px 48px;
  border-top: 1px solid var(--line);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.how-step {
  background: var(--bg);
  padding: 56px 44px;
  transition: background .3s;
}
.how-step:hover { background: #ede9e0; }

.step-num {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 300;
  color: rgba(17,16,8,.08);
  line-height: 1;
  margin-bottom: 24px;
}

.step-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.2;
}

.step-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink2);
}

/* ─── DEMOS ──────────────────────────────── */
.demos {
  padding: 120px 48px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.demos-header { margin-bottom: 56px; }

.demos-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--bg);
  margin-bottom: 12px;
  line-height: 1;
}

.demos-sub {
  font-size: 14px;
  color: rgba(244,240,232,.4);
  line-height: 1.8;
  max-width: 48ch;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.06);
}

.demo-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
}

.demo-bg {
  position: absolute;
  inset: 0;
  transition: transform .6s var(--ease);
}
.demo-card:hover .demo-bg { transform: scale(1.05); }

.demo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

.demo-bg--barbers    { background: radial-gradient(ellipse at 30% 70%, #3a1c08 0%, #1a0e04 100%); }
.demo-bg--restaurant { background: radial-gradient(ellipse at 60% 40%, #4a1a08 0%, #1a0804 100%); }
.demo-bg--accountant { background: radial-gradient(ellipse at 50% 50%, #0a1828 0%, #060e18 100%); }
.demo-bg--pt         { background: radial-gradient(ellipse at 30% 60%, #1a1a2a 0%, #080808 100%); }
.demo-bg--cafe       { background: radial-gradient(ellipse at 70% 30%, #2a1c08 0%, #140e04 100%); }

.demo-card-content {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.demo-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
}

.demo-card-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.1;
}

.demo-card-feature {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
  line-height: 1.5;
}

.demo-card-url {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.demo-card:hover .demo-card-url { opacity: 1; transform: translateY(0); }

/* ─── PRICING ─────────────────────────────── */
.pricing {
  padding: 120px 48px;
  border-top: 1px solid var(--line);
}

.pricing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pricing-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 40px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pricing-list li {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pricing-list li::before {
  content: '—';
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-r {
  background: var(--ink);
  padding: 56px 48px;
  text-align: center;
}

.pricing-amount {
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-cur {
  font-size: 48px;
  vertical-align: top;
  margin-top: 18px;
  display: inline-block;
}

.pricing-once {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,240,232,.28);
  margin-bottom: 36px;
}

.pricing-or {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(244,240,232,.25);
  text-align: center;
  margin: 14px 0;
}

.btn-contact {
  display: block;
  text-align: center;
  width: 100%;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(244,240,232,.7);
  border: 1px solid rgba(244,240,232,.3);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-contact:hover {
  color: #f4f0e8;
  border-color: rgba(244,240,232,.6);
  background: rgba(244,240,232,.06);
}

.pricing-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(244,240,232,.22);
  margin-top: 16px;
  line-height: 1.7;
}

.contact-form-wrap { width: 100%; }

.cf-input {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(244,240,232,.15);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(244,240,232,.8);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.cf-input::placeholder { color: rgba(244,240,232,.28); }
.cf-input:focus { border-color: rgba(244,240,232,.4); }

.cf-textarea { resize: vertical; min-height: 96px; }

.contact-confirm {
  display: none;
  text-align: center;
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(244,240,232,.6);
}

/* ─── FAQ ─────────────────────────────────── */
.faq {
  padding: 120px 48px;
  border-top: 1px solid var(--line);
  background: #edebe2;
}

.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-list {}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  text-align: left;
  gap: 24px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }

.faq-icon {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.faq-a p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink2);
  padding-bottom: 24px;
}

/* ─── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 48px;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
}

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,240,232,.3);
  transition: color .2s;
}
.footer-links a:hover { color: var(--bg); }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-style: normal;
}
.footer-right a,
.footer-right span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(244,240,232,.3);
}
.footer-right a:hover { color: var(--accent2); }

/* ─── GSAP INITIAL STATES ─────────────────── */
/* Set only on specific animated elements, not blanket */
.hero-tag,
.hero-hed .line,
.hero-hed em,
.hero-sub,
.hero-actions {
  will-change: transform, opacity;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  #nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px 72px; }
  .hero-scroll { display: none; }
  .how,
  .demos,
  .pricing,
  .faq { padding: 80px 24px; }
  .how-steps { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr; }
  .pricing-inner { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-right { align-items: flex-start; }
}

/* ─── DARK MODE ───────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0a;
    --ink: #f0ece4;
    --ink2: rgba(240,236,228,.5);
    --line: rgba(240,236,228,.12);
  }

  #nav { background: rgba(15,14,10,.94); }

  .faq { background: #161410; }

  .step-num { color: var(--accent); }
  .how-step:hover { background: #1a1813; }
  .pricing-amount { color: var(--accent); }

  /* keep pricing panel and footer always dark */
  .pricing-r { background: #1c1a14; }
  footer { background: #1c1a14; }
}
