:root {
    --bg: #0B0E17;
    --bg-2: #111827;
    --bg-card: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #F1F5F9;
    --text-2: #94A3B8;
    --text-3: #64748B;
    --accent: #818CF8;
    --accent-2: #6366F1;
    --accent-glow: rgba(99,102,241,0.35);
    --warm: #F59E0B;
    --grad-1: #6366F1;
    --grad-2: #A855F7;
    --grad-3: #EC4899;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: rgba(11,14,23,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.nav-logo {
    width: 28px;
    height: 28px;
    color: var(--accent);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-lang {
    opacity: 0.5;
    font-size: 0.85rem !important;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font);
}
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    background: rgba(99,102,241,0.12);
    color: var(--accent);
    border: 1px solid rgba(99,102,241,0.2);
}
.btn-sm:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.35);
}
.btn-primary {
    background: var(--accent-2);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow), 0 6px 20px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}
.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
    background: url('/assets/img/hero.png') center center / cover no-repeat;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: rgba(11,14,23,0.55);
}
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: aurora 12s ease-in-out infinite alternate;
}
.aurora-1 {
    width: 600px;
    height: 600px;
    background: var(--grad-1);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}
.aurora-2 {
    width: 500px;
    height: 500px;
    background: var(--grad-2);
    top: 10%;
    right: -15%;
    animation-delay: -4s;
    animation-duration: 15s;
}
.aurora-3 {
    width: 400px;
    height: 400px;
    background: var(--grad-3);
    bottom: -10%;
    left: 30%;
    animation-delay: -8s;
    animation-duration: 18s;
}
@keyframes aurora {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50%  { opacity: 0.5; }
    100% { transform: translate(80px, 40px) scale(1.2); opacity: 0.35; }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(99,102,241,0.12);
    color: var(--accent);
    border: 1px solid rgba(99,102,241,0.2);
    margin-bottom: 2rem;
}
h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero-line { display: block; }
.hero-gradient {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.hero-actions { margin-bottom: 1rem; }
.hero-note {
    font-size: 0.85rem;
    color: var(--text-3);
}

/* ---- MOCKUP ---- */
.hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 4rem auto 0;
    perspective: 1200px;
}
.mockup {
    background: rgba(17,24,39,0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 60px -15px rgba(0,0,0,0.5),
        0 0 40px rgba(99,102,241,0.08);
    transform: rotateX(4deg);
    transition: transform 0.6s ease;
}
.mockup:hover { transform: rotateX(0deg); }
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-3);
    opacity: 0.3;
}
.mockup-title {
    margin-left: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}
.mockup-body {
    display: flex;
    min-height: 280px;
}
.mockup-sidebar {
    width: 200px;
    padding: 1rem 0.8rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mockup-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-2);
    cursor: default;
    transition: background 0.2s;
}
.mockup-item.active {
    background: rgba(99,102,241,0.1);
    color: var(--accent);
}
.mockup-main {
    flex: 1;
    padding: 1.5rem;
}
.mockup-chapter {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text);
}
.mockup-lines { display: flex; flex-direction: column; gap: 8px; }
.mockup-line {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.mockup-line.typing {
    position: relative;
    overflow: hidden;
}
.mockup-line.typing::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.mockup-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-2);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot.green {
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

/* ---- SECTIONS ---- */
.section {
    padding: 7rem 0;
    position: relative;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-2);
}

/* ---- FEATURES ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4);
}
.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.feature-card p {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */
.steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
}
.step-num {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    width: 70px;
}
.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-content p {
    color: var(--text-2);
    font-size: 1rem;
}
.step-line {
    width: 2px;
    height: 40px;
    margin-left: 35px;
    background: linear-gradient(to bottom, var(--accent-2), transparent);
    border-radius: 2px;
}

/* ---- PRICING ---- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}
.price-card:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}
.price-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.2rem;
}
.price-icon svg { width: 100%; height: 100%; }
.price-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.price-card p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.6;
}
.built-by {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-3);
    font-size: 0.95rem;
    font-style: italic;
}

/* ---- CTA SECTION ---- */
.cta-section { padding: 4rem 0 6rem; }
.cta-box {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
}
.cta-box .aurora {
    opacity: 0.2;
    filter: blur(100px);
}
.cta-box .aurora-1 {
    width: 400px;
    height: 400px;
    top: -50%;
    right: -10%;
}
.cta-box .aurora-2 {
    width: 300px;
    height: 300px;
    bottom: -40%;
    left: -5%;
    background: var(--grad-3);
}
.cta-box h2 {
    position: relative;
    z-index: 2;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-box > p {
    position: relative;
    z-index: 2;
    color: var(--text-2);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.waitlist-form {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto 1rem;
}
.waitlist-form input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
}
.waitlist-form input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.waitlist-form input::placeholder { color: var(--text-3); }
.cta-note {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    color: var(--text-3);
}
.form-msg {
    position: relative;
    z-index: 2;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.form-msg.success {
    background: rgba(34,197,94,0.12);
    color: #4ADE80;
    border: 1px solid rgba(34,197,94,0.2);
}
.form-msg.error {
    background: rgba(239,68,68,0.12);
    color: #F87171;
    border: 1px solid rgba(239,68,68,0.2);
}
.form-msg.info {
    background: rgba(99,102,241,0.12);
    color: var(--accent);
    border: 1px solid rgba(99,102,241,0.2);
}

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-left p {
    font-size: 0.9rem;
    color: var(--text-2);
}
.footer-copy {
    font-size: 0.8rem !important;
    color: var(--text-3) !important;
    margin-top: 0.25rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-2); }
.footer-right a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-right a:hover { color: var(--text-2); }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(17,24,39,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.cookie-inner p {
    color: var(--text-2);
    font-size: 0.85rem;
    margin: 0;
}
.cookie-inner a {
    color: var(--accent);
    text-decoration: none;
}
.cookie-inner a:hover { text-decoration: underline; }

/* ---- LEGAL PAGES ---- */
.legal-page {
    padding: 8rem 1.5rem 4rem;
    min-height: 100vh;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.legal-page .legal-date {
    color: var(--text-3);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}
.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--text);
}
.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}
.legal-page p, .legal-page li {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-page a {
    color: var(--accent);
    text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }

/* ---- REVEAL ANIMATIONS ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible {
    opacity: 1;
    transform: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11,14,23,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; z-index: 101; }

    .hero { padding: 7rem 1rem 3rem; }
    .hero-visual { margin-top: 2.5rem; }
    .mockup { transform: none; }
    .mockup-sidebar { display: none; }
    .mockup-body { min-height: 200px; }

    .feature-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }

    .step { gap: 1.2rem; }
    .step-num { font-size: 2rem; width: 50px; }

    .cta-box { padding: 3rem 1.5rem; }
    .waitlist-form { flex-direction: column; }

    .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-links { justify-content: center; }
    .cookie-inner { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .feature-card { padding: 1.8rem; }
}
