/* ============================================================
   FOLKZEN — futuristic AI-driven marketing site
   Dark theme · teal/violet neon · glassmorphism
   ============================================================ */

:root,
[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #ffffff;
  --bg-3: #eef1f7;
  --teal: #0d9488;
  --teal-dim: rgba(13, 148, 136, 0.1);
  --violet: #7c5cf0;
  --violet-dim: rgba(124, 92, 240, 0.1);
  --grad: linear-gradient(135deg, #14b8a6 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(20,184,166,.12), rgba(139,92,246,.12));
  --text: #0e1626;
  --muted: #4b5568;
  --muted-2: #7a8499;
  --glass: rgba(14, 22, 38, 0.035);
  --glass-border: rgba(14, 22, 38, 0.12);
  --card-shadow: 0 20px 60px rgba(14, 22, 38, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --maxw: 1180px;
}

[data-theme="dark"] {
  --bg: #04060d;
  --bg-2: #080c18;
  --bg-3: #0b1122;
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.12);
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.12);
  --grad: linear-gradient(135deg, #2dd4bf 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(45,212,191,.14), rgba(139,92,246,.14));
  --text: #eef1f8;
  --muted: #9aa3b8;
  --muted-2: #6b7490;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 12% -4%, rgba(45, 212, 191, 0.09), transparent 60%),
    radial-gradient(1000px 520px at 88% 6%, rgba(139, 92, 246, 0.11), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(45, 212, 191, 0.05), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: var(--teal-dim);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.violet { color: #c4b5fd; border-color: rgba(139,92,246,.3); background: var(--violet-dim); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.section { padding: 104px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.left { text-align: left; margin: 0 0 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.28), 0 8px 32px rgba(139, 92, 246, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(45, 212, 191, 0.38), 0 14px 44px rgba(139, 92, 246, 0.3); }
.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(45,212,191,.4); background: rgba(255,255,255,.07); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 11px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 6, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--glass-border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--text); background: var(--grad-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 1px solid var(--glass-border); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--text); font-size: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 84px) 0 90px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 700; margin-bottom: 22px; }
.hero .sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13.5px; color: var(--muted-2); }
.hero-note b { color: var(--teal); font-weight: 600; }

.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.hbadge {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--glass-border); background: var(--glass);
  padding: 8px 16px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hbadge span { color: var(--teal); font-weight: 700; margin-right: 6px; }

/* workspace url strip */
.url-strip { margin: 56px auto 0; max-width: 560px; }
.url-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 13px 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  box-shadow: var(--card-shadow);
}
.url-bar .lock { color: var(--teal); }
.url-bar .sub { color: var(--teal); font-weight: 700; }
.url-bar .dim { color: var(--muted-2); }
.url-caption { margin-top: 12px; font-size: 13.5px; color: var(--muted-2); }

/* ---------- glass cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.gcard {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.gcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,.5), rgba(139,92,246,.5), transparent);
  opacity: 0; transition: opacity .25s;
}
.gcard:hover { transform: translateY(-5px); border-color: rgba(45,212,191,.32); box-shadow: var(--card-shadow); }
.gcard:hover::before { opacity: 1; }
.gcard h3 { font-size: 19px; margin: 16px 0 10px; }
.gcard p { color: var(--muted); font-size: 14.8px; }
.gcard ul { list-style: none; margin-top: 14px; }
.gcard ul li { color: var(--muted); font-size: 14px; padding: 5px 0 5px 24px; position: relative; }
.gcard ul li::before { content: "→"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }

.ficon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--grad-soft);
  border: 1px solid rgba(45,212,191,.25);
}

/* ---------- Ask Folkzen demo widget ---------- */
.ask-widget {
  max-width: 860px; margin: 0 auto;
  background: rgba(8, 12, 24, 0.82);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 0 80px rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.ask-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--glass-border); }
.ask-head .dots { display: flex; gap: 7px; }
.ask-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.ask-head .dots i:first-child { background: #ff5f57; } .ask-head .dots i:nth-child(2) { background: #febc2e; } .ask-head .dots i:nth-child(3) { background: #28c840; }
.ask-head .title { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.ask-head .title em { font-style: normal; color: var(--teal); }
.ask-head .live { margin-left: auto; font-size: 12px; color: var(--teal); display: flex; align-items: center; gap: 7px; }
.ask-head .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 1.6s infinite; }
.ask-qs { display: flex; gap: 10px; padding: 18px 22px 4px; flex-wrap: wrap; }
.ask-q {
  font-size: 13.5px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--muted);
  transition: all .18s;
}
.ask-q:hover { color: var(--text); border-color: rgba(45,212,191,.45); }
.ask-q.active { background: var(--grad-soft); border-color: rgba(45,212,191,.5); color: var(--text); }
.ask-body { padding: 20px 22px 26px; min-height: 300px; }
.ask-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.ask-avatar {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad); display: grid; place-items: center;
  font-size: 16px; color: #04121a; font-weight: 800;
}
.ask-avatar.user { background: rgba(255,255,255,.1); border: 1px solid var(--glass-border); color: var(--text); font-size: 14px; }
.ask-bubble {
  background: rgba(255,255,255,.045); border: 1px solid var(--glass-border);
  border-radius: 4px 16px 16px 16px; padding: 13px 17px; font-size: 14.5px; max-width: 100%;
}
.ask-msg.user-msg { flex-direction: row-reverse; }
.ask-msg.user-msg .ask-bubble { border-radius: 16px 4px 16px 16px; background: rgba(45,212,191,.09); border-color: rgba(45,212,191,.25); }
.ask-answer { color: var(--text); }
.ask-answer .cursor { display: inline-block; width: 8px; height: 17px; background: var(--teal); vertical-align: -3px; animation: blink 0.8s infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.ask-chart { margin-top: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 14px; padding: 18px; }
.ask-chart h4 { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 14px; font-family: var(--font-body); letter-spacing: 0.02em; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 6px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 54px; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--teal), rgba(45,212,191,.25));
  height: 0; transition: height 1s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 18px rgba(45,212,191,.25);
}
.bar-group:nth-child(even) .bar { background: linear-gradient(180deg, var(--violet), rgba(139,92,246,.25)); box-shadow: 0 0 18px rgba(139,92,246,.25); }
.bar-label { font-size: 11.5px; color: var(--muted-2); }
.bar-val { font-size: 12px; font-weight: 700; color: var(--text); opacity: 0; transition: opacity .5s .5s; }
.ask-chart.done .bar-val { opacity: 1; }
.ask-list { margin: 12px 0 0; list-style: none; }
.ask-list li { font-size: 14px; color: var(--muted); padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed rgba(255,255,255,.06); }
.ask-list li:last-child { border-bottom: none; }
.ask-list li::before { content: "⚡"; position: absolute; left: 0; font-size: 13px; }
.ask-list li b { color: var(--text); }
.ask-note { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.ask-note i { color: var(--teal); font-style: normal; }

/* ---------- browser-frame screenshots ---------- */
.shot { margin: 0 auto; max-width: 980px; }
.browser {
  background: #0a0f1e;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 0 100px rgba(45, 212, 191, 0.06);
}
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,.02); }
.browser-bar .dots { display: flex; gap: 7px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3350; }
.browser-bar .dots i:first-child { background: #ff5f57; } .browser-bar .dots i:nth-child(2) { background: #febc2e; } .browser-bar .dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--muted);
  background: rgba(255,255,255,.04); border-radius: 8px; padding: 6px 14px; text-align: center;
}
.browser-url b { color: var(--teal); font-weight: 600; }
.shot-caption { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.shot-caption b { color: var(--text); }

/* dashboard mockup */
.dash { display: flex; min-height: 420px; text-align: left; }
.dash-side { width: 190px; flex-shrink: 0; background: rgba(255,255,255,.025); border-right: 1px solid var(--glass-border); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 4px 10px 16px; }
.dash-logo i { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; font-size: 13px; color: #04121a; font-style: normal; font-weight: 800; }
.dash-nav { font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-radius: 9px; display: flex; gap: 10px; align-items: center; }
.dash-nav.on { background: var(--grad-soft); color: var(--text); border: 1px solid rgba(45,212,191,.25); }
.dash-main { flex: 1; padding: 24px 26px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-top h4 { font-size: 18px; }
.dash-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.dash-user i { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-style: normal; font-weight: 700; color: #04121a; font-size: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); border-radius: 13px; padding: 15px 16px; }
.stat .k { font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat .v { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.stat .v em { font-style: normal; font-size: 13px; color: var(--teal); }
.stat .d { font-size: 12px; margin-top: 4px; }
.stat .d.up { color: var(--teal); } .stat .d.warn { color: #fbbf24; }
.mtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtable th { text-align: left; color: var(--muted-2); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; padding: 10px 12px; border-bottom: 1px solid var(--glass-border); }
.mtable td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.045); color: var(--muted); }
.mtable td:first-child { color: var(--text); font-weight: 600; }
.mtable tr:last-child td { border-bottom: none; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.pill.ok { background: rgba(45,212,191,.13); color: var(--teal); border: 1px solid rgba(45,212,191,.3); }
.pill.warn { background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.pill.info { background: rgba(139,92,246,.13); color: #c4b5fd; border: 1px solid rgba(139,92,246,.3); }
.pill.bad { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.3); }

/* invoice mockup */
.invoice-doc { background: #f7f9fc; color: #1a2233; border-radius: 6px; margin: 26px; padding: 34px 36px; text-align: left; }
.invoice-doc .inv-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.invoice-doc .inv-brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.invoice-doc .inv-title { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.invoice-doc .inv-meta { font-size: 12.5px; color: #5b6478; text-align: right; line-height: 1.7; }
.invoice-doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 18px 0; }
.invoice-doc th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a93a8; padding: 9px 8px; border-bottom: 2px solid #e3e8f2; }
.invoice-doc td { padding: 11px 8px; border-bottom: 1px solid #edf0f6; }
.invoice-doc .inv-total { display: flex; justify-content: flex-end; margin-top: 6px; }
.invoice-doc .inv-total div { text-align: right; font-size: 13.5px; color: #5b6478; line-height: 2; }
.invoice-doc .inv-total b { font-family: var(--font-display); font-size: 22px; color: #0b1122; }
.inv-stamp { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 6px 14px; border-radius: 8px; transform: rotate(-4deg); }
.inv-stamp.sent { color: #0e7490; border: 2px solid #0e7490; background: rgba(14,116,144,.07); }
.po-bar { margin-top: 16px; background: #eef1f7; border-radius: 10px; padding: 14px 16px; font-size: 12.5px; color: #5b6478; }
.po-track { height: 9px; background: #dde3ee; border-radius: 99px; margin-top: 9px; overflow: hidden; }
.po-fill { height: 100%; width: 62%; background: var(--grad); border-radius: 99px; }

/* chat mockup */
.chatmock { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 380px; text-align: left; }
.chatmock .ask-msg { margin: 0; }

/* ---------- split / steps ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.split p.lead { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.checklist { list-style: none; margin-top: 8px; }
.checklist li { padding: 11px 0 11px 38px; position: relative; color: var(--text); font-size: 15.5px; border-bottom: 1px solid rgba(255,255,255,.05); }
.checklist li:last-child { border-bottom: none; }
.checklist li small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 11px;
  width: 24px; height: 24px; border-radius: 8px; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; color: #04121a; background: var(--grad);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; }
.step .n {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #04121a; margin-bottom: 18px;
  box-shadow: 0 6px 22px rgba(45,212,191,.3);
}

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(45,212,191,.45); background: linear-gradient(180deg, rgba(45,212,191,.07), rgba(139,92,246,.07)), var(--glass); box-shadow: 0 0 60px rgba(45,212,191,.1), var(--card-shadow); }
.price-tag { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.price-amount { font-family: var(--font-display); font-size: 52px; font-weight: 800; letter-spacing: -0.03em; }
.price-amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 14.5px; margin: 10px 0 22px; }
.price-card .btn { margin-top: auto; }
.faq { max-width: 760px; margin: 70px auto 0; }
.faq-item { border: 1px solid var(--glass-border); background: var(--glass); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; color: var(--text); font-family: var(--font-display); font-size: 16px; font-weight: 600; text-align: left; padding: 19px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .fx { color: var(--teal); font-size: 20px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.8px; }

/* ---------- architecture diagram ---------- */
.arch-diagram { max-width: 960px; margin: 0 auto; }
.arch-svg { width: 100%; height: auto; }
.arch-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.arch-note .gcard { padding: 22px; }
.arch-note h4 { font-size: 15.5px; margin-bottom: 8px; }
.arch-note p { font-size: 13.8px; }

/* ---------- use cases ---------- */
.uc-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; overflow: hidden; padding: 0; }
.uc-visual {
  min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 38px 34px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(45,212,191,.1), rgba(139,92,246,.12));
}
.uc-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 34px 34px; }
.uc-visual > * { position: relative; z-index: 1; }
.uc-visual .big { font-family: var(--font-display); font-size: 46px; }
.uc-visual .cap { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.uc-body { padding: 38px 36px; }
.uc-body h3 { font-size: 23px; margin-bottom: 12px; }
.uc-body p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.uc-body p b { color: var(--text); }
.uc-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.uc-stack span { font-size: 12.5px; padding: 6px 13px; border-radius: 999px; background: var(--grad-soft); border: 1px solid rgba(45,212,191,.25); color: var(--text); }

/* ---------- forms ---------- */
.form-card { max-width: 640px; margin: 0 auto; padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.045); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 13px 15px; color: var(--text);
  font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field select option { background: #0b1122; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }
.form-status { margin-top: 18px; padding: 15px 18px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.35); color: var(--teal); }
.form-status.err { display: block; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; }
.form-status small { display: block; margin-top: 6px; opacity: .8; font-size: 13px; }

/* ---------- CTA band / footer ---------- */
.cta-band {
  border-radius: 28px; padding: 70px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(45,212,191,.1), rgba(139,92,246,.12)), var(--bg-2);
  border: 1px solid var(--glass-border);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(139,92,246,.18), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; font-size: 17px; }

footer { border-top: 1px solid var(--glass-border); padding: 60px 0 34px; margin-top: 40px; background: rgba(4,6,13,.6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; margin-bottom: 44px; }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; font-family: var(--font-body); }
.foot-grid ul { list-style: none; }
.foot-grid ul a { color: var(--muted); font-size: 14.5px; display: block; padding: 5px 0; transition: color .15s; }
.foot-grid ul a:hover { color: var(--teal); }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 54px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto; }

/* ---------- feature deep dive ---------- */
.feat-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.feat-block:last-child { border-bottom: none; }
.feat-block.flip > div:first-child { order: 2; }
.feat-block h3 { font-size: 28px; margin-bottom: 14px; }
.feat-block p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.feat-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.mini-mock { background: rgba(8,12,24,.85); border: 1px solid var(--glass-border); border-radius: 16px; padding: 22px; box-shadow: var(--card-shadow); }
.mini-mock h5 { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- strip / marquee ---------- */
.strip { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,.015); padding: 26px 0; overflow: hidden; }
.strip-row { display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.strip-item { font-family: var(--font-display); font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.strip-item i { color: var(--teal); font-style: normal; }

/* ---------- light theme: hard overrides for dark-hardcoded surfaces ---------- */
[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(14,22,38,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,22,38,0.05) 1px, transparent 1px);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 480px at 12% -4%, rgba(20, 184, 166, 0.12), transparent 60%),
    radial-gradient(1000px 520px at 88% 6%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(20, 184, 166, 0.07), transparent 60%),
    var(--bg);
}
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .btn-ghost:hover { background: rgba(14,22,38,.05); }
[data-theme="light"] .nav-links a:hover { background: rgba(14,22,38,.05); }
[data-theme="light"] .url-bar,
[data-theme="light"] .mini-mock { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .ask-input,
[data-theme="light"] .ask-chart { background: rgba(14,22,38,.03); }
[data-theme="light"] .ask-avatar.user { background: rgba(14,22,38,.06); }
[data-theme="light"] .ask-list li { border-bottom-color: rgba(14,22,38,.08); }
[data-theme="light"] .browser-bar { background: rgba(14,22,38,.03); }
[data-theme="light"] .browser-url { background: rgba(14,22,38,.05); }
[data-theme="light"] .dash-side { background: rgba(14,22,38,.03); }
[data-theme="light"] .stat { background: rgba(14,22,38,.03); }
[data-theme="light"] .mtable td,
[data-theme="light"] .checklist li { border-bottom-color: rgba(14,22,38,.08); }
[data-theme="light"] .uc-visual::after {
  background-image: linear-gradient(rgba(14,22,38,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,22,38,.05) 1px, transparent 1px);
}
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: rgba(14,22,38,.04); }
[data-theme="light"] .field select option { background: #ffffff; }
[data-theme="light"] footer { background: rgba(255,255,255,.7); }
[data-theme="light"] .foot-bottom { border-top-color: rgba(14,22,38,.08); }
[data-theme="light"] .strip { background: rgba(14,22,38,.02); }
[data-theme="light"] .feat-block { border-bottom-color: rgba(14,22,38,.08); }
[data-theme="light"] .form-status.err { color: #dc2626; }
[data-theme="light"] .form-status.ok { color: var(--teal); }
[data-theme="light"] .pill.info { color: #7c5cf0; }
[data-theme="light"] .pill.warn { color: #b45309; }
[data-theme="light"] .pill.bad { color: #dc2626; }
[data-theme="light"] #hero-canvas { opacity: 0.5; }
[data-theme="light"] ::selection { color: #fff; }
[data-theme="light"] .nav-links.open { background: rgba(255,255,255,.97); }

/* ---------- theme toggle + brand logo ---------- */
.brand-logo { width: 36px; height: 36px; flex-shrink: 0; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: rgba(45,212,191,.4); }
.theme-toggle svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .feat-block { grid-template-columns: 1fr; gap: 36px; }
  .feat-block.flip > div:first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .arch-note { grid-template-columns: 1fr; }
  .uc-card { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dash-side { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 14px 24px 22px;
    background: rgba(4,6,13,.97); border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .burger { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .invoice-doc { margin: 14px; padding: 22px; }
  .hero-ctas .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}
