:root {
    --bg: #06060b;
    --bg-2: #0e0e16;
    --bg-card: #141420;
    --text: #f0f0f5;
    --text-2: #8a8aa0;
    --accent: #3b82f6;
    --accent-2: #818cf8;
    --glow: rgba(59, 130, 246, 0.15);
    --glow-2: rgba(129, 140, 248, 0.1);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

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


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

/* ── Header ── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: rgba(6, 6, 11, 0.8);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.2rem; }
.logo-icon { width: 28px; height: 28px; border-radius: 7px; }
.logo em { font-style: normal; color: var(--accent); }

.btn-buy {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem;
    background: var(--accent); color: #fff;
    font-size: .85rem; font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .3);
    transition: all .2s ease;
}
.btn-buy:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, .45);
    transform: translateY(-1px);
}
.btn-buy svg { width: 16px; height: 16px; }

/* ── Shared section ── */
.section { padding: 5rem clamp(1.25rem, 4vw, 3rem); max-width: 1140px; margin: 0 auto; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; text-align: center; letter-spacing: -.5px; margin-bottom: .75rem; }
.section-desc { text-align: center; color: var(--text-2); font-size: 1.05rem; max-width: 540px; margin: 0 auto 3rem; }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Hero ── */
.hero {
    padding-top: calc(64px + 4rem);
    padding-bottom: 2rem;
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
    width: min(700px, 100vw); height: 500px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .9rem; border-radius: 99px;
    background: var(--glow); border: 1px solid rgba(59,130,246,.2);
    font-size: .75rem; font-weight: 600; color: var(--accent-2);
    margin-bottom: 1.5rem; letter-spacing: .3px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 1.25rem;
}

.hero h1 .grad {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, #c084fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-2); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7;
}

/* hero buttons */
.hero-btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3.5rem; }

.dl-btn {
    display: flex; align-items: center; gap: .55rem;
    padding: .6rem 1.1rem;
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    border-radius: 12px; transition: all .25s ease;
}

.dl-btn:hover {
    background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15);
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.dl-btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: var(--text); }
.dl-btn .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.dl-btn .t small { font-size: .55rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; }
.dl-btn .t strong { font-size: .85rem; font-weight: 600; }

/* ── Device showcase ── */

.devices {
    position: relative;
    width: 100%; max-width: 960px; margin: 0 auto;
    display: flex; align-items: flex-end; justify-content: center;
    gap: 0;
    padding-bottom: 1rem;
}

/* phone frame */
.dev-phone {
    width: 21%; flex-shrink: 0; position: relative; z-index: 3;
}

.dev-phone .frame {
    background: #1a1a2e;
    border: 2.5px solid #2a2a3e;
    border-radius: 28px;
    padding: 6px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        0 20px 60px rgba(0,0,0,.5),
        0 0 40px var(--glow);
}

.dev-phone .frame img { border-radius: 22px; }

/* ipad frame */
.dev-ipad {
    width: 35%; flex-shrink: 0; position: relative; z-index: 2;
    margin: 0 -3%;
    align-self: center;
}

.dev-ipad .frame {
    background: #1a1a2e;
    border: 2.5px solid #2a2a3e;
    border-radius: 20px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        0 25px 70px rgba(0,0,0,.5),
        0 0 50px var(--glow-2);
}

.dev-ipad .frame img { border-radius: 14px; }

/* laptop frame */
.dev-laptop {
    width: 50%; flex-shrink: 0; position: relative; z-index: 1;
}

.dev-laptop .screen {
    background: #1a1a2e;
    border: 2.5px solid #2a2a3e;
    border-radius: 10px 10px 0 0;
    padding: 5px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        0 25px 80px rgba(0,0,0,.5);
}

.dev-laptop .screen img { border-radius: 6px; }

.dev-laptop .base {
    height: 12px;
    background: linear-gradient(to bottom, #2a2a3e, #222236);
    border-radius: 0 0 4px 4px;
    margin: 0 -4%;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.dev-laptop .notch {
    width: 60px; height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
    margin: 0 auto;
    position: relative; top: -1px;
}

/* device hover */
.dev-phone { transition: transform .4s ease; }
.dev-phone:hover { transform: translateY(-6px); }
.dev-ipad { transition: transform .4s ease; }
.dev-ipad:hover { transform: translateY(-6px); }

/* ── Features ── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all .3s ease;
}

.feat:hover {
    border-color: rgba(59,130,246,.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.feat-ic {
    width: 44px; height: 44px; border-radius: 11px;
    background: linear-gradient(135deg, var(--glow), var(--glow-2));
    display: grid; place-items: center;
    margin-bottom: 1rem;
}

.feat-ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feat h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.feat p { font-size: .85rem; color: var(--text-2); line-height: 1.55; }

/* ── Screenshots ── */
.screenshots { overflow: hidden; }

.screens-row {
    display: flex; gap: 1.25rem; justify-content: center;
    padding: 1rem 0;
}

.screens-row .dev-phone { width: 180px; }
.screens-row .dev-phone:hover { transform: translateY(-8px); }

/* ── Download ── */
.download-section { text-align: center; }

.download-logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 1.5rem; }

.download-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: .75rem; max-width: 480px; margin: 0 auto;
}

.dl-card {
    display: flex; align-items: center; gap: .7rem;
    padding: .9rem 1.25rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; transition: all .25s ease;
}

.dl-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--glow);
}

.dl-card svg { width: 26px; height: 26px; flex-shrink: 0; fill: var(--text); }
.dl-card .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.dl-card .t small { font-size: .6rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; }
.dl-card .t strong { font-size: .95rem; font-weight: 600; }

/* ── Open Source ── */
.oss {
    text-align: center;
    max-width: 680px; margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
}

.oss p { color: var(--text-2); font-size: 1.05rem; max-width: 480px; margin: 0 auto 1.75rem; line-height: 1.7; }

.btn-gh {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.75rem;
    border: 1.5px solid var(--accent); border-radius: 10px;
    color: var(--accent); font-weight: 600; font-size: .95rem;
    transition: all .25s ease;
}

.btn-gh:hover {
    background: var(--accent); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--glow);
}

.btn-gh svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Footer ── */
.footer {
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid var(--border);
    max-width: 1140px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.footer p { color: var(--text-2); font-size: .8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-2); font-size: .8rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

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

@media (max-width: 768px) {
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

    .hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 340px; margin: 0 auto 3.5rem; }
    .dl-btn { justify-content: center; }

    .feat-grid { grid-template-columns: 1fr; }

    .screenshots { overflow: hidden; }
    .screens-row {
        justify-content: flex-start;
        overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1.25rem;
        margin: 0 calc(-1 * clamp(1.25rem, 4vw, 3rem));
        width: auto;
    }
    .screens-row .dev-phone { scroll-snap-align: start; width: 160px; flex-shrink: 0; }

    .download-grid { grid-template-columns: 1fr 1fr; max-width: 340px; }
    .dl-card { padding: .7rem .8rem; gap: .5rem; }
    .dl-card svg { width: 20px; height: 20px; }
    .dl-card .t small { font-size: .5rem; }
    .dl-card .t strong { font-size: .75rem; }

    .footer { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 480px) {
    .btn-buy { font-size: .75rem; padding: .4rem .8rem; }
    .hero h1 { font-size: 1.8rem; }

    .dev-phone .frame { border-radius: 14px; padding: 3px; border-width: 1.5px; }
    .dev-phone .frame img { border-radius: 11px; }
    .dev-ipad .frame { border-radius: 10px; padding: 4px; border-width: 1.5px; }
    .dev-ipad .frame img { border-radius: 7px; }
    .dev-laptop .screen { border-radius: 5px 5px 0 0; padding: 2px; border-width: 1.5px; }
    .dev-laptop .screen img { border-radius: 3px; }
    .dev-laptop .base { height: 6px; }
    .dev-laptop .notch { width: 30px; height: 2px; }
}
