/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #07130f;
    --bg-elev: #0b1d17;
    --panel: rgba(233,242,236,0.035);
    --panel-2: rgba(233,242,236,0.06);
    --line: rgba(233,242,236,0.10);
    --line-strong: rgba(166,255,143,0.24);
    --text: #e9f2ec;
    --muted: #90a89b;
    --dim: #64796d;
    --lime: #a6ff8f;
    --emerald: #37d39a;
    --aqua: #2fe0cf;
    --grad: linear-gradient(100deg, #a6ff8f 0%, #37d39a 45%, #2fe0cf 100%);
    --glow-lime: 0 0 40px rgba(166,255,143,0.35);
    --radius: 16px;
    --radius-lg: 26px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --maxw: 1180px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient grain + aurora over the whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(55,211,154,0.14), transparent 70%),
        radial-gradient(55% 45% at 100% 15%, rgba(47,224,207,0.10), transparent 70%),
        radial-gradient(50% 40% at 50% 100%, rgba(166,255,143,0.08), transparent 70%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor glow (desktop pointer only, injected by JS) */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 480px; height: 480px;
    margin: -240px 0 0 -240px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle, rgba(166,255,143,0.10), transparent 60%);
    transform: translate3d(-1000px, -1000px, 0);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 3;
}

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

.mono {
    font-family: 'Space Mono', ui-monospace, monospace;
}

.eyebrow {
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--lime);
    opacity: 0.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--grad);
    color: #052013;
    box-shadow: var(--glow-lime);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(166,255,143,0.55);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--line-strong);
    color: var(--lime);
    transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 13px 0;
    background: rgba(7,19,15,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--text);
}

.logo-mark {
    width: 34px; height: 34px;
    color: var(--lime);
    filter: drop-shadow(0 0 8px rgba(166,255,143,0.5));
}

.logo-text b { color: var(--lime); font-weight: 700; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    font-family: 'Space Mono', monospace;
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--muted);
    border-radius: 40px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text);
    background: var(--panel-2);
}

.nav-cta {
    color: var(--lime) !important;
    border: 1px solid var(--line-strong);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    animation: drift 24s ease-in-out infinite;
}

.orb-1 { width: 520px; height: 520px; background: rgba(55,211,154,0.16); top: -120px; right: -60px; }
.orb-2 { width: 380px; height: 380px; background: rgba(166,255,143,0.12); bottom: -80px; left: -80px; animation-delay: -8s; }

@keyframes drift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.12); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-eyebrow { margin-bottom: 26px; }

.hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(44px, 6.4vw, 84px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin-bottom: 26px;
}

.hero h1 .glow {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 38px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
}

.hstat .num {
    font-family: 'Sora', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.hstat .num i {
    font-style: normal;
    color: var(--lime);
}

.hstat .lbl {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 8px;
}

/* Hero visual — stacked glass app tiles */
.hero-stack {
    position: relative;
    height: 460px;
}

.tile {
    position: absolute;
    width: 200px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(233,242,236,0.09), rgba(233,242,236,0.02));
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    animation: floaty 7s ease-in-out infinite;
}

.tile .ic {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    box-shadow: var(--glow-lime);
}

.tile h4 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.tile p { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

.tile-1 { top: 10px; left: 8%; z-index: 3; }
.tile-2 { top: 150px; right: 2%; z-index: 2; animation-delay: -2.3s; }
.tile-3 { bottom: 4px; left: 20%; z-index: 1; animation-delay: -4.6s; }

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

/* ===== Marquee ===== */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    z-index: 3;
    background: rgba(11,29,23,0.5);
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollX 28s linear infinite;
}

.marquee span {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--dim);
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
}

.marquee span::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: var(--glow-lime);
}

@keyframes scrollX {
    to { transform: translateX(-50%); }
}

/* ===== Section shell ===== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 3;
}

.sec-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }

.sec-head h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin: 18px 0 16px;
}

.sec-head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

/* ===== Apps showcase (alternating rows) ===== */
.showcase { display: flex; flex-direction: column; gap: 40px; }

.app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel), transparent);
    transition: var(--transition);
}

.app-row:hover {
    border-color: var(--line-strong);
    background: linear-gradient(180deg, var(--panel-2), transparent);
}

.app-row.reverse .app-visual { order: 2; }

.app-num {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--lime);
    margin-bottom: 18px;
}

.app-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.app-body p { color: var(--muted); line-height: 1.75; margin-bottom: 24px; }

.app-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.app-tags span {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 6px 13px;
    border-radius: 40px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.store-row { display: flex; gap: 12px; flex-wrap: wrap; }

.store {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--text);
    background: var(--panel);
}

.store:hover { border-color: var(--line-strong); color: var(--lime); }
.store svg { width: 18px; height: 18px; }

/* Phone-ish visual */
.app-visual { display: flex; justify-content: center; }

.phone {
    width: 230px;
    aspect-ratio: 9/19;
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(160deg, #16211c, #0a1712);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
    position: relative;
}

.phone-screen {
    width: 100%; height: 100%;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.phone-screen .app-glyph {
    width: 76px; height: 76px;
    border-radius: 22px;
    display: grid; place-items: center;
    box-shadow: var(--glow-lime);
}

.phone-screen .app-glyph svg { width: 40px; height: 40px; }

.phone-screen h5 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; color: #fff; }
.phone-screen .rate { font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.7); }

.phone-screen .waves { display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.phone-screen .waves i {
    width: 5px; border-radius: 4px;
    background: rgba(255,255,255,0.85);
    animation: eq 1.1s ease-in-out infinite;
}
.phone-screen .waves i:nth-child(1){height:40%;animation-delay:0s}
.phone-screen .waves i:nth-child(2){height:80%;animation-delay:-.2s}
.phone-screen .waves i:nth-child(3){height:55%;animation-delay:-.4s}
.phone-screen .waves i:nth-child(4){height:100%;animation-delay:-.1s}
.phone-screen .waves i:nth-child(5){height:65%;animation-delay:-.3s}
.phone-screen .waves i:nth-child(6){height:35%;animation-delay:-.5s}

@keyframes eq { 0%,100%{transform:scaleY(0.4)} 50%{transform:scaleY(1)} }

/* Coming soon strip */
.soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 44px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    background: var(--panel);
    flex-wrap: wrap;
}

.soon h3 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 600; }
.soon p { color: var(--muted); font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.5px; }

/* ===== Studio statement ===== */
.studio { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.studio-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }

.studio-wrap .big {
    font-family: 'Sora', sans-serif;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.25;
}

.studio-wrap .big em { font-style: normal; color: var(--lime); }

.studio-side { display: flex; flex-direction: column; gap: 22px; }

.studio-metric {
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
}

.studio-metric .n { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 700; color: var(--lime); }
.studio-metric .t { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ===== Approach ===== */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.principle {
    background: var(--bg);
    padding: 40px 34px;
    transition: var(--transition);
}

.principle:hover { background: var(--bg-elev); }

.principle .idx {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--lime);
    margin-bottom: 20px;
}

.principle h4 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ===== Contact CTA ===== */
.cta-panel {
    position: relative;
    padding: 72px 56px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(70% 120% at 50% 0%, rgba(55,211,154,0.16), transparent 70%),
        var(--bg-elev);
    overflow: hidden;
    text-align: center;
}

.cta-panel h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 16px 0 18px;
    line-height: 1.1;
}

.cta-panel p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 34px; }

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.cta-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.cta-detail { text-align: left; }
.cta-detail .k { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.cta-detail .v { font-size: 15px; color: var(--text); }
.cta-detail a:hover { color: var(--lime); }

/* ===== Footer ===== */
.footer {
    padding: 70px 0 40px;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 3;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; line-height: 1.7; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--dim);
    letter-spacing: 0.5px;
}

/* ===== Scroll top ===== */
.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(11,29,23,0.8);
    backdrop-filter: blur(10px);
    color: var(--lime);
    cursor: pointer;
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { box-shadow: var(--glow-lime); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .cursor-glow { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-stack { height: 380px; max-width: 460px; }
    .app-row { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .app-row.reverse .app-visual { order: 0; }
    .app-visual { order: 0; }
    .studio-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 62px; left: 16px; right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px;
        border-radius: 20px;
        background: rgba(11,29,23,0.96);
        border: 1px solid var(--line);
        backdrop-filter: blur(18px);
        transform: translateY(-140%);
        transition: transform 0.35s var(--ease);
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-menu a { padding: 12px 16px; }
    .section { padding: 84px 0; }
    .hero { padding-top: 130px; }
    .cta-panel { padding: 48px 26px; }
    .cta-details { gap: 24px; }
    .footer-top { flex-direction: column; }
}

@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .tile { width: 168px; padding: 18px; }
    .hero-stats { gap: 28px; }
}
