/* ══════════════════════════════════════════════════════════════════════════════
   Zonix Website — Dark Cyan Theme + Animations & Post-Processing
   ══════════════════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-card: #0e1018;
    --bg-card-hover: #121520;
    --border: #1a2e3e;
    --border-light: #2a4a5a;
    --accent: #00e5ff;
    --accent-dim: #007a99;
    --accent-glow: rgba(0, 229, 255, 0.12);
    --accent-strong-glow: rgba(0, 229, 255, 0.25);
    --text-primary: #e8eaed;
    --text-secondary: #8aa8b8;
    --text-muted: #5a7a8a;
    --success: #00ff88;
    --warning: #ffcc00;
    --danger: #ff4444;
    --font-mono: "Consolas", "JetBrains Mono", "Fira Code", monospace;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: rgba(0, 229, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Scroll Reveal Animations ──────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Noise / Grain Overlay ─────────────────────────────────────────────────── */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Scanline Effect ───────────────────────────────────────────────────────── */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
}

.nav-logo span {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 6px var(--accent);
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transition: all 0.3s !important;
}

.nav-btn::after {
    display: none !important;
}

.nav-btn:hover {
    background: #33ecff !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 229, 255, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 60%, rgba(0, 100, 180, 0.04) 0%, transparent 40%);
    pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Animated grid lines */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    animation: gridScroll 20s linear infinite;
    pointer-events: none;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite;
    box-shadow: 0 0 6px var(--accent);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1.2s; animation-duration: 6s; }
.particle:nth-child(3) { left: 35%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(4) { left: 50%; animation-delay: 2s; animation-duration: 5.5s; }
.particle:nth-child(5) { left: 65%; animation-delay: 0.8s; animation-duration: 7.5s; }
.particle:nth-child(6) { left: 75%; animation-delay: 1.5s; animation-duration: 6.5s; }
.particle:nth-child(7) { left: 85%; animation-delay: 2.5s; animation-duration: 8s; }
.particle:nth-child(8) { left: 90%; animation-delay: 0.3s; animation-duration: 5s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

.hero h1 {
    font-family: var(--font-mono);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 12px;
    margin-bottom: 16px;
    line-height: 1;
    animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes titleReveal {
    to { opacity: 1; transform: translateY(0); }
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.2);
    animation: accentGlow 3s ease-in-out infinite alternate;
}

@keyframes accentGlow {
    0% { text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.2); }
    100% { text-shadow: 0 0 30px rgba(0, 229, 255, 0.7), 0 0 80px rgba(0, 229, 255, 0.3); }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeUp 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeUp 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
    background: #33ecff;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.35);
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.1);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: fadeUp 1s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Features ──────────────────────────────────────────────────────────────── */

.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.section-title {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 229, 255, 0.04), transparent 40%);
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--accent-dim);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.08), 0 0 1px var(--accent-dim);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

.feature-card h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 18px;
    transition: color 0.2s, transform 0.2s;
}

.feature-card li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.feature-card li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-dim);
    font-family: var(--font-mono);
    transition: color 0.2s;
}

.feature-card li:hover::before {
    color: var(--accent);
}

/* ── Showcase ──────────────────────────────────────────────────────────────── */

.showcase {
    padding: 120px 0;
    position: relative;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.showcase-item {
    perspective: 1000px;
}

.showcase-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.showcase-mockup:hover {
    transform: rotateY(-2deg) rotateX(2deg) translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 1px var(--accent-dim);
    border-color: var(--accent-dim);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(5, 5, 10, 0.8);
    border-bottom: 1px solid var(--border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup-body {
    padding: 20px;
}

.mockup-tab {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-bottom: none;
    margin-right: 4px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.mockup-tab.active {
    color: var(--accent);
    border-top: 2px solid var(--accent);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 -2px 10px rgba(0, 229, 255, 0.1);
}

.mockup-content {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.mockup-check {
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.mockup-check:hover {
    transform: translateX(4px);
}

.mockup-check::before {
    content: "[ ]";
    margin-right: 10px;
    color: var(--border-light);
}

.mockup-check.on::before {
    content: "[x]";
    color: var(--accent);
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.mockup-check.on {
    color: var(--text-primary);
}

.login-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
}

.mockup-logo {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    animation: logoFlicker 4s ease-in-out infinite;
}

@keyframes logoFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.mockup-input {
    width: 80%;
    padding: 10px 16px;
    background: #0a0c14;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.3s;
}

.mockup-btn {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 10px 32px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.mockup-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--success);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    animation: statusBlink 2s steps(1) infinite;
}

@keyframes statusBlink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.6; }
}

/* ── Products ───────────────────────────────────────────────────────────────── */

.products {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.products::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.02), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-dim);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-container {
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-coming-soon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-footer {
    padding: 16px;
    background: var(--bg-card);
}

.product-card .btn {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border);
    color: var(--text-muted);
}
.btn.disabled:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq {
    padding: 120px 0;
    position: relative;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s;
    box-shadow: 0 0 10px var(--accent);
}

.faq-item:hover {
    border-color: var(--accent-dim);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.faq-item:hover::before {
    height: 100%;
}

.faq-item h4 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Cursor Glow (applied via JS) ─────────────────────────────────────────── */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ── Glitch text effect for hero ───────────────────────────────────────────── */

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: var(--accent);
    opacity: 0.5;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: var(--danger);
    opacity: 0.3;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -1px); }
    40% { transform: translate(-2px, 1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(-1px, -1px); }
}

/* ── Hero Warning Banner ───────────────────────────────────────────────────── */

.hero-warning {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: 32px;
    animation: fadeUp 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards, warningPulse 4s 2s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
}

.hero-warning span {
    color: var(--accent);
    font-weight: 700;
}

@keyframes warningPulse {
    0%, 100% { border-color: rgba(255, 68, 68, 0.3); }
    50% { border-color: rgba(255, 68, 68, 0.6); }
}

/* ── Terms of Service ──────────────────────────────────────────────────────── */

.tos {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.tos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
}

.tos-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.tos-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tos-item h4 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.tos-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.tos-item code {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.tos-item strong {
    color: var(--text-primary);
}

/* ── Purchase Modal ────────────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-warning {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.modal-warning code {
    color: var(--accent);
    font-weight: 700;
}

.modal-tos-scroll {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.modal-tos-scroll p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-tos-scroll ul {
    list-style: none;
    padding: 0;
}

.modal-tos-scroll li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    border-bottom: 1px solid rgba(30, 58, 74, 0.3);
}

.modal-tos-scroll li:last-child {
    border-bottom: none;
}

.modal-tos-scroll li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-family: var(--font-mono);
}

.modal-tos-scroll code {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.tos-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tos-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.tos-checkbox a {
    color: var(--accent);
    text-decoration: none;
}

.tos-checkbox a:hover {
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.modal-footer .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        letter-spacing: 6px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cursor-glow {
        display: none;
    }

    .hero-grid {
        display: none;
    }
}

/* ── Selection styling ─────────────────────────────────────────────────────── */

::selection {
    background: rgba(0, 229, 255, 0.2);
    color: var(--accent);
}

/* ── Smooth section transitions ────────────────────────────────────────────── */

section {
    position: relative;
}

/* ── Chromatic aberration on hover for images/mockups ───────────────────────── */

.chromatic-hover {
    transition: filter 0.3s;
}

.chromatic-hover:hover {
    filter: drop-shadow(2px 0 0 rgba(255, 0, 0, 0.15)) drop-shadow(-2px 0 0 rgba(0, 200, 255, 0.15));
}




/* ==========================================================================
   Checkout UI Modal (Enhanced)
   ========================================================================== */

.checkout-modal-content {
    max-width: 680px !important;
    padding: 48px 56px !important;
    background: rgba(20, 20, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 20px var(--accent-glow) !important;
    border-radius: 16px !important;
}

.checkout-step {
    display: flex;
    gap: 28px;
    margin-bottom: 48px;
    position: relative;
}

/* Connecting line between steps */
.checkout-step:first-child::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 48px;
    bottom: -32px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    margin-top: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Plan Selection Area */
.plan-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-sans);
    color: var(--text-primary);
    letter-spacing: -1px;
}

.billing-cycle {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-left: 4px;
}

.price-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.plan-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--accent-dim);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.zonix-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.zonix-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 15px var(--accent-strong-glow);
    background: rgba(0, 0, 0, 0.5);
}

.form-footer {
    text-align: right;
    margin-bottom: 28px;
}

.sign-in-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sign-in-text a {
    color: var(--accent-dim);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.sign-in-text a:hover {
    color: var(--accent);
}

/* Checkout Footer / Fake Captcha */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.fake-captcha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    flex: 1;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.captcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.captcha-check {
    width: 26px;
    height: 26px;
    background: #00e66e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 230, 110, 0.4);
}

.captcha-check svg {
    width: 16px;
    height: 16px;
}

.continue-btn {
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    background: var(--accent-dim) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 20px var(--accent-glow) !important;
}

.continue-btn:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 10px 30px var(--accent-strong-glow) !important;
    transform: translateY(-2px);
}
