:root {
    --bg-abyss: #040507;
    --bg-deep: #06080d;
    --bg-surface: #0a0c12;
    --bg-card: rgba(10, 12, 20, 0.55);
    --bg-elevated: rgba(14, 16, 24, 0.7);

    --accent: #3d7eff;
    --accent-bright: #6b9fff;
    --accent-dim: #2a5cbf;
    --accent-glow: rgba(61, 126, 255, 0.35);
    --accent-soft: rgba(61, 126, 255, 0.07);
    --accent-border: rgba(61, 126, 255, 0.12);

    --green: #00d26a;
    --green-glow: rgba(0, 210, 106, 0.4);

    --text-primary: #e8ecf4;
    --text-secondary: #7a8599;
    --text-muted: #3a4354;

    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(61, 126, 255, 0.15);

    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --nav-h: 72px;
    --radius: 14px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) var(--bg-deep);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

body {
    font-family: var(--font-body);
    background: var(--bg-abyss);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(61, 126, 255, 0.3); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hide-mobile { display: inline; }
@media (max-width: 768px) { .hide-mobile { display: none; } }

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    box-shadow: 0 0 8px var(--accent-glow);
}

.cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(61, 126, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-spring), height 0.35s var(--ease-spring),
                border-color 0.3s, opacity 0.3s;
}

.cursor-dot.hover { width: 8px; height: 8px; }
.cursor-ring.hover { width: 50px; height: 50px; border-color: rgba(61, 126, 255, 0.25); }
.cursor-dot.hidden, .cursor-ring.hidden { opacity: 0; }

#webgl-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#sparkles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 32px;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.nav-wrapper.scrolled {
    background: rgba(4, 5, 7, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: var(--border);
}

.nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--text-primary);
    transition: opacity 0.3s;
}
.nav-brand:hover { opacity: 0.8; }

.brand-dot {
    color: var(--accent);
    display: inline-block;
    animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nav-links { display: flex; gap: 32px; }

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

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

.btn-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    transition: color 0.3s;
}
.btn-login:hover { color: var(--text-primary); }

.btn-nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 9px 22px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 0 20px rgba(61, 126, 255, 0.15);
}
.btn-nav-cta:hover {
    background: var(--accent-bright);
    box-shadow: 0 0 32px rgba(61, 126, 255, 0.3);
    transform: translateY(-1px);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}
.nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all 0.3s;
    transform-origin: center;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 7, 0.96);
    backdrop-filter: blur(40px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-link {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s;
}
.mobile-link.dim { color: var(--text-secondary); font-size: 18px; }
.mobile-link:hover { color: var(--accent); }

.mobile-divider { width: 40px; height: 1px; background: var(--border-hover); margin: 8px 0; }
.mobile-cta { margin-top: 8px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
    box-shadow: 0 0 30px rgba(61, 126, 255, 0.2),
                0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 0 50px rgba(61, 126, 255, 0.35),
                0 4px 24px rgba(61, 126, 255, 0.2),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-2px);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary.large { padding: 18px 44px; font-size: 16px; border-radius: 12px; }
.btn-primary.full-w { width: 100%; justify-content: center; }

.btn-glow {
    box-shadow: 0 0 40px rgba(61, 126, 255, 0.25),
                0 0 80px rgba(61, 126, 255, 0.08),
                0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.btn-glow:hover {
    box-shadow: 0 0 60px rgba(61, 126, 255, 0.4),
                0 0 120px rgba(61, 126, 255, 0.12),
                0 4px 24px rgba(61, 126, 255, 0.2),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.35s var(--ease-out);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    background: var(--accent-soft);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    width: min(60%, 500px);
    height: 1px;
    margin: 0 auto 0;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 140px 24px 60px;
}

.hero-ambient {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(61, 126, 255, 0.1) 0%, rgba(61, 126, 255, 0.03) 40%, transparent 70%);
    pointer-events: none;
    animation: ambient-pulse 5s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-ambient-secondary {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(61, 126, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@keyframes ambient-pulse {
    0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-bright);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 9px 22px;
    border-radius: 100px;
    margin-bottom: 36px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(61, 126, 255, 0.08), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0% { left: -60%; }
    100% { left: 160%; }
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: dot-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(72px, 13vw, 150px);
    font-weight: 800;
    font-optical-sizing: auto;
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 28px;
    position: relative;
    visibility: hidden;
}
.hero-title.split {
    visibility: visible;
}

.hero-title .char {
    display: inline-block;
    background: linear-gradient(180deg, #ffffff 15%, var(--accent-bright) 65%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
    filter: blur(8px);
}

.hero-title .char.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.hero-title.revealed {
    animation: title-breathe 4s ease-in-out infinite alternate;
}

@keyframes title-breathe {
    0%   { filter: drop-shadow(0 0 40px rgba(61, 126, 255, 0.15)); }
    100% { filter: drop-shadow(0 0 80px rgba(61, 126, 255, 0.35)); }
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    animation: trust-pulse 3s ease-in-out infinite;
}

@keyframes trust-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-glow);
    animation: dot-pulse 2s ease-in-out infinite;
}

.trust-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.hero-float {
    position: absolute;
    transition: transform 0.5s var(--ease-out);
    z-index: 3;
    will-change: transform;
}

.hero-float img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.4s;
}

.hero-float:hover img {
    opacity: 1;
}

.float-pos-1 {
    top: 18%;
    left: 2%;
    max-width: 200px;
    animation: float-card 10s ease-in-out infinite;
}

.float-pos-2 {
    top: 14%;
    right: 2%;
    max-width: 200px;
    animation: float-card 10s ease-in-out infinite -4s;
}

.float-pos-3 {
    bottom: 22%;
    left: 4%;
    max-width: 180px;
    animation: float-card 10s ease-in-out infinite -7s;
}

.float-pos-power {
    bottom: 14%;
    right: 18%;
    max-width: 380px;
    animation: float-power 8s ease-in-out infinite -2s;
    transform: rotate(2deg);
}

@keyframes float-power {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    40%      { transform: translateY(-12px) rotate(3deg); }
    70%      { transform: translateY(5px) rotate(1deg); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30%      { transform: translateY(-10px) rotate(0.5deg); }
    60%      { transform: translateY(6px) rotate(-0.3deg); }
}

.hero-badge-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(8, 10, 18, 0.55);
    border: 1px solid var(--border);
    padding: 14px 20px 14px 16px;
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    white-space: nowrap;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
    z-index: 3;
    overflow: hidden;
}

.hero-badge-float:hover {
    border-color: var(--border-accent);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(61, 126, 255, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.badge-float-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.badge-float-icon.green {
    background: rgba(0, 210, 106, 0.06);
    border-color: rgba(0, 210, 106, 0.12);
    color: var(--green);
    box-shadow: 0 0 12px rgba(0, 210, 106, 0.08);
}
.badge-float-icon.blue {
    background: rgba(61, 126, 255, 0.06);
    border-color: var(--accent-border);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(61, 126, 255, 0.08);
}

.badge-float-text { display: flex; flex-direction: column; gap: 3px; }

.badge-float-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.badge-float-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1;
}

.badge-pos-1 { top: 32%; left: 12%; transform: rotate(-3deg); animation: float-badge-left 9s ease-in-out infinite; }
.badge-pos-2 { top: 58%; right: 11%; transform: rotate(3deg); animation: float-badge-right 9s ease-in-out infinite -4s; }

@keyframes float-badge-left {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    35%      { transform: translateY(-10px) rotate(-2deg); }
    65%      { transform: translateY(5px) rotate(-4deg); }
}

@keyframes float-badge-right {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    35%      { transform: translateY(-8px) rotate(4deg); }
    65%      { transform: translateY(6px) rotate(2deg); }
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    35%      { transform: translateY(-10px); }
    65%      { transform: translateY(5px); }
}

.features {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

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

.bento-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out);
    backdrop-filter: blur(12px);
}
.bento-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.bento-wide { grid-column: span 2; }

.card-light {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
    background: radial-gradient(
        500px circle at var(--mx, 50%) var(--my, 50%),
        rgba(61, 126, 255, 0.06),
        transparent 40%
    );
    pointer-events: none;
}
.bento-card:hover .card-light { opacity: 1; }

.card-shine { display: none; }

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.bento-card:hover::before { opacity: 1; }

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 20px;
    transition: box-shadow 0.4s;
}

.bento-card:hover .card-icon {
    box-shadow: 0 0 16px rgba(61, 126, 255, 0.12);
}

.card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border: 1px solid var(--accent-border);
    border-radius: 6px;
    background: var(--accent-soft);
}

.showcase {
    position: relative;
    z-index: 2;
    padding: 100px 0 120px;
}

.showcase-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(61, 126, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.showcase-frame { margin-bottom: 32px; }

.showcase-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}

.showcase-text { max-width: 420px; }

.showcase-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 16px 0 24px;
}

.showcase-points { display: flex; flex-direction: column; gap: 10px; }

.showcase-pt {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.showcase-img {
    overflow: visible;
    border-radius: 12px;
}
.showcase-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transform: perspective(1200px) rotateY(-5deg);
    transform-origin: right center;
    transition: transform 0.5s var(--ease-out);
}
.showcase-img:hover img {
    transform: perspective(1200px) rotateY(-2deg);
}

@media (max-width: 768px) {
    .showcase-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .showcase-img img {
        transform: none;
    }
}

.frame-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(61, 126, 255, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.frame-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.frame-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 8, 13, 0.6);
}

.frame-dots {
    display: flex;
    gap: 7px;
}
.frame-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}
.frame-dots span:first-child { background: #ff5f57; opacity: 0.7; }
.frame-dots span:nth-child(2) { background: #febc2e; opacity: 0.7; }
.frame-dots span:last-child { background: #28c840; opacity: 0.7; }

.frame-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.frame-actions {
    display: flex;
    gap: 6px;
}
.frame-actions span {
    width: 14px;
    height: 2px;
    background: var(--text-muted);
    opacity: 0.3;
    border-radius: 1px;
}

.frame-body {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(6, 8, 13, 0.3), rgba(6, 8, 13, 0.6));
}

.frame-body.has-image {
    min-height: 0;
    background: none;
}
.frame-body.has-image img {
    width: 100%;
    height: auto;
    display: block;
}

.frame-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}
.frame-stub-sub {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}
.frame-stub.small {
    min-height: 160px;
    justify-content: center;
    font-size: 13px;
    gap: 8px;
}

.showcase-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.thumb {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
    backdrop-filter: blur(8px);
}
.thumb:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}
.thumb-inner { padding: 0; }

.steps-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    overflow: hidden;
}

.steps-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 320px;
    padding: 32px;
    text-align: center;
}

.step-num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-border);
    margin-bottom: 20px;
    line-height: 1;
    transition: -webkit-text-stroke-color 0.4s, text-shadow 0.4s;
}
.step:hover .step-num {
    -webkit-text-stroke-color: var(--accent);
    text-shadow: 0 0 30px rgba(61, 126, 255, 0.2);
}

.step[data-build] .step-num {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
                -webkit-text-stroke-color 0.4s, text-shadow 0.4s;
}

.step[data-build].visible .step-num {
    opacity: 1;
    transform: scale(1);
}

.step-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.step-line {
    width: 1px;
    align-self: stretch;
    position: relative;
    margin: 40px 0;
}
.step-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--border);
}
.step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    transition: height 0.8s var(--ease-out);
    box-shadow: 0 0 8px var(--accent-glow);
}
.step-line-fill.drawn { height: 100%; }

.devkit {
    position: relative;
    z-index: 2;
    padding: 40px 0 80px;
}

.devkit-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.devkit-text { max-width: 460px; }

.section-title.align-left { text-align: left; }

.devkit-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 20px 0 28px;
}

.devkit-highlights { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }

.devkit-hl {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hl-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--accent-glow);
}

.devkit-img {
    position: relative;
    overflow: visible;
}
.devkit-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    opacity: 0.9;
}

.code-window {
    background: rgba(8, 10, 16, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    position: relative;
}

.code-chrome {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(4, 5, 7, 0.5);
}
.code-dots {
    display: flex;
    gap: 6px;
    margin-right: 14px;
}
.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}
.code-filename {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
    color: #abb2bf;
}
.code-body code { white-space: pre; }

.kw { color: #c678dd; }
.fn { color: #61afef; }
.str { color: #98c379; }
.num { color: #d19a66; }
.cm { color: #5c6370; font-style: italic; }
.op { color: #56b6c2; }
.bool { color: #d19a66; }

.code-cursor {
    position: absolute;
    bottom: 28px;
    right: 26px;
    width: 2px;
    height: 16px;
    background: var(--accent);
    animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.decryption {
    position: relative;
    z-index: 2;
    padding: 20px 0 60px;
}

.decryption .section-header {
    margin-bottom: 24px;
}

.pricing .section-header {
    margin-bottom: 40px;
}

.compare-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.compare-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.compare-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.compare-viewer {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1.5px solid var(--accent-border);
    box-shadow: 0 0 40px rgba(61, 126, 255, 0.06),
                0 20px 60px rgba(0, 0, 0, 0.4);
    background: var(--bg-deep);
    cursor: col-resize;
    -webkit-user-select: none;
    user-select: none;
}

.compare-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.compare-after {
    display: block;
}

.compare-before {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
}

.compare-before .compare-img {
    width: 0;
    min-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.compare-line-v {
    flex: 1;
    width: 1.5px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.compare-grip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 16px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    flex-shrink: 0;
    pointer-events: auto;
    cursor: col-resize;
    transition: transform 0.2s, box-shadow 0.2s;
}

.compare-grip:hover {
    transform: scale(1.1);
    box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.pricing {
    position: relative;
    z-index: 2;
    padding: 20px 0 80px;
}

.pricing-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background:
        radial-gradient(ellipse 55% 60% at 35% 40%, rgba(100, 60, 255, 0.07), transparent),
        radial-gradient(ellipse 55% 60% at 65% 50%, rgba(61, 126, 255, 0.08), transparent),
        radial-gradient(ellipse 40% 45% at 50% 35%, rgba(140, 80, 255, 0.05), transparent);
    pointer-events: none;
    animation: pricing-glow-shift 8s ease-in-out infinite alternate;
}

@keyframes pricing-glow-shift {
    0%   { filter: hue-rotate(0deg); opacity: 1; }
    50%  { filter: hue-rotate(-15deg); opacity: 0.8; }
    100% { filter: hue-rotate(10deg); opacity: 1; }
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 16px;
    align-items: start;
}

.pricing-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: transparent;
}

@property --bdr-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.pricing-border {
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    background: conic-gradient(
        from var(--bdr-angle),
        transparent 50%,
        var(--accent-dim) 72%,
        var(--accent-bright) 82%,
        var(--accent-dim) 92%,
        transparent 100%
    );
    animation: rotate-border 5s linear infinite;
    z-index: 0;
}
@keyframes rotate-border {
    to { --bdr-angle: 360deg; }
}

.pricing-inner {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border-radius: 18px;
    padding: 32px;
}

.pricing-featured-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border: 1px solid var(--accent-border);
    border-radius: 6px;
    background: var(--accent-soft);
    margin-bottom: 20px;
}

.pricing-head { margin-bottom: 28px; }

.pricing-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.pricing-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.pricing-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: border-color 0.3s, background 0.3s;
}
.tier:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.tier.highlighted {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.tier-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.tier-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tier-cur {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.tier.highlighted .tier-price {
    color: var(--accent-bright);
}

.faq {
    position: relative;
    z-index: 2;
    padding: 100px 0 120px;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
}
.faq-item.active { border-color: var(--border-accent); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color 0.3s;
}
.faq-q:hover { color: var(--accent-bright); }

.faq-icon {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}
.faq-icon span {
    position: absolute;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.faq-icon span:first-child {
    width: 16px;
    height: 1.5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.faq-icon span:last-child {
    width: 1.5px;
    height: 16px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.faq-item.active .faq-icon span:last-child {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
    will-change: max-height;
}
.faq-item.active .faq-a {
    max-height: 180px;
    padding: 0 24px 20px;
}

.faq-a p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.final-cta {
    position: relative;
    z-index: 2;
    padding: 100px 0 120px;
    text-align: center;
}

.cta-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(61, 126, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.cta-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.footer {
    position: relative;
    z-index: 2;
    padding: 64px 0 32px;
}

.footer-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.footer-heading {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.features { position: relative; }
.features::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 15% 10%, rgba(61, 126, 255, 0.035), transparent);
    pointer-events: none;
    z-index: 0;
}

.showcase { position: relative; }

.steps-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(61, 126, 255, 0.015), transparent);
    pointer-events: none;
    z-index: 0;
}

.devkit { position: relative; }
.devkit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 40% 50% at 85% 50%, rgba(61, 126, 255, 0.025), transparent);
    pointer-events: none;
    z-index: 0;
}

.faq::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 126, 255, 0.1), transparent);
    pointer-events: none;
}

.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 60%, rgba(61, 126, 255, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

.has-grid { position: relative; }

.has-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(61, 126, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 126, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black, transparent);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.has-grid > *:not([aria-hidden="true"]) { position: relative; z-index: 1; }

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(16px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; }
    .pricing-row { grid-template-columns: 1fr 1fr; }
    .pricing-card.featured { grid-column: 1 / -1; }
    .devkit-split { grid-template-columns: 1fr; gap: 48px; }
    .devkit-text { max-width: 100%; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }

    .hero-float { max-width: 160px !important; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }

    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-mobile-toggle { display: flex; }

    .hero { padding: 120px 20px 80px; min-height: 90vh; }
    .hero-badge-float { display: none; }
    .hero-float { display: none; }

    .hero-trust { flex-direction: column; gap: 8px; }
    .trust-sep { display: none; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }

    .showcase-thumbs { grid-template-columns: 1fr; }

    .steps-row { flex-direction: column; align-items: center; }
    .step-line {
        width: 100%;
        max-width: 200px;
        height: 1px;
        margin: 0;
    }
    .step-line::before { inset: 0; }
    .step-line-fill {
        width: 0% !important;
        height: 100% !important;
    }
    .step-line-fill.drawn { width: 100% !important; }

    .pricing-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card.featured { grid-column: auto; }

    .devkit-split { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { letter-spacing: 4px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-row { grid-template-columns: 1fr; }
    .pricing-inner { padding: 24px; }
    .frame-body { min-height: 260px; }
}
