/* ==========================================================================
   Madvise — Landing Page
   Design system per DESIGN.md (v0.3). Plus Jakarta Sans, cream + amber + teal.
   ========================================================================== */

:root {
    /* ---- Raw brand colors (theme-independent; never flip) ---- */
    --cream: #F3EBE2;
    --dark: #1B2725;
    --amber: #E8A838;
    --amber-hover: #D4940A;
    --teal: #2A6B5A;
    --error: #E24B4A;
    --success: #2ECC8A;
    --grad: linear-gradient(90deg, #FDC665 0%, #E8A838 50%, #2A6B5A 81%);

    /* ---- Legacy raw tokens (kept as light-theme aliases for back-compat) ---- */
    --card: #FFFFFF;
    --gray: #F1F1F1;
    --ink: #1A1A1A;
    --muted: #5C5C5C;

    /* ---- Semantic tokens — LIGHT theme (default). Flip under [data-theme]. ----
       Components reference these; the brand colors above stay constant. */
    --bg: #F3EBE2;                          /* page background (cream) */
    --surface: #FFFFFF;                     /* card / panel surface */
    --surface-2: #F1F1F1;                   /* input, chip, hover gray */
    --text: #1A1A1A;                        /* primary text */
    --text-muted: #5C5C5C;                  /* secondary text */
    --border: rgba(26, 26, 26, 0.08);       /* hairline border */
    --border-strong: rgba(26, 26, 26, 0.20);/* stronger border */
    --band: #1B2725;                        /* dark "band" sections (diff/final/pcard) */
    --band-surface: #233330;                /* surface inside a band, if needed */
    --band-text: #F3EBE2;                   /* text on a band */
    --band-text-muted: rgba(243, 235, 226, 0.70);
    --band-border: rgba(243, 235, 226, 0.12);
    --nav-glass: rgba(243, 235, 226, 0.60); /* scrolled navbar pill */
    --nav-glass-border: rgba(255, 255, 255, 0.45);
    --nav-glass-opaque: rgba(243, 235, 226, 0.95); /* no-backdrop-filter fallback */
    --hero-base: #F3EBE2;                   /* WebGL hero base color (read by JS) */
    --leak-surface: rgba(243, 235, 226, 0.30);    /* hero light-leak frost */
    --leak-surface-opaque: rgba(243, 235, 226, 0.62);
    --shadow-color: 27, 39, 37;             /* RGB triplet for rgba() shadows */

    /* ---- Frosted-glass tokens (pillar surfaces) — flip under [data-theme] ---- */
    --glass-tint: 255, 255, 255;            /* base film color */
    --glass-film: rgba(255, 255, 255, 0.12);/* opaque-ish base for no-backdrop fallback */
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-hi: rgba(255, 255, 255, 0.55);  /* top inner highlight */

    --maxw: 1280px;
    --pad: 24px;
    color-scheme: light;
}

/* ---- Semantic tokens — DARK theme override ---- */
[data-theme="dark"] {
    --card: #223230;
    --gray: #2A3B38;
    --ink: #F3EBE2;
    --muted: rgba(243, 235, 226, 0.68);

    --bg: #1B2725;                          /* dark green page */
    --surface: #223230;                     /* elevated dark surface (card) */
    --surface-2: #2A3B38;
    --text: #F3EBE2;
    --text-muted: rgba(243, 235, 226, 0.68);
    --border: rgba(243, 235, 226, 0.12);
    --border-strong: rgba(243, 235, 226, 0.28);
    --band: #14201E;                        /* deeper than page → keeps depth */
    --band-surface: #1B2725;
    --band-text: #F3EBE2;
    --band-text-muted: rgba(243, 235, 226, 0.70);
    --band-border: rgba(243, 235, 226, 0.10);
    --nav-glass: rgba(20, 30, 28, 0.62);
    --nav-glass-border: rgba(243, 235, 226, 0.16);
    --nav-glass-opaque: rgba(20, 30, 28, 0.95);
    --hero-base: #1B2725;
    --leak-surface: rgba(27, 39, 37, 0.34);
    --leak-surface-opaque: rgba(20, 30, 28, 0.66);
    --shadow-color: 0, 0, 0;

    /* Frosted glass on dark: warm cream film, softer edges */
    --glass-tint: 243, 235, 226;
    --glass-film: rgba(243, 235, 226, 0.07);
    --glass-border: rgba(243, 235, 226, 0.18);
    --glass-hi: rgba(243, 235, 226, 0.22);
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    transition: background-color 0.4s ease;
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
::selection { background: rgba(232, 168, 56, 0.3); color: var(--dark); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
.mono { font-family: 'Plus Jakarta Sans', sans-serif; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.label {
    font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: 15px;
    padding: 13px 26px; border-radius: 8px; border: none;
    cursor: pointer; transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-amber { background: var(--amber); color: var(--dark); }
.btn-amber:hover { background: var(--amber-hover); box-shadow: 0 0 20px rgba(232, 168, 56, 0.4); }
.btn-grad { background: var(--grad); color: var(--dark); }
.btn-grad:hover { box-shadow: 0 0 26px rgba(232, 168, 56, 0.45); opacity: 0.94; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost-light { background: transparent; color: var(--band-text); border: 1px solid var(--band-border); }
.btn-ghost-light:hover { background: rgba(243, 235, 226, 0.08); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
/* Glassy gradient CTA — per Figma node 72:9: near-vertical brand gradient
   (gold→amber→teal), a faint glass film + glossy top highlight, white text.
   Sizing still comes from .btn / .btn-lg so it matches the rest of the site. */
.btn-glass {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(0deg, rgba(241, 241, 241, 0.05), rgba(241, 241, 241, 0.05)),
        linear-gradient(191deg, #FDC665 0%, #E8A838 48%, #2A6B5A 96%);
    box-shadow: 0 10px 26px rgba(27, 39, 37, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-glass:hover {
    box-shadow: 0 14px 34px rgba(27, 39, 37, 0.34), 0 0 26px rgba(232, 168, 56, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    opacity: 0.97;
}

/* ---------- Navbar — transparent & full-width at the top; on scroll it
   CONTRACTS in width toward center (scale feel) and a frosted-glass pill
   fades in. Height stays ~constant. ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding-top: 18px;
    background: transparent;
    transition: padding-top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* .nav-inner is the SAME element as .wrap (class="wrap nav-inner"): at the top it
   inherits .wrap's full width and is fully transparent (no surface). */
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
    border-radius: 18px;
    background: rgba(243, 235, 226, 0);
    border: 1px solid transparent;
    /* two transparent layers matching the scrolled shadow so it fades in smoothly */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0), 0 12px 34px rgba(27, 39, 37, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease,
                -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
}
/* scrolled (JS toggles .scrolled past 80px): narrower centered glass pill */
.nav.scrolled { padding-top: 10px; }
.nav.scrolled .nav-inner {
    max-width: 920px;
    background: var(--nav-glass);
    border-color: var(--nav-glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 34px rgba(var(--shadow-color), 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
}
/* fallback where backdrop-filter is unsupported: opaque cream pill only once scrolled */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .nav.scrolled .nav-inner { background: var(--nav-glass-opaque); }
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-img { height: 32px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 14px; }
/* Theme toggle — pill matching the lang-switch aesthetic, sits left of it. */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 32px; padding: 0;
    border: none; border-radius: 999px; cursor: pointer;
    background: var(--border); color: var(--text);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: var(--border-strong); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
/* Sun shows in dark mode (click → light); moon shows in light mode (click → dark). */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.lang-switch {
    display: inline-flex; align-items: center; font-size: 13px; font-weight: 600;
    background: var(--border); border-radius: 999px; padding: 4px; gap: 2px;
}
.lang-switch button {
    border: none; background: transparent; font-family: inherit; font-weight: 600;
    font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; color: var(--muted);
    transition: background-color 0.2s, color 0.2s;
}
.lang-switch button.active { background: var(--text); color: var(--bg); }
.nav-links { display: flex; align-items: center; gap: 14px; }
/* Navbar CTA sits a touch shorter than the default .btn height. */
.nav-links .btn-glass { padding-top: 9px; padding-bottom: 9px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger svg { stroke: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
/* Full-bleed interactive particle canvas behind the hero content. Transparent —
   the page background (--bg) shows through, so dots composite directly over it.
   pointer-events:none keeps clicks on the headline/CTAs; z-index:0 sits below
   .hero .wrap (z-index:2). The JS engine (main.js) sizes it DPR-aware. */
.hero-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: block; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 64px; align-items: center; }
.hero-visual { position: relative; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ============================================================================
   Hero scene — coded from Figma. A fixed-size design "stage" (1180×1040) is
   built at natural pixel sizes, then uniformly scaled to the column width via
   --hs-scale (set by JS, with a desktop fallback here). The complex Meta Ads
   dashboard is the dimmed backdrop; three Madvise cards fan over it back→front
   toward the top-right (Hazır → Aktif → Sonuçlandı = the success climax).
   ============================================================================ */
.hero-scene { --hs-scale: .48; position: relative; width: 100%; aspect-ratio: 1180 / 1040; }
.hs-stage {
    position: absolute; top: 0; left: 0; width: 1180px; height: 1040px;
    transform-origin: top left; transform: scale(var(--hs-scale));
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
    /* Gentle continuous float; keyframes carry the JS scale so it composes. */
    @keyframes hsFloat { 0%,100% { transform: scale(var(--hs-scale)) translateY(0); } 50% { transform: scale(var(--hs-scale)) translateY(-16px); } }
    .hs-stage { animation: hsFloat 7.5s ease-in-out infinite; }
}

/* ---- Backdrop: Meta Ads dashboard (intentionally busy + monochrome) ---- */
.hs-dashboard {
    position: absolute; top: 60px; left: 60px; width: 1044px; z-index: 1;
    background: #f4f4f4; border: 1px solid #dcdcdc; border-radius: 22px; overflow: hidden;
    opacity: .6; color: #333; box-shadow: 0 30px 60px rgba(27,39,37,.12);
    -webkit-user-select: none; user-select: none;
}
.hsd-top { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 20px; background: #ececec; border-bottom: 1px solid #d2d2d2; }
.hsd-title strong { display: block; font-size: 16px; font-weight: 700; color: #333; }
.hsd-title span { font-size: 11px; color: #777; }
.hsd-controls { display: flex; gap: 10px; }
.hsd-btn { background: #fff; border: 1px solid #ccc; border-radius: 7px; padding: 6px 11px; font-size: 11px; font-weight: 600; color: #444; }
.hsd-kpis { display: flex; gap: 10px; padding: 14px 20px 6px; }
.hsd-kpi { flex: 1 0 0; min-width: 0; border: 1px solid #d4d4d4; border-radius: 8px; padding: 9px 10px; }
.hsd-kpi > span { font-size: 11px; color: #777; }
.hsd-kpi > div { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-top: 4px; }
.hsd-kpi b { font-size: 15px; font-weight: 700; color: #333; font-variant-numeric: tabular-nums; }
.hsd-kpi i { font-size: 10px; font-style: normal; color: #888; white-space: nowrap; }
.hsd-charts { display: flex; gap: 14px; padding: 12px 20px; }
.hsd-chart { flex: 1.3 0 0; min-width: 0; background: #fff; border: 1px solid #d4d4d4; border-radius: 12px; padding: 12px 14px; }
.hsd-chart--wide { flex: 2 0 0; }
.hsd-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hsd-chart-head b { font-size: 12px; font-weight: 700; color: #333; }
.hsd-legend { display: flex; gap: 12px; }
.hsd-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #777; }
.hsd-legend i { width: 9px; height: 9px; border-radius: 2px; background: #444; }
.hsd-legend i.muted { background: #444; opacity: .45; }
.hsd-plot { position: relative; height: 132px; }
.hsd-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hsd-plot line { stroke: #ededed; stroke-width: 1; }
.hsd-plot .ln-solid { fill: none; stroke: #444; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.hsd-plot .ln-faint { fill: none; stroke: #9a9a9a; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.hsd-yl { position: absolute; left: 0; font-size: 10px; color: #999; transform: translateY(-50%); }
.hsd-xaxis { display: flex; justify-content: space-between; margin-top: 6px; }
.hsd-xaxis span { font-size: 10px; color: #999; }
.hsd-table { padding: 4px 20px 18px; }
.hsd-table-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.hsd-table-head b { font-size: 12px; font-weight: 700; color: #333; }
.hsd-table-head span { font-size: 11px; color: #999; }
.hsd-tbl { border: 1px solid #ddd; border-radius: 10px; overflow: hidden; }
.hsd-tr { display: grid; grid-template-columns: minmax(0,1.5fr) 78px repeat(6, 1fr); gap: 10px; align-items: center; padding: 9px 14px; font-size: 11px; color: #666; }
.hsd-tr > span:not(.c-name):not(.c-st) { text-align: right; font-variant-numeric: tabular-nums; }
.hsd-tr .c-name { color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsd-th { background: #ececec; font-weight: 700; color: #666; }
.hsd-tr.alt { background: #f8f8f8; }
.hsd-tr:not(.hsd-th) { border-top: 1px solid #e6e6e6; }
.hsd-tr i { font-style: normal; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.hsd-tr .tag-active { background: #e6f4f1; color: #356; }
.hsd-tr .tag-paused { background: #f0f0f0; color: #888; }

/* ---- Foreground: Madvise cards ---- */
.hs-card {
    position: absolute; width: 462px; box-sizing: border-box;
    background: #f3ebe2; border: 1px solid rgba(26,26,26,.05); border-radius: 24px; overflow: hidden;
    transform-origin: center center; transform: rotate(var(--rot)) scale(var(--scl));
    box-shadow: 0 2px 8px rgba(27,39,37,.06), 0 26px 60px rgba(27,39,37,.18);
    color: #1a1a1a;
}
.hs-card--back  { left: 36px;  top: 248px; z-index: 2; }
.hs-card--mid   { left: 250px; top: 150px; z-index: 3; }
.hs-card--front { left: 470px; top: 24px;  z-index: 4; }

.hsc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.hsc-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.hsc-tag .hsc-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hsc-tag--amber { background: var(--amber); color: #fff; }
.hsc-tag--teal  { background: var(--teal); color: #fff; }
.hsc-tag--mint  { background: #eaf5f0; color: var(--teal); }
.hsc-more { width: 22px; height: 22px; fill: #b9b3aa; }
.hsc-media { position: relative; margin: 18px 24px 0; height: 215px; border-radius: 16px; overflow: hidden; }
.hsc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsc-media-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.22)); }
.hsc-body { display: flex; flex-direction: column; gap: 26px; padding: 26px 24px 28px; }
.hsc-lines { display: flex; flex-direction: column; gap: 9px; }
.hsc-lines .ln { background: #fff; border-radius: 36px; display: block; }
.hsc-lines .ln-1 { height: 30px; width: 92%; }
.hsc-lines .ln-2 { height: 22px; width: 62%; }
.hsc-lines .ln-row { display: flex; gap: 9px; }
.hsc-lines .ln-3 { height: 22px; width: 92px; }
.hsc-rev { display: flex; flex-direction: column; gap: 3px; color: var(--teal); }
.hsc-rev-num { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hsc-rev-label { font-size: 22px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hsc-chips { display: flex; gap: 12px; }
.hsc-chip { display: inline-flex; align-items: center; gap: 8px; background: #f5f5f5; border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 500; color: #666; }
.hsc-chip svg { width: 16px; height: 16px; fill: none; stroke: #777; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hsc-cta { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 16px; font-size: 22px; font-weight: 700; color: #f3ebe2; }
.hsc-cta--amber { background: var(--amber); }
.hsc-cta--teal  { background: var(--teal); }

/* ---- Entrance: dashboard first, then cards back→front ---- */
.hs-armed .hs-dashboard,
.hs-armed .hs-card { opacity: 0; }
.hs-armed.is-playing .hs-dashboard { animation: hsDashIn .9s ease .1s both; }
.hs-armed.is-playing .hs-card { animation: hsCardIn .9s cubic-bezier(.22,.7,.16,1) var(--delay) both; }
@keyframes hsDashIn {
    from { opacity: 0; transform: translateY(24px) scale(.985); }
    to   { opacity: .6; transform: translateY(0) scale(1); }
}
@keyframes hsCardIn {
    from { opacity: 0; transform: translate(-30px, 76px) rotate(var(--rot)) scale(calc(var(--scl) * .78)); }
    55%  { opacity: 1; }
    to   { opacity: 1; transform: translate(0,0) rotate(var(--rot)) scale(var(--scl)); }
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.accent-text { color: var(--amber); }
.hero h1 .accent-text { color: #2A6B5A; }
[data-theme="dark"] .hero h1 .accent-text { color: var(--amber); }
.hero h1 {
    font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.16;
    letter-spacing: -0.02em; color: var(--text); margin: 0 0 22px;
}
.hero-sub {
    font-size: clamp(15px, 1.5vw, 18px); color: var(--muted); max-width: 520px; margin: 0 auto 0 0;
    font-weight: 400; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; margin: 36px 0 20px; }
.proof-line { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- Dashboard mockup (optional) ---------- */
.mockup {
    margin: 56px auto 0; max-width: 720px; background: var(--band); border-radius: 24px;
    padding: 28px; box-shadow: 0 24px 60px rgba(var(--shadow-color), 0.22); text-align: left; color: var(--band-text);
}
.mockup-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mockup-top .dots { display: flex; gap: 6px; }
.mockup-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 235, 226, 0.18); display: inline-block; }
.badge-active { background: var(--amber); color: var(--dark); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ad-row { display: flex; gap: 18px; align-items: center; }
.ad-thumb {
    width: 76px; height: 76px; border-radius: 12px; flex-shrink: 0;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
}
.ad-thumb svg { stroke: var(--dark); }
.ad-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.ad-name small { display: block; font-weight: 400; font-size: 12px; color: rgba(243, 235, 226, 0.55); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.metric .val { font-size: 24px; font-weight: 800; }
.metric .val.amber { color: var(--amber); }
.metric .val.success { color: var(--success); }
.metric .lbl { font-size: 11px; font-weight: 500; color: rgba(243, 235, 226, 0.6); letter-spacing: 0.04em; }
.ai-strip {
    border-left: 3px solid var(--amber); background: rgba(232, 168, 56, 0.1);
    border-radius: 0 8px 8px 0; padding: 12px 16px;
}
.ai-strip .ai-lbl { font-size: 11px; font-weight: 600; color: var(--amber); letter-spacing: 0.06em; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ai-strip .ai-txt { font-size: 14px; color: var(--band-text); min-height: 21px; }
.ai-strip .cursor { display: inline-block; width: 2px; height: 14px; background: var(--amber); margin-left: 1px; animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Logo bar ---------- */
.logobar { padding: 40px 0; border-top: 1px solid transparent; }
.divider { height: 2px; background: var(--grad); border-radius: 2px; opacity: 0.7; max-width: 240px; margin: 0 auto 28px; }
.logobar p { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 26px; letter-spacing: 0.02em; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll-x 28s linear infinite; }
.sector {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); padding: 12px 22px; border-radius: 999px; white-space: nowrap;
}
.sector .d { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.sec { padding: 96px 0; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; margin-top: 12px; }
.sec-desc { font-size: 16px; color: var(--muted); margin-top: 18px; }

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: var(--band); border-radius: 16px; padding: 30px; color: var(--band-text); border: 1px solid transparent; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pcard:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 0 0 1px rgba(42, 107, 90, 0.45), 0 16px 34px rgba(42, 107, 90, 0.22); }
.pcard .picon { width: 128px; height: 128px; margin-bottom: 20px; }
.pcard .picon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.pcard p { font-size: 14px; color: var(--band-text-muted); line-height: 1.6; }

/* Light theme: brand-aligned light surface + amber hover glow (dark theme keeps the teal band look) */
[data-theme="light"] .pcard {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(var(--shadow-color), 0.05), 0 10px 30px rgba(var(--shadow-color), 0.07);
}
[data-theme="light"] .pcard p { color: var(--text-muted); }
[data-theme="light"] .pcard:hover {
    border-color: rgba(232, 168, 56, 0.55);
    box-shadow: 0 0 0 1px rgba(232, 168, 56, 0.45),
                0 14px 30px rgba(232, 168, 56, 0.28),
                0 26px 60px rgba(232, 168, 56, 0.20);
}

/* ---------- Pillar showcase sections (Tasarım / Kolaylık / Zeki) ----------
   Smartly-style: a gently tilted product-UI FRAME in front of a flat-tinted
   SURFACE panel, with a small PEEK panel behind. Layout alternates via
   grid-column (.pillar--flip) so the DOM stays copy-first for screen readers.
   Theme-aware: amber/teal tints use the fixed brand --acc triplet; the neutral
   pillar uses semantic --surface vars so it flips with the theme. */
.pillar-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.pillar-copy { max-width: 520px; grid-column: 1; grid-row: 1; }
.pillar-stage { grid-column: 2; grid-row: 1; position: relative; min-height: clamp(360px, 42vw, 480px); isolation: isolate; }
.pillar--flip .pillar-copy { grid-column: 2; }
.pillar--flip .pillar-stage { grid-column: 1; }
.pillar-copy .label { display: inline-block; margin-bottom: 16px; }
.pillar-copy h2 { margin-top: 0; }
.pillar-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); line-height: 1.65; margin: 18px 0 28px; max-width: 460px; }

/* Per-pillar accent: brand triplets are constant; neutral flips via semantics.
   --acc drives both the glass tint and the soft glow blobs behind the glass. */
.pillar { --acc: 232, 168, 56; }
.pillar--amber { --acc: 232, 168, 56; }
.pillar--teal { --acc: 42, 107, 90; }
.pillar--neutral { --acc: 232, 168, 56; }

/* Layer 0 — soft accent glow blobs sitting BEHIND the glass, so the frosted
   surfaces have luminous colour to refract instead of frosting flat page bg.
   --py is the scroll-linked parallax offset set per stage from JS. */
.pillar-stage::before {
    content: ''; position: absolute; inset: -6% -8%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(38% 46% at 28% 30%, rgba(var(--acc), 0.55), transparent 72%),
        radial-gradient(44% 52% at 76% 74%, rgba(var(--acc), 0.38), transparent 72%);
    filter: blur(34px); opacity: 0.55;
    translate: 0 calc(var(--py, 0px) * 0.4);
}
.pillar--neutral .pillar-stage::before {
    background:
        radial-gradient(38% 46% at 26% 30%, rgba(232, 168, 56, 0.50), transparent 72%),
        radial-gradient(44% 52% at 78% 74%, rgba(42, 107, 90, 0.46), transparent 72%);
}

/* Layer 1 — frosted-glass surface panel, tilted, bleeding toward the page edge.
   Translucent film + backdrop blur + bright top edge = glassmorphism. */
.pillar-surface {
    position: absolute; inset: 8% -4% 10% 8%; border-radius: 24px; z-index: 1;
    background:
        linear-gradient(135deg, rgba(var(--glass-tint), 0.16), rgba(var(--glass-tint), 0.02) 46%),
        rgba(var(--acc), 0.10);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
        inset 0 1px 0 var(--glass-hi),
        inset 0 -1px 0 rgba(var(--glass-tint), 0.10),
        0 26px 52px -26px rgba(var(--shadow-color), 0.40);
    rotate: -5deg;
    translate: 0 calc(var(--py, 0px) * 0.55);
}
.pillar--flip .pillar-surface { inset: 8% 8% 10% -4%; rotate: 4deg; }
.pillar--neutral .pillar-surface { rotate: -3deg; }

/* Layer 2 — small frosted panel peeking out from behind the frame, tilted the
   other way so the stack reads as layered glass at playful angles. */
.pillar-peek {
    position: absolute; z-index: 2; width: 42%; aspect-ratio: 4 / 3; border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(var(--acc), 0.30), rgba(var(--acc), 0.08)),
        rgba(var(--glass-tint), 0.06);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(11px) saturate(140%);
    backdrop-filter: blur(11px) saturate(140%);
    box-shadow:
        inset 0 1px 0 var(--glass-hi),
        0 18px 36px -16px rgba(var(--shadow-color), 0.32);
    bottom: -16px; right: -16px;
    rotate: 6deg;
    translate: 0 calc(var(--py, 0px) * 0.75);
}
.pillar--flip .pillar-peek { right: auto; left: -16px; rotate: -6deg; }
.pillar--neutral .pillar-peek { rotate: 7deg; }

/* Fallback where backdrop-filter is unsupported: lean on a more opaque film so
   the glass panels still read as solid tinted surfaces, not invisible. */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .pillar-surface { background: linear-gradient(135deg, var(--glass-film), rgba(var(--acc), 0.16)); }
    .pillar-peek { background: linear-gradient(135deg, rgba(var(--acc), 0.30), rgba(var(--acc), 0.16)); }
}

/* Layer 3 — the framed product-UI mock, gently tilted; settles flat on reveal.
   rotate/translate are separate transform properties so the reveal can ease the
   tilt while JS drives the scroll motion. The front card gets a small position
   drift (--py) for depth PLUS the full scroll-velocity nudge (--vy) — the latter
   is the clearly-felt "play" that reacts to scroll direction. */
.pillar-frame {
    position: relative; z-index: 3; width: 88%; max-width: 460px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.10), 0 32px 64px -24px rgba(var(--shadow-color), 0.28);
    rotate: -2.6deg; transform-origin: center;
    translate: 0 calc(var(--py, 0px) * 0.35 + var(--vy, 0px));
    transition: rotate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillar--flip .pillar-frame { rotate: 2.6deg; }
.pillar-stage.in .pillar-frame { rotate: 0deg; }

/* Promote ONLY the in-view stage's opaque moving layers (JS toggles .is-live) so
   scrolling translates cached textures instead of repainting; the ::before glow's
   wide blur then bakes once. The backdrop-filter slabs are intentionally left
   un-promoted — they must re-sample the backdrop when moved (promotion can't avoid
   that and can glitch backdrop-filter in some engines), and they drift only a
   little. will-change is scoped to in-view stages to avoid pinning GPU layers for
   below-the-fold sections. */
.pillar-stage.is-live::before,
.pillar-stage.is-live .pillar-frame,
.pillar-stage.is-live .pf-ghost,
.pillar-stage.is-live .pf-canvas img { will-change: transform; }

/* Frame chrome — the dot bar reads instantly as "product UI" */
.pf-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.pf-bar .pf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.pf-bar b { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--text); }

/* Framed ad preview — shared by the Tasarım (creative studio) and Kolaylık
   (publish sheet) frames. The photo itself counter-drifts inside its clipped
   window (it inherits --py from the stage) so the front creative gets its own
   felt parallax: slightly over-scaled to give pan headroom without ever
   exposing an edge. */
.pf-canvas { position: relative; margin: 14px 16px 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.pf-canvas img {
    width: 100%; height: 100%; object-fit: cover;
    scale: 1.14; /* over-scale gives pan headroom; keeps a >4px edge buffer even at the 901px min */
    translate: 0 calc(var(--py, 0px) * -0.28);
}
.pf-tools { display: flex; gap: 8px; padding: 14px 16px 0; }
.pf-chip { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; }
.pf-chip.is-on { background: rgba(232, 168, 56, 0.16); color: var(--amber); }
.pf-gen { margin: 14px 16px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--dark); background: var(--grad); }

/* Kolaylık frame — one-click publish sheet: a big ad preview (.pf-canvas above)
   then the budget row + publish button, so it reads as a real composer. */
.pf-easy { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 6px; }
.pf-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.pf-field-lbl { font-size: 14px; color: var(--text-muted); }
.pf-budget { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text); }
.pf-publish { width: calc(100% - 36px); margin: 8px 18px 4px; height: 54px; border: none; border-radius: 14px; background: var(--amber); color: var(--dark); font-family: inherit; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: default; }
.pf-publish svg { width: 20px; height: 20px; stroke: var(--dark); }
.pf-foot { display: block; text-align: center; font-size: 12px; color: var(--text-muted); padding: 0 18px 18px; }

/* Zeki frame — plain-language advice thread (kept distinct from later .ai-card) */
.pf-spark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(232, 168, 56, 0.16); }
.pf-spark svg { width: 16px; height: 16px; stroke: var(--amber); }
.pf-time { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.pf-advice { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 6px; }
.pf-line { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.pf-line--good { border-left: 3px solid var(--teal); }
.pf-line--stop { border-left: 3px solid var(--amber); }
.pf-tick { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1; }
.pf-line--good .pf-tick { background: rgba(42, 107, 90, 0.15); color: var(--teal); }
.pf-line--stop .pf-tick { background: rgba(232, 168, 56, 0.18); color: var(--amber-hover); }
.pf-evidence { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 18px 18px; }
.pf-ev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 12px; background: rgba(42, 107, 90, 0.12); color: var(--teal); }
.pf-ev svg { width: 14px; height: 14px; stroke: var(--teal); }
.pf-ev:last-child { background: rgba(232, 168, 56, 0.14); color: var(--amber-hover); }
.pf-ev:last-child svg { stroke: var(--amber-hover); }

/* ZEKİ advice deck — extra recommendation cards fanned in the lower stage so the
   section reads as a stack of different pieces of advice (ZEKİ / .pillar--neutral
   only). Each one mirrors the main advice frame's chrome (header bar + advice
   line), just compact and with its own icon/title/text. They share the stage's
   --py drift + --vy scroll nudge so the whole deck reacts together; the generic
   glass peek is swapped out for them here. */
.pillar--neutral .pillar-peek { display: none; }
.pf-ghost {
    position: absolute; z-index: 2; width: 66%; max-width: 318px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 38px -18px rgba(var(--shadow-color), 0.45);
    translate: 0 calc(var(--py, 0px) * 0.62 + var(--vy, 0px) * 0.85);
}
.pf-ghost--a { bottom: 15%; left: -3%; rotate: -5deg; }
.pf-ghost--b { bottom: -8%; right: -10px; rotate: 5deg; }
/* Compact the shared frame chrome down to deck-card size */
.pf-ghost .pf-bar { height: 34px; padding: 0 12px; }
.pf-ghost .pf-bar b { font-size: 11.5px; }
.pf-ghost .pf-spark { width: 22px; height: 22px; border-radius: 7px; }
.pf-ghost .pf-spark svg { width: 13px; height: 13px; }
.pf-ghost .pf-time { font-size: 10.5px; }
.pf-ghost .pf-advice { padding: 11px 12px 13px; }
.pf-ghost .pf-line { font-size: 12px; padding: 9px 11px; gap: 8px; }
.pf-ghost .pf-tick { width: 18px; height: 18px; font-size: 11px; }
/* deck icon + line variants, distinct from the main card's amber star / ✓ / ! */
.pf-spark--teal { background: rgba(42, 107, 90, 0.15); }
.pf-spark--teal svg { stroke: var(--teal); }
.pf-line--up { border-left: 3px solid var(--amber); }
.pf-line--up .pf-tick { background: rgba(232, 168, 56, 0.18); color: var(--amber-hover); }

/* ---------- How it works — pinned horizontal step slider ----------
   .howx is tall (cards × 100vh); .howx-pin sticks for the run while the JS
   centers one card at a time by translating .howx-track. On entry the JS adds
   .is-active, which flips this section's semantic tokens to the OPPOSITE theme
   (dark band in light mode, cream in dark mode); the transitions below make that
   read as a soft "the site just switched theme" dissolve. Brand colors (amber /
   teal / gradient) stay constant. Mobile + reduced-motion fall back to a static
   carousel / grid (see the responsive + reduced-motion blocks below). */
.howx { --howx-cards: 4; position: relative; background: var(--bg); min-height: calc(var(--howx-cards) * 100vh); transition: background-color 0.7s ease; }
.howx-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.howx-stage { height: 100%; display: flex; flex-direction: column; }
.howx-intro { flex-shrink: 0; max-width: 760px; margin: 0 auto; padding: clamp(82px, 11vh, 116px) var(--pad) 0; text-align: center; pointer-events: none; }
.howx-intro .label { display: inline-block; margin-bottom: 14px; }
.howx-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--text); margin: 0; transition: color 0.7s ease; }
.howx-track { flex: 1; position: relative; display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; will-change: transform; transform: translate3d(0, 0, 0); }
.howx-card { flex: 0 0 480px; width: 480px; box-sizing: border-box; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(400px, 54vh, 520px); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px 40px 44px; box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.10); opacity: 0.45; transform: scale(0.94); transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, box-shadow 0.45s ease, background-color 0.7s ease; will-change: opacity, transform; }
.howx-card.is-focus { opacity: 1; transform: scale(1); border-color: rgba(232, 168, 56, 0.45); box-shadow: 0 0 0 1px rgba(232, 168, 56, 0.30), 0 20px 50px rgba(232, 168, 56, 0.18), 0 8px 32px rgba(var(--shadow-color), 0.12); }
.howx-card--climax.is-focus { border-color: rgba(42, 107, 90, 0.5); box-shadow: 0 0 0 1px rgba(42, 107, 90, 0.35), 0 20px 50px rgba(42, 107, 90, 0.20), 0 8px 32px rgba(var(--shadow-color), 0.12); }
.howx-eyebrow { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.howx-eyebrow .howx-total { color: var(--text-muted); opacity: 0.6; letter-spacing: 0.08em; transition: color 0.7s ease; }
/* Transparent amber line-art icon — large decorative graphic anchored to the
   top-right, behind the text (acts as a watermark/background). Amber reads on
   both the white and dark-green surfaces. */
.howx-icon { position: absolute; top: -10px; right: -14px; height: clamp(300px, 40vh, 400px); width: auto; max-width: 84%; opacity: 0.5; pointer-events: none; z-index: 0; object-fit: contain; }
/* Text sits above the watermark; title + copy pinned to the bottom of the card. */
.howx-eyebrow, .howx-h3, .howx-desc { position: relative; z-index: 1; }
.howx-h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; margin: auto 0 14px; transition: color 0.7s ease; }
.howx-desc { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-muted); line-height: 1.6; margin: 0; transition: color 0.7s ease; }

/* Inverted "the site just switched theme" tokens, applied while the section
   owns the screen (JS toggles .is-active). Light site → dark-band look; dark
   site → light look. Brand colors (amber/teal/grad) are never overridden. */
.howx.is-active {
    --bg: #1B2725;
    --surface: #223230;
    --surface-2: #2A3B38;
    --text: #F3EBE2;
    --text-muted: rgba(243, 235, 226, 0.68);
    --border: rgba(243, 235, 226, 0.12);
    --border-strong: rgba(243, 235, 226, 0.28);
    --shadow-color: 0, 0, 0;
}
[data-theme="dark"] .howx.is-active {
    --bg: #F3EBE2;
    --surface: #FFFFFF;
    --surface-2: #F1F1F1;
    --text: #1A1A1A;
    --text-muted: #5C5C5C;
    --border: rgba(26, 26, 26, 0.08);
    --border-strong: rgba(26, 26, 26, 0.20);
    --shadow-color: 27, 39, 37;
}

/* ---------- Differentiator ---------- */
.diff { background: var(--band); color: var(--band-text); padding: 96px 0 0; }
.diff h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--band-text); }
.diff .label { color: var(--amber); }
.diff-desc { color: var(--band-text-muted); }
/* Pinned scroll scrub: .diff-scrub supplies the travel; .diff-pin locks the
   frame center-screen for the run. The user sees the "other tools" dashboard
   first, then continued scroll wipes the madvise panel across (JS scrubs
   --reveal as a pure function of progress through .diff-scrub). */
.diff-scrub { position: relative; min-height: 200vh; padding-bottom: 96px; }
.diff-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 24px var(--pad); }
.diff-pin .compare { margin: 0 auto; }
.compare {
    position: relative; margin: 40px auto 0; border-radius: 20px;
    /* No overflow:hidden — it would clip the handle knob at the right edge.
       Corners are rounded on the images instead (.cpanel-img). */
    user-select: none; cursor: default; aspect-ratio: 2490 / 1622; background: #1B2725;
    /* Cap by viewport height so the whole frame fits on screen; width follows
       the aspect ratio and never exceeds the container. */
    width: min(100%, calc(70vh * 2490 / 1622));
    transition: box-shadow 0.3s ease;
    box-shadow: 0 24px 60px rgba(var(--shadow-color), 0.45);
}
.compare:hover { box-shadow: 0 0 50px rgba(232, 168, 56, 0.18); }
/* Two full-bleed panels (exported from Figma): other-tools dashboard behind,
   madvise panel sliding over it as the scroll reveal grows. */
.cpanel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; border-radius: 20px; }
.cmeta { z-index: 1; }
.cmad { z-index: 2; clip-path: inset(0 calc(100% - var(--reveal, 50%)) 0 0); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--reveal, 50%); width: 3px; background: linear-gradient(180deg, #FDC665 0%, #E8A838 50%, #2A6B5A 100%); z-index: 5; pointer-events: none; }
.handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px rgba(232, 168, 56, 0.5); }
.handle::before { content: '\21C4'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--dark); font-size: 16px; z-index: 6; font-weight: 700; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feat-list { list-style: none; margin-top: 14px; }
.feat-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--ink); }
.feat-list li .chk { width: 26px; height: 26px; border-radius: 50%; background: rgba(232, 168, 56, 0.14); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feat-list li .chk svg { stroke: var(--amber); }
.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.1); }
.ai-card .acard-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ai-card .acard-top .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ai-card .acard-top .ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-card .acard-top .ic svg { stroke: var(--text); }
.ai-card .acard-top b { font-size: 16px; color: var(--text); }
.ai-card .acard-top small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.ai-suggest { border-left: 3px solid var(--amber); background: rgba(232, 168, 56, 0.06); border-radius: 0 8px 8px 0; padding: 14px 18px; }
.ai-suggest .as-lbl { font-size: 11px; font-weight: 600; color: var(--amber); letter-spacing: 0.06em; margin-bottom: 6px; }
.ai-suggest .as-txt { font-size: 14px; color: var(--ink); min-height: 42px; }
.ai-suggest .as-apply { font-size: 13px; font-weight: 600; color: var(--dark); background: var(--amber); margin-top: 14px; padding: 9px 18px; border: none; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.ai-suggest .as-apply:hover { background: var(--amber-hover); box-shadow: 0 0 18px rgba(232, 168, 56, 0.4); transform: translateY(-1px); }
.ai-suggest .as-apply:active { transform: scale(0.98); }
.ai-suggest .cursor { display: inline-block; width: 2px; height: 14px; background: var(--amber); margin-left: 1px; animation: blink 1s step-end infinite; vertical-align: middle; }

/* ---------- AI summary card deck (right column of the AI-layer section) ----------
   A real stack of "Daily AI Summary" cards. JS assigns each card a slot:
   .pos-0 is the card in front, .pos-1 / .pos-2 are the cards peeking behind it,
   and unclassed cards sit hidden further back, ready to cycle in. On each tick the
   front card lifts up-and-back (.is-exiting) into the deck while the card behind
   rises forward — a looping depth shuffle, not a flat crossfade. JS locks
   .ai-stack to the tallest card so the layout never reflows. */
.ai-col { position: relative; }
/* the 34px top room lets the peeking / exiting cards rise above the front card
   without overflowing; JS adds the same 34px when it locks the stack height. */
.ai-stack { position: relative; min-height: 300px; perspective: 1600px; }

.ai-stack .ai-card {
    position: absolute; top: 34px; left: 0; right: 0; margin: 0;
    opacity: 0; pointer-events: none; z-index: 1;
    transform: translateY(-34px) scale(0.82);
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, box-shadow 0.5s ease;
    will-change: transform, opacity;
}
.ai-stack .ai-card.pos-0 { opacity: 1; transform: translateY(0) scale(1); z-index: 40; pointer-events: auto; }
.ai-stack .ai-card.pos-1 { opacity: 0.65; transform: translateY(-18px) scale(0.94); z-index: 30; }
.ai-stack .ai-card.pos-2 { opacity: 0.3; transform: translateY(-32px) scale(0.88); z-index: 20; }
/* the leaving card rides above the deck (z-50) as it recedes, so the card rising
   to the front is revealed cleanly behind it — no z-index pop. */
.ai-stack .ai-card.is-exiting {
    opacity: 0; z-index: 50;
    transform: translateY(-58px) scale(0.76);
    transition: transform 0.62s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s ease;
}
.ai-card .acard-top { position: relative; }
.acard-meta { min-width: 0; }

/* live "now" pulse, top-right of each card header — only the front card pulses */
.ai-live { position: absolute; top: 3px; right: 2px; width: 8px; height: 8px; margin-left: auto; }
.ai-live::before, .ai-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); }
.ai-stack .ai-card.pos-0 .ai-live::after { animation: ai-ping 2s ease-out infinite; }
@keyframes ai-ping { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.8); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .ai-stack .ai-card { transition: none; }
    .ai-stack .ai-card.pos-0 .ai-live::after { animation: none; }
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.price-card:hover { transform: translateY(-4px); border-color: rgba(232, 168, 56, 0.5); box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.1); }
.price-card.featured { border-color: var(--amber); box-shadow: 0 8px 32px rgba(232, 168, 56, 0.18); }
.price-card .ptier { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.price-card .pamt { font-size: 40px; font-weight: 800; color: var(--text); margin: 14px 0 4px; }
.price-card .pamt span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card .pmost { font-size: 11px; font-weight: 700; background: var(--amber); color: var(--dark); padding: 4px 10px; border-radius: 999px; float: right; }
.price-card ul { list-style: none; margin: 22px 0; }
.price-card ul li { font-size: 14px; color: var(--ink); padding: 9px 0; display: flex; gap: 10px; }
.price-card ul li svg { stroke: var(--teal); flex-shrink: 0; }
.price-note { margin-top: 32px; background: rgba(42, 107, 90, 0.08); border: 1px solid rgba(42, 107, 90, 0.2); border-radius: 12px; padding: 18px 22px; font-size: 14px; color: var(--text); text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.price-note b { color: var(--teal); }

/* ---------- Testimonials (right-to-left marquee) ---------- */
.test-marquee { position: relative; margin-top: 12px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.test-track { display: flex; width: max-content; animation: test-scroll 64s linear infinite; }
.test-marquee:hover .test-track { animation-play-state: paused; }
.test-track .tcard { flex: 0 0 360px; width: 360px; margin-right: 24px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: transform 0.15s ease, border-color 0.15s ease; }
.tcard:hover { transform: translateY(-4px); border-color: rgba(232, 168, 56, 0.5); }
.tcard .quote { font-size: 15px; color: var(--ink); line-height: 1.6; margin-bottom: 22px; }
.tcard .stars { color: var(--amber); margin-bottom: 16px; letter-spacing: 2px; }
.tperson { display: flex; align-items: center; gap: 12px; }
.tperson .av { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--dark); font-size: 17px; }
.tperson img.av { object-fit: cover; object-position: center 20%; }
.tperson b { font-size: 14px; color: var(--text); display: block; }
.tperson small { font-size: 12px; color: var(--muted); }
/* The track holds two identical card sets (the 2nd cloned by JS), so a −50%
   travel lands exactly on the seam — a perfectly seamless right-to-left loop. */
@keyframes test-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .test-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; gap: 24px; }
    .test-track .tcard { margin-right: 0; }
}

/* ---------- Final CTA ---------- */
.final { background: var(--band); color: var(--band-text); padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(232, 168, 56, 0.18), transparent 70%); pointer-events: none; }
.final-inner { position: relative; z-index: 2; }
.final h2 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--band-text); }
/* İkinci satır daha uzun; "gör." alta taşmasın diye orantılı (her breakpoint'te %85) küçültülür. */
.final h2 .final-line2 { font-size: 0.85em; }
.final p.note { font-size: 14px; color: var(--band-text-muted); margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .logo span { color: var(--text); }
.footer-tag { font-size: 14px; color: var(--muted); margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink); padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, transform 0.15s; }
.footer-social a:hover { border-color: var(--amber); transform: translateY(-2px); }
.footer-social svg { stroke: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(42px) scale(0.97); filter: blur(6px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
/* editorial split-text word reveal */
.split .lw { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.06; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.split .lw-i { display: inline-block; transform: translateY(115%); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.split.in .lw-i { transform: translateY(0); }
.grad-text .lw-i { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .split .lw-i { transition: none !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
    .split .lw-i { transform: none; }
    /* Pillars sit flat — no tilt, no settle animation, no scroll parallax */
    .pillar-frame { rotate: 0 !important; translate: none !important; transition: none; }
    .pillar-surface, .pillar-peek, .pillar-stage::before, .pf-ghost { translate: none !important; }
    .pf-canvas img { scale: 1 !important; translate: none !important; }
    /* How-it-works: drop the pin + horizontal scroll for a static 2-col grid */
    .howx { min-height: 0; }
    .howx-pin { position: static; height: auto; overflow: visible; display: block; }
    .howx-stage { display: block; height: auto; padding: 64px 0; }
    .howx-intro { position: static; transform: none; max-width: 720px; margin: 0 auto 40px; padding: 0 var(--pad); text-align: center; pointer-events: auto; }
    .howx-intro .howx-hint, .howx-intro .howx-progress { display: none; }
    .howx-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 var(--pad); transform: none !important; will-change: auto; }
    .howx-card { width: auto; flex: initial; opacity: 1; transform: none; transition: none; }
    .howx-hint svg { animation: none; }
    /* FARK comparison: drop the pinned scrub; the divider becomes drag-to-slide. */
    .diff-scrub { min-height: 0; padding-bottom: 0; }
    .diff-pin { position: static; height: auto; overflow: visible; display: block; padding: 24px var(--pad) 64px; }
    .compare { touch-action: pan-y; cursor: grab; }
    .compare.is-dragging { cursor: grabbing; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
    .howx-track { grid-template-columns: 1fr; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; position: fixed; top: 84px; left: 12px; right: 12px; background: var(--surface); box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.12); padding: 20px 24px; border-radius: 16px; z-index: 99; flex-direction: column; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { justify-content: center; margin-top: 8px; }

/* ---------- Scroll progress bar ---------- */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; pointer-events: none; transition: width 0.1s linear; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    /* width:100% gives the column a definite width — without it, margin:0 auto
       makes this grid item shrink-to-fit, and the scene's width:100% (no intrinsic
       width) would collapse to 0. */
    .hero-visual { order: 2; width: 100%; max-width: 460px; margin: 0 auto; }
    .hero-content { align-items: center; text-align: center; }
    .hero-content .hero-sub { margin: 0 auto; }
    .hero-content .hero-cta { justify-content: center; }
    .problem-grid, .price-grid { grid-template-columns: 1fr; }
    .test-track .tcard { flex-basis: 300px; width: 300px; }
    .feat-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .price-card .pmost { float: none; display: inline-block; margin-bottom: 10px; }
    /* Pillars stack: copy first, visual below, no tilt */
    .pillar-grid { grid-template-columns: 1fr; gap: 40px; }
    .pillar-copy, .pillar--flip .pillar-copy { grid-column: 1; grid-row: 1; max-width: none; text-align: center; }
    .pillar-stage, .pillar--flip .pillar-stage { grid-column: 1; grid-row: 2; width: 100%; max-width: 460px; margin: 0 auto; min-height: 300px; }
    .pillar-lead { margin-left: auto; margin-right: auto; }
    /* Stacked layout: keep the frame upright but let the glass slabs keep a hint
       of tilt for depth; drop the scroll parallax on touch. */
    .pillar-frame { rotate: 0 !important; translate: none !important; }
    .pillar-surface, .pillar-peek, .pillar-stage::before { translate: none !important; }
    .pf-canvas img { scale: 1 !important; translate: none !important; }
    .pf-ghost { display: none; } /* deck is a desktop flourish; mobile shows just the main card */
    /* How-it-works: drop the pin for a swipeable scroll-snap carousel */
    .howx { min-height: 0; padding: 64px 0; }
    .howx-pin { position: static; height: auto; overflow: visible; display: block; }
    .howx-stage { display: block; height: auto; }
    .howx-intro { position: static; transform: none; max-width: none; margin: 0 auto 28px; padding: 0 var(--pad); text-align: center; pointer-events: auto; }
    .howx-intro .howx-hint, .howx-intro .howx-progress { display: none; }
    .howx-track { gap: 16px; padding: 4px var(--pad) 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; transform: none !important; will-change: auto; }
    .howx-track::-webkit-scrollbar { display: none; }
    .howx-card { flex: 0 0 84%; width: 84%; scroll-snap-align: center; opacity: 1; transform: none; padding: 32px 28px 36px; border-radius: 20px; }
    .howx-card.is-focus { transform: none; }
    /* FARK comparison: drop the pinned scrub; the divider becomes drag-to-slide.
       touch-action: pan-y lets the browser keep vertical page scroll while
       horizontal drags drive --reveal (handled in main.js). */
    .diff-scrub { min-height: 0; padding-bottom: 0; }
    .diff-pin { position: static; height: auto; overflow: visible; display: block; padding: 24px var(--pad) 64px; }
    .compare { touch-action: pan-y; cursor: grab; }
    .compare.is-dragging { cursor: grabbing; }
    /* A larger, ringed knob reads as a grabbable control on touch. */
    .handle { width: 4px; }
    .handle::after { width: 46px; height: 46px; box-shadow: 0 0 0 6px rgba(232, 168, 56, 0.18), 0 0 18px rgba(232, 168, 56, 0.55); }
    .handle::before { font-size: 18px; }
}
@media (max-width: 480px) {
    .hero { padding: 120px 0 60px; }
    .sec { padding: 64px 0; }
    .mockup { padding: 20px; }
    .ad-row { flex-direction: column; align-items: flex-start; }
    .pillar-peek { display: none; }
    .pillar-surface { inset: 4% -2% 6% 4%; }
    .pillar--flip .pillar-surface { inset: 4% 4% 6% -2%; }
    .flow { gap: 8px; }
    .flow .node { padding: 10px 12px; }
    .flow .node .fv { font-size: 16px; }
}


/* ==========================================================================
   Hero background — Liquid Glass anti-flash + Backlit Light-Leak Surface
   ========================================================================== */
/* Anti-flash: keep the canvas painted the brand base color before the first
   WebGL frame and reinforce the JS CSS-gradient fallback. The shader paints the
   base color itself, so this is only a safety net (the .hero-field positioning /
   z-index / pointer-events:none already exist in the current rule). */
.hero-field { background-color: var(--hero-base); }

/* ---------- Hero compositing layer: Backlit Light-Leak Surface ----------
   A centered frosted panel behind the whole .hero-grid, with heavily-blurred
   brand light sources behind IT, so light bleeds out around / through the
   translucent surface. Sits at z-index:1 — above #heroField (z0), below
   .hero .wrap (z2). Everything is pointer-events:none so CTAs stay clickable.
   The frost is scoped to a centered content band (NOT full-bleed) so it never
   muddies the WebGL field outside the hero text/visual region. */
.hero-leak {
    position: absolute;
    /* anchored from just below the floating navbar down to near the hero bottom,
       so it never sits behind the navbar yet still contains the hero items */
    left: 50%;
    top: 104px;
    bottom: 44px;
    width: min(1360px, 96%);
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    border-radius: 28px;
    overflow: hidden;                 /* clip the blurred lights to the band */
    will-change: transform;
}

/* --- the blurred brand light sources (behind the surface) --- */
.leak-lights {
    position: absolute; inset: -25%;  /* overscan so blur edges never show */
    pointer-events: none;
    will-change: transform;           /* JS mouse-lean target */
}
.leak-blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(70px);               /* heavy blur => light bleeds */
    opacity: 0.85;
    will-change: transform;
}
.leak-amber {
    width: 42%; height: 52%;
    left: 30%; bottom: 2%;
    background: radial-gradient(circle at 50% 50%, #E8A838 0%, rgba(232,168,56,0) 70%);
    animation: leakDriftA 17s ease-in-out infinite;
}
.leak-lamber {
    width: 52%; height: 56%;
    right: 6%; top: 20%;
    background: radial-gradient(circle at 50% 50%, #FDC665 0%, rgba(253,198,101,0) 70%);
    animation: leakDriftB 21s ease-in-out infinite;
}
.leak-teal {
    width: 46%; height: 60%;
    left: 8%; top: 6%;
    background: radial-gradient(circle at 50% 50%, #2A6B5A 0%, rgba(42,107,90,0) 72%);
    opacity: 0.62;                    /* teal kept calmer */
    animation: leakDriftC 24s ease-in-out infinite;
}

/* --- the translucent frosted surface (in front of the lights) --- */
.leak-surface {
    position: absolute; inset: 0;
    border-radius: 28px;
    /* frost: brand support varies, so this is the enhanced path (see @supports) */
    background: var(--leak-surface);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    backdrop-filter: blur(22px) saturate(115%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 24px 70px rgba(var(--shadow-color), 0.10);
}

/* --- no-backdrop-filter fallback: a soft semi-opaque base panel --- */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .leak-surface {
        background: var(--leak-surface-opaque);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 24px 70px rgba(var(--shadow-color), 0.12);
    }
    .leak-blob { opacity: 0.55; }     /* tame the leak so text stays readable */
}

/* --- slow parametric drift of the light sources --- */
@keyframes leakDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(7%, -5%) scale(1.08); }
}
@keyframes leakDriftB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-6%, 6%) scale(1.10); }
}
@keyframes leakDriftC {
    0%, 100% { transform: translate(0, 0) scale(1.02); }
    50%      { transform: translate(5%, -7%) scale(0.94); }
}

/* --- pause drift when the hero is off-screen / tab hidden --- */
.hero.leak-paused .leak-blob { animation-play-state: paused; }

/* --- reduced motion: one static frame, no animation, no mouse reaction --- */
.hero-leak.leak-static .leak-blob { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .leak-blob { animation: none !important; }
    .leak-lights { transform: none !important; }
}

/* --- phone: lighter blur for perf, smaller band --- */
@media (max-width: 560px) {
    .leak-blob { filter: blur(48px); }
    .leak-surface {
        -webkit-backdrop-filter: blur(16px) saturate(112%);
        backdrop-filter: blur(16px) saturate(112%);
    }
    .hero-leak { top: 88px; bottom: 32px; width: min(1360px, 94%); border-radius: 24px; }
}


/* ==========================================================================
   Contact page (contact.html)
   A focused, two-column "get in touch" layout: warm intro copy on the left,
   the lead-capture form on the right. Reuses the shared design tokens, so it
   themes (light/dark) exactly like the landing page. Form styling follows
   DESIGN.md §8 (input/label/error).
   ========================================================================== */
.contact-main {
    position: relative;
    overflow: hidden;
    padding: 150px 0 90px;          /* clear the fixed navbar + breathing room */
    min-height: 100vh;
}
/* soft brand glow backdrop (amber top, faint teal lower-left) — CSS only */
.contact-main::before {
    content: '';
    position: absolute; top: -180px; left: 50%;
    transform: translateX(-50%);
    width: 920px; height: 540px;
    background: radial-gradient(ellipse at center, rgba(232, 168, 56, 0.16), transparent 70%);
    pointer-events: none; z-index: 0;
}
.contact-main::after {
    content: '';
    position: absolute; bottom: -120px; left: -60px;
    width: 460px; height: 460px;
    background: radial-gradient(circle at center, rgba(42, 107, 90, 0.12), transparent 70%);
    pointer-events: none; z-index: 0;
}

.contact-grid {
    position: relative; z-index: 1;
    max-width: 1060px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.05fr;
    gap: 56px; align-items: center;
}

/* ----- Left: intro / reassurance ----- */
.contact-intro h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.08;
    color: var(--text);
}
.contact-lead {
    margin-top: 18px; max-width: 460px;
    font-size: 17px; line-height: 1.7; color: var(--text-muted);
}
.contact-points { margin-top: 30px; display: grid; gap: 16px; }
.contact-point {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; line-height: 1.5; color: var(--text);
}
.cp-ic {
    flex: none; width: 28px; height: 28px; margin-top: 1px;
    border-radius: 999px;
    background: rgba(232, 168, 56, 0.14); color: var(--amber);
    display: flex; align-items: center; justify-content: center;
}
.cp-ic svg { width: 16px; height: 16px; display: block; }

/* ----- Right: form card ----- */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(var(--shadow-color), 0.10);
}
.field { margin-bottom: 18px; }
.field-label {
    display: block; margin-bottom: 7px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
    color: var(--text-muted);
}
.field-label .opt { font-weight: 400; opacity: 0.7; }
.input, .textarea {
    width: 100%;
    font-family: inherit; font-size: 15px; color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 0.9; }
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}
.field.has-error .input,
.field.has-error .textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.12);
}
.field-error {
    display: none;
    margin-top: 5px; font-size: 12px; color: var(--error);
}
.field.has-error .field-error { display: block; }

.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 6px; }
.form-status {
    display: none;
    margin-top: 12px; text-align: center;
    font-size: 13px; line-height: 1.6; color: var(--error);
}
.form-status.show { display: block; }
.form-status a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.form-note {
    margin-top: 14px; text-align: center;
    font-size: 12px; line-height: 1.6; color: var(--text-muted);
}

/* ----- Success state (shown after submit) ----- */
.contact-success { display: none; text-align: center; padding: 8px 4px; }
.cs-badge {
    width: 64px; height: 64px; margin: 0 auto 18px;
    border-radius: 999px;
    background: rgba(232, 168, 56, 0.14); color: var(--amber);
    display: flex; align-items: center; justify-content: center;
}
.cs-badge svg { width: 30px; height: 30px; display: block; }
.cs-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin-bottom: 10px; }
.cs-text { max-width: 380px; margin: 0 auto 6px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.cs-mail {
    display: inline-block; margin-top: 4px;
    font-weight: 600; color: var(--amber);
    text-decoration: underline; text-underline-offset: 3px;
}
.cs-actions { margin-top: 22px; }

@media (max-width: 900px) {
    .contact-main { padding: 124px 0 64px; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; max-width: 520px; }
    .contact-intro { text-align: center; }
    .contact-lead { margin-left: auto; margin-right: auto; }
    .contact-points { max-width: 380px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
    .contact-card { padding: 24px 20px; border-radius: 18px; }
}
