/* ==========================================================================
   Kasapi — web3 stylesheet
   Dark, gradient-driven design with tasteful motion.
   ========================================================================== */

:root {
    --bg: #05060e;
    --bg-soft: #0a0c1a;
    --surface: #0e1122;
    --surface-2: #141833;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #eef0ff;
    --text-muted: #9aa3c0;
    --text-dim: #6b7394;

    --violet: #7c3aed;
    --blue: #2563eb;
    --cyan: #22d3ee;
    --cyan-soft: #67e8f9;

    --grad: linear-gradient(100deg, var(--violet), var(--blue) 55%, var(--cyan));
    --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(37, 99, 235, 0.2), rgba(34, 211, 238, 0.15));

    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 22px;
    --radius-sm: 14px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 76px;
}

* { 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;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

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

/* Accent underline (hero "Active") */
.underlined {
    position: relative;
    display: inline-block;
}
.underlined::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.02em;
    height: 4px;
    border-radius: 4px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    animation: drawLine 0.9s var(--ease) 0.7s forwards;
}
@keyframes drawLine { to { transform: scaleX(1); } }

/* Eyebrow labels */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan-soft);
    margin-bottom: 22px;
}
.eyebrow-dot {
    width: 8px; height: 8px;
    background: var(--grad);
    transform: rotate(45deg);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   Background orbs
   ========================================================================== */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
    animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; background: #3b1d8f; top: -180px; left: -140px; }
.orb-2 { width: 480px; height: 480px; background: #123a8a; top: 30%; right: -200px; animation-delay: -6s; }
.orb-3 { width: 420px; height: 420px; background: #0e5a6e; bottom: -160px; left: 22%; animation-delay: -12s; }

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, -50px, 0) scale(1.12); }
}

main, .site-header, .site-footer, .cta-final { position: relative; z-index: 1; }

/* ==========================================================================
   Header / sticky nav
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(5, 6, 14, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.nav-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.nav-logo img { height: 34px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }

.btn-primary {
    background: var(--grad);
    background-clip: padding-box;
    color: #fff;
    box-shadow: 0 8px 28px rgba(59, 87, 235, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(59, 87, 235, 0.55);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.btn .play-ic {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn .play-ic::after {
    content: "";
    border-left: 7px solid #fff;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
    margin-left: 2px;
}

/* ==========================================================================
   Reveal-on-scroll animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-44px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(44px);  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }

.stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.13s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.21s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.29s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.37s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.53s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.61s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .reveal-left, .reveal-right, .stagger > * { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero h1 { margin-bottom: 26px; }
.hero-sub {
    font-size: 1.14rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 38px;
}

.hero-copy .eyebrow { animation: fadeUp 0.8s var(--ease) both; }
.hero-copy h1       { animation: fadeUp 0.8s var(--ease) 0.12s both; }
.hero-copy .hero-sub{ animation: fadeUp 0.8s var(--ease) 0.24s both; }
.hero-copy .btn-row { animation: fadeUp 0.8s var(--ease) 0.36s both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero visual — phone + floating cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeUp 1s var(--ease) 0.3s both;
}
.hero-glow {
    position: absolute;
    width: 130%; height: 130%;
    top: -15%; left: -15%;
    background: radial-gradient(circle at 50% 45%, rgba(90, 70, 235, 0.35), transparent 60%);
    pointer-events: none;
}

.phone {
    width: 270px;
    border-radius: 40px;
    background: linear-gradient(160deg, #171a30, #0b0d1c);
    border: 1px solid var(--border-strong);
    padding: 14px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    position: relative;
    z-index: 2;
    animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-16px) rotate(-1.5deg); }
}
.phone-screen {
    background: #0a0c19;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.phone-notch {
    width: 90px; height: 22px;
    background: #05060e;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 14px;
}
.phone-body { padding: 0 16px 22px; }
.app-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.app-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
}
.app-line { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); }
.app-line.w60 { width: 60%; } .app-line.w40 { width: 40%; } .app-line.w80 { width: 80%; }
.app-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}
.app-card .app-line { margin-bottom: 8px; }
.app-card .app-line:last-child { margin-bottom: 0; }
.app-stat-row { display: flex; gap: 10px; }
.app-stat {
    flex: 1;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}
.app-stat b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.app-stat span { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.float-card {
    position: absolute;
    background: rgba(17, 20, 40, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-head);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }
.float-card .fc-ic {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.fc-1 { top: 10%; right: -4%; animation-delay: -1s; }
.fc-2 { bottom: 20%; left: -8%; animation-delay: -3s; }
.fc-3 { bottom: -3%; right: 2%; animation-delay: -5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Hero scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.scroll-hint::after {
    content: "";
    width: 1px; height: 34px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
    50%      { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Tagline strip
   ========================================================================== */
.tagline-strip {
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}
.tagline-strip p {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    font-weight: 600;
    max-width: 820px;
    margin: 0 auto;
}

/* ==========================================================================
   Early access banner
   ========================================================================== */
.early-access .ea-card {
    border-radius: var(--radius);
    padding: clamp(44px, 6vw, 70px);
    text-align: center;
    background:
        radial-gradient(120% 160% at 15% 0%, rgba(124, 58, 237, 0.5), transparent 55%),
        radial-gradient(120% 160% at 90% 100%, rgba(34, 211, 238, 0.35), transparent 55%),
        linear-gradient(135deg, #1a1440, #0e2050);
    border: 1px solid var(--border-strong);
    position: relative;
    overflow: hidden;
}
.ea-card::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(255, 255, 255, 0.08), transparent 78%);
    animation: spinSlow 12s linear infinite;
    pointer-events: none;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.ea-card h2 { margin-bottom: 14px; }
.ea-card p { color: var(--text-muted); max-width: 520px; margin: 0 auto 30px; }
.ea-card .eyebrow { color: #c7d7ff; }
.ea-card > * { position: relative; }

/* ==========================================================================
   Split sections (image/mock + copy)
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}
.split.flip .split-visual { order: 2; }
.split h2 { margin-bottom: 20px; }
.split p.lead { color: var(--text-muted); margin-bottom: 26px; }

.check-list { list-style: none; display: grid; gap: 14px; margin-bottom: 28px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: var(--text);
    font-weight: 500;
}
.check-list .check {
    width: 24px; height: 24px;
    border-radius: 8px;
    background: var(--grad-soft);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.check-list .check svg { width: 13px; height: 13px; stroke: var(--cyan-soft); }

.punchline {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
}
.punchline .grad-text { display: inline; }

.split-visual { position: relative; display: flex; justify-content: center; }
.split-visual .phone { animation: phoneFloat 8s ease-in-out infinite; }
.visual-glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.28), transparent 65%);
    pointer-events: none;
}

/* ==========================================================================
   Horizontal scroll section — "Three Ways to Grow"
   ========================================================================== */
.hscroll { position: relative; }
.hscroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.hscroll-head {
    text-align: center;
    padding: calc(var(--nav-h) + 10px) 0 34px;
}
.hscroll-head h2 span { display: inline; }
.hscroll-head .hs-sub {
    color: var(--text-muted);
    max-width: 700px;
    margin: 16px auto 0;
}

.hscroll-track {
    display: flex;
    gap: 30px;
    padding: 10px max(calc((100vw - 1180px) / 2), 4vw) 30px;
    will-change: transform;
}
.hslide {
    flex: 0 0 min(760px, 78vw);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: clamp(34px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hslide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 120% at 100% 0%, rgba(124, 58, 237, 0.16), transparent 60%);
    pointer-events: none;
}
.hslide-num {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan-soft);
    margin-bottom: 16px;
    display: block;
}
.hslide h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.hslide p { color: var(--text-muted); }
.hslide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hslide-tags span {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.hslide-visual {
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.hscroll-progress {
    width: min(320px, 60%);
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 26px auto 40px;
    overflow: hidden;
}
.hscroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad);
    border-radius: 3px;
}

/* ==========================================================================
   Feature grid ("More Than Just a Member List")
   ========================================================================== */
.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 70px); }
.center-head h2 { margin-bottom: 18px; }
.center-head p { color: var(--text-muted); }

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 30px 26px;
    transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 90% at 50% 0%, rgba(124, 58, 237, 0.14), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
}
.feature-card:hover::after { opacity: 1; }
.feature-ic {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--grad-soft);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final { padding-top: 0; }
.cta-card {
    text-align: center;
    border-radius: var(--radius);
    padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
    background:
        radial-gradient(100% 140% at 50% 0%, rgba(124, 58, 237, 0.3), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
    position: relative;
    overflow: hidden;
}
.cta-card h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.cta-sub { color: var(--text-muted); max-width: 520px; margin: 0 auto 34px; }
.cta-card .btn-row { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 30px;
    background: rgba(0, 0, 0, 0.25);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 300px; }
.footer-mission { margin-top: 10px; font-size: 0.85rem !important; color: var(--text-dim) !important; }
.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 5px 0;
    transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--cyan-soft); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--cyan-soft); }

/* ==========================================================================
   Video modal
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background: rgba(3, 4, 10, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-inner {
    width: min(920px, 100%);
    position: relative;
    transform: scale(0.94);
    transition: transform 0.35s var(--ease);
}
.video-modal.open .video-modal-inner { transform: scale(1); }
.video-modal video {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    display: block;
    background: #000;
}
.video-close {
    position: absolute;
    top: -48px; right: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.25s ease;
}
.video-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ==========================================================================
   Platform page
   ========================================================================== */
.page-hero {
    padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0 clamp(50px, 7vw, 90px);
    text-align: center;
}
.page-hero h1 { max-width: 900px; margin: 0 auto 24px; }
.page-hero .hero-sub { margin: 0 auto 0; }

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
    padding: clamp(50px, 7vw, 90px) 0;
}
.feature-block.flip .fb-visual { order: 2; }
.feature-block h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.feature-block p.lead { color: var(--text-muted); margin-bottom: 24px; }
.fb-visual { position: relative; display: flex; justify-content: center; }

/* Steps / how it works */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 30px 24px;
    position: relative;
}
.step-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.9;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Comparison table */
.compare-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare-table th, .compare-table td {
    padding: 18px 22px;
    text-align: center;
    font-size: 0.94rem;
    border-bottom: 1px solid var(--border);
}
.compare-table th {
    font-family: var(--font-head);
    font-size: 0.98rem;
    padding: 22px;
}
.compare-table th:first-child, .compare-table td:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 500;
}
.compare-table td { color: var(--text-muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-kasapi {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(34, 211, 238, 0.08));
    color: var(--text);
    font-weight: 600;
}
.compare-table th.col-kasapi { color: var(--cyan-soft); }
.tick { color: var(--cyan-soft); font-weight: 700; }
.cross { color: var(--text-dim); }

/* Carousel */
.carousel-wrap { position: relative; }
.carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 26px;
    scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-card {
    flex: 0 0 min(340px, 82vw);
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 30px 26px;
    transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.carousel-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.carousel-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}
.carousel-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

/* FAQ accordion */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-q .faq-arrow {
    flex-shrink: 0;
    transition: transform 0.35s var(--ease);
    color: var(--cyan-soft);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}
.faq-a-inner {
    padding: 0 26px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.contact-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 30px; }
.contact-points { display: grid; gap: 20px; }
.contact-point { display: flex; gap: 16px; align-items: flex-start; }
.contact-point .feature-ic { margin-bottom: 0; }
.contact-point h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-point p { font-size: 0.9rem; margin-bottom: 0; }

.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: clamp(30px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}
.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 100% 0%, rgba(124, 58, 237, 0.12), transparent 60%);
    pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.form-field label .req { color: var(--cyan-soft); }
.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { background: var(--surface-2); color: var(--text); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
    background: rgba(255, 255, 255, 0.06);
}
.form-submit { grid-column: 1 / -1; margin-top: 6px; }
.form-submit .btn { width: 100%; }
.form-note {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
}

/* honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-alert {
    grid-column: 1 / -1;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    display: none;
}
.form-alert.show { display: block; }
.form-alert.success {
    background: rgba(34, 211, 168, 0.12);
    border: 1px solid rgba(34, 211, 168, 0.4);
    color: #6ee7c7;
}
.form-alert.error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.btn.loading { opacity: 0.65; pointer-events: none; }

/* ==========================================================================
   Photography
   ========================================================================== */

/* Hero background photo */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(5, 6, 14, 0.92) 0%, rgba(5, 6, 14, 0.55) 55%, rgba(5, 6, 14, 0.75) 100%),
        linear-gradient(to bottom, rgba(5, 6, 14, 0.6), transparent 30%, transparent 60%, var(--bg) 100%);
}

/* Generic photo card */
.photo-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    position: relative;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 40%, rgba(5, 6, 14, 0.45) 100%);
    pointer-events: none;
}
.photo-card:hover img { transform: scale(1.045); }

/* Photo + mini phone stack (platform feature blocks, home brand split) */
.photo-stack {
    position: relative;
    width: min(480px, 100%);
    margin-bottom: 30px; /* room for the overhanging mini phone */
}
.photo-stack .photo-card { aspect-ratio: 4 / 3; }
.photo-stack .phone-mini {
    position: absolute;
    right: -18px;
    bottom: -34px;
    width: 172px;
    border-radius: 30px;
    background: linear-gradient(160deg, #171a30, #0b0d1c);
    border: 1px solid var(--border-strong);
    padding: 9px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    z-index: 2;
    animation: phoneFloat 8s ease-in-out infinite;
}
.phone-mini .phone-screen { border-radius: 22px; }
.phone-mini .phone-notch { width: 58px; height: 14px; margin-bottom: 10px; }
.phone-mini .phone-body { padding: 0 10px 14px; }
.phone-mini .app-card { padding: 10px; margin-bottom: 8px; border-radius: 10px; }
.phone-mini .app-stat { padding: 8px 6px; }
.phone-mini .app-stat b { font-size: 0.82rem; }
.phone-mini .app-stat span { font-size: 0.5rem; }
.phone-mini .app-avatar { width: 22px; height: 22px; }
.phone-mini .app-line { height: 6px; }
.phone-mini .app-stat-row { margin-bottom: 8px !important; }

/* Real app screenshot (transparent PNG, e.g. home brand split) */
.app-shot {
    position: relative;
    width: min(520px, 100%);
    animation: phoneFloat 9s ease-in-out infinite;
}
.app-shot img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.6));
}

/* Photo strip — staggered snapshots of real community life */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    padding: 10px 0 26px;
}
.strip-photo {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
    aspect-ratio: 3 / 4;
    transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.strip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.strip-photo:nth-child(odd)  { transform: rotate(-2.2deg) translateY(10px); }
.strip-photo:nth-child(even) { transform: rotate(2.2deg) translateY(-6px); }
.strip-photo:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.03);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65);
    z-index: 2;
    position: relative;
}

/* Feature cards with photo tops */
.feature-card.photo-top { padding: 0; }
.feature-card.photo-top .fc-img {
    height: 155px;
    overflow: hidden;
    position: relative;
}
.feature-card.photo-top .fc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.feature-card.photo-top .fc-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 17, 34, 0.9) 100%);
}
.feature-card.photo-top:hover .fc-img img { transform: scale(1.07); }
.feature-card.photo-top .fc-body { padding: 20px 24px 26px; }
.feature-card.photo-top .fc-body h3 { margin-bottom: 6px; }

/* Horizontal slide photos */
.hslide-visual.hslide-photo {
    padding: 0;
    overflow: hidden;
    background: none;
}
.hslide-visual.hslide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Wide banner photo (platform hero) */
.banner-photo {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
    height: clamp(240px, 38vw, 430px);
    position: relative;
    margin-top: clamp(40px, 6vw, 64px);
}
.banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 14, 0.35), transparent 35%, rgba(5, 6, 14, 0.55) 100%);
}

/* ==========================================================================
   Legal Pages (Privacy Policy, Terms of Service)
   ========================================================================== */
.legal-hero { padding-bottom: 40px; }
.legal-content { padding-top: 0; }

.legal-doc {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(30px, 6vw, 60px);
}

.legal-doc h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.legal-doc h2:first-child { margin-top: 0; }

.legal-doc h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--text);
}

.legal-doc p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

.legal-doc ul {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-left: 22px;
}
.legal-doc ul li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.legal-doc a {
    color: var(--cyan-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-doc a:hover { color: var(--cyan); }

.legal-doc strong { color: var(--text); }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.85rem;
}
.legal-table th,
.legal-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border);
    line-height: 1.6;
}
.legal-table th {
    background: var(--bg-soft);
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.legal-table td {
    color: var(--text-muted);
}

/* ==========================================================================
   Why Kasapi Landing Page (x-list, tag cloud, persona cards)
   ========================================================================== */
.x-list {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.x-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.x-list .x {
    width: 22px; height: 22px;
    border-radius: 7px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, color 0.3s ease;
}
.tag:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    color: var(--text);
}
.tag-lg { font-size: 1.1rem; padding: 13px 26px; font-weight: 600; color: var(--text); }
.tag-sm { font-size: 0.82rem; padding: 8px 16px; }
.tag-grad {
    background: var(--grad-soft);
    border-color: var(--border-strong);
    color: var(--text);
}

.persona-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.persona-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
}
.pc-img {
    position: relative;
    height: 190px;
    overflow: hidden;
}
.pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.persona-card:hover .pc-img img { transform: scale(1.05); }
.pc-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(14, 17, 34, 0.85) 100%);
}
.pc-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pc-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pc-body p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.pc-body .btn { margin-top: 20px; align-self: flex-start; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 70px; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero .btn-row { justify-content: center; }
    .split, .feature-block { grid-template-columns: 1fr; }
    .split.flip .split-visual, .feature-block.flip .fb-visual { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }

    /* Horizontal scroll becomes vertical stack on small screens */
    .hscroll-sticky { position: static; height: auto; overflow: visible; }
    .hscroll-track { flex-direction: column; padding: 10px 4vw 30px; transform: none !important; }
    .hslide { flex-basis: auto; grid-template-columns: 1fr; }
    .hslide-visual { max-width: 240px; margin: 0 auto; }
    .hscroll-progress { display: none; }
    .hscroll-head { padding-top: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6, 7, 16, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 18px 5vw 26px;
        gap: 4px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s var(--ease), opacity 0.3s ease, visibility 0.3s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }
    .nav-toggle { display: flex; }
    .nav-actions .btn-sm { padding: 9px 18px; font-size: 0.82rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .float-card { display: none; }
    .photo-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .photo-stack .phone-mini { right: 0; width: 150px; }
}

@media (max-width: 560px) {
    .grid-4, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .btn-row .btn { width: 100%; }
}
