/* ═══════════════════════════════════════════════════
   TacOps Landing Page - style.css
   Dark military-tech aesthetic, production version
   ═══════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --bg: #0a0a0b;
    --bg-subtle: #0d0d0d;
    --surface: #141416;
    --surface-elevated: #1c1c1f;
    --surface-glass: rgba(28, 28, 31, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --blue: #3b82f6;
    --blue-bright: #60a5fa;
    --blue-glow: rgba(59, 130, 246, 0.4);
    --blue-dim: rgba(59, 130, 246, 0.15);

    --text-primary: #fafafa;
    --text-secondary: #8a8a8d;
    --text-muted: #5a5a5d;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

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

    --max-width: 1100px;
}

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

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

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

/* ─── Canvas Background ─── */
#grid-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

/* ─── Scan Lines ─── */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ─── Page Transition ─── */
body {
    transition: opacity 0.25s ease-out;
}

body.page-exit {
    opacity: 0;
}

/* ─── Main Layout ─── */
main {
    position: relative;
    z-index: 2;
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────
   NAVBAR
   ───────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0) 100%);
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar-logo img {
    filter: drop-shadow(0 0 10px var(--blue-glow));
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--blue);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 0 16px var(--blue-glow);
}

.nav-cta:hover {
    background: #4b92ff;
    transform: translateY(-1px);
    box-shadow: 0 0 24px var(--blue-glow);
}

.nav-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.nav-cta:hover svg {
    transform: translate(2px, -2px);
}

.navbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.navbar-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-social {
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
}

.nav-social:hover {
    color: var(--blue-bright);
    transform: scale(1.1) translateY(-1px);
    filter: drop-shadow(0 0 8px var(--blue-glow));
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
}

.navbar-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─────────────────────────────
   HERO
   ───────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.hero-content {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 0.5rem;
}

.logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--blue-glow));
    animation: logo-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.logo-glow {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    animation: glow-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 0.15s;
    z-index: 0;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px var(--blue-glow));
    }

    8% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 40px var(--blue-glow));
    }

    18% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px var(--blue-glow));
    }

    30% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 45px var(--blue-glow));
    }

    48%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px var(--blue-glow));
    }
}

@keyframes glow-pulse {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }

    8% {
        opacity: 0.35;
        transform: scale(1.05);
    }

    18% {
        opacity: 0.2;
        transform: scale(1);
    }

    30% {
        opacity: 0.45;
        transform: scale(1.08);
    }

    48%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--blue-dim);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--blue-bright);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px transparent;
    }
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-blue {
    color: var(--blue);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

/* Hero Metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-metric {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-metric-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--blue-bright);
    font-size: 1.1rem;
}

.hero-metric-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.hero-metric-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .hero-metrics {
        gap: 0.75rem;
        padding: 10px 20px;
    }

    .hero-metric-value {
        font-size: 1rem;
    }

    .hero-metric-label {
        font-size: 0.8rem;
    }
}

/* Hero actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    box-shadow:
        0 0 20px var(--blue-glow),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: #4b92ff;
    transform: translateY(-2px);
    box-shadow:
        0 0 40px var(--blue-glow),
        0 8px 24px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button svg {
    transition: transform 0.3s var(--ease-out);
}

.cta-button:hover svg {
    transform: translateX(3px);
}

.secondary-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.secondary-link:hover {
    color: var(--blue-bright);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    color: var(--blue-bright);
}

@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ─────────────────────────────
   FEATURES
   ───────────────────────────── */
.features {
    padding: 4rem 2rem 6rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-content {
    padding: 2rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

.feature-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
    pointer-events: none;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay so text stays readable over the image */
.feature-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 11, 0.92) 0%,
        rgba(10, 10, 11, 0.75) 50%,
        rgba(10, 10, 11, 0.55) 100%
    );
    z-index: 1;
}

/* Subtle blue gradient on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: 2;
}

/* Desktop: hover effects */
@media (hover: hover) {
    .feature-card:hover {
        border-color: var(--blue-bright);
        transform: translateY(-4px);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 24px var(--blue-glow);
    }

    .feature-card:hover::before {
        opacity: 1;
    }

    .feature-card:hover .feature-preview {
        opacity: 1;
    }

    .feature-card:hover .feature-icon {
        transform: scale(1.1);
        color: var(--blue-bright);
        filter: drop-shadow(0 0 12px var(--blue-glow));
    }
}

/* Mobile: accordion - effects only when expanded */
@media (hover: none) {
    .feature-card.expanded {
        border-color: var(--blue-bright);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 24px var(--blue-glow);
    }

    .feature-card.expanded::before {
        opacity: 1;
    }

    .feature-card.expanded .feature-preview {
        opacity: 1;
    }

    .feature-card.expanded .feature-icon {
        color: var(--blue-bright);
        filter: drop-shadow(0 0 12px var(--blue-glow));
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--blue-dim);
    color: var(--blue-bright);
    margin-bottom: 1.25rem;
    transition: all 0.4s var(--ease-spring);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Staggered reveal */
.feature-card:nth-child(1) {
    transition-delay: 0s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.08s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.16s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.24s;
}

.feature-card:nth-child(5) {
    transition-delay: 0.08s;
}

.feature-card:nth-child(6) {
    transition-delay: 0.16s;
}

.feature-card:nth-child(7) {
    transition-delay: 0.24s;
}

.feature-card:nth-child(8) {
    transition-delay: 0.32s;
}

.feature-card:nth-child(9) {
    transition-delay: 0s;
}

.feature-card:nth-child(10) {
    transition-delay: 0.08s;
}

.feature-card:nth-child(11) {
    transition-delay: 0.16s;
}

/* ─────────────────────────────
   HOW IT WORKS
   ───────────────────────────── */
.how-it-works {
    padding: 4rem 2rem 6rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.how-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.how-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.how-step {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.how-step:hover {
    border-color: var(--blue-bright);
    transform: translateY(-4px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px var(--blue-glow);
}

.how-step:hover .how-icon {
    transform: scale(1.1);
    color: #93c5fd;
}

.how-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 0 12px var(--blue-glow);
}

.how-icon {
    color: var(--blue-bright);
    transition: all 0.4s var(--ease-spring);
}

.how-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.how-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-connector {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ─────────────────────────────
   MEMBERSHIP / LOGIN TIERS
   ───────────────────────────── */
.membership {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.membership-header {
    text-align: center;
    margin-bottom: 4rem;
}

.membership-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.membership-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.membership-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: all 0.4s var(--ease-out);
}

.membership-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.membership-card--featured {
    border-color: var(--blue-dim);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(20, 20, 22, 0.6) 100%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
}

.membership-card--featured:hover {
    border-color: var(--blue-bright);
    box-shadow: 0 0 48px rgba(59, 130, 246, 0.2);
}

.membership-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 4px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.membership-card--featured .membership-badge {
    background: var(--blue);
    color: white;
    border: none;
    box-shadow: 0 0 12px var(--blue-glow);
}

.membership-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.membership-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.membership-free-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.membership-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.25rem 0;
}

.membership-feature--disabled {
    opacity: 0.45;
}

.membership-feature--disabled span {
    color: var(--text-muted);
}

.membership-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-grow: 1;
}

.membership-features li {
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: 16px 145px 1fr;
    align-items: baseline;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.membership-features li strong {
    font-weight: 600;
}

.membership-features li span {
    color: var(--blue-bright);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.membership-features li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.membership-button {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
}

.membership-button:hover {
    background: var(--surface-glass);
    border-color: var(--text-secondary);
}

.membership-button--primary {
    background: var(--blue);
    border: none;
    color: white;
    box-shadow: 0 0 16px var(--blue-glow);
}

.membership-button--primary:hover {
    background: #4b92ff;
    transform: scale(1.02);
    box-shadow: 0 0 24px var(--blue-glow);
}

/* ─────────────────────────────
   SHOWCASE
   ───────────────────────────── */
.showcase {
    padding: 2rem 2rem 6rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.showcase-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.showcase-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.showcase-card {
    display: flex;
    flex-direction: column;
}

.showcase-card--hero {
    grid-column: 1 / -1;
}

.showcase-window {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.showcase-card:hover .showcase-window {
    border-color: var(--blue-bright);
    transform: translateY(-4px);
    box-shadow:
        0 0 40px rgba(59, 130, 246, 0.15),
        0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Browser-style address bar */
.showcase-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
}

.showcase-lock {
    color: var(--text-muted);
    opacity: 0.5;
    flex-shrink: 0;
}

.showcase-url {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.02em;
}

/* Frames */
.showcase-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-subtle);
    position: relative;
}

.showcase-frame--portrait {
    aspect-ratio: 2 / 3;
}

.showcase-card--hero .showcase-frame {
    aspect-ratio: 16 / 9;
}

/* Placeholder content (replace with <img> later) */
.showcase-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%),
        linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    color: var(--text-muted);
    position: relative;
}

.showcase-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.placeholder-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.placeholder-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* Showcase bottom row */
.showcase-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.showcase-bottom .showcase-frame {
    aspect-ratio: 4 / 3;
}

/* Staggered reveal */
.showcase-card:nth-child(1) {
    transition-delay: 0s;
}

.showcase-card:nth-child(2) {
    transition-delay: 0.1s;
}

.showcase-card:nth-child(3) {
    transition-delay: 0.2s;
}

.showcase-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* ─────────────────────────────
   COMMUNITY
   ───────────────────────────── */
/* Navbar CTA */
.navbar-cta {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease-out);
    box-shadow:
        0 2px 12px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.15);
}

.community {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.community-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.community-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--blue-dim);
    color: var(--blue-bright);
    margin-bottom: 0.5rem;
}

.community h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.community p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 440px;
}

.community-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.community-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}

.community-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.community-button--secondary {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    box-shadow: none;
}

.community-button--secondary:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ─────────────────────────────
   BOTTOM CTA
   ───────────────────────────── */
.bottom-cta {
    padding: 6rem 2rem;
    position: relative;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bottom-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bottom-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bottom-cta-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────
   FOOTER
   ───────────────────────────── */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.footer-brand img {
    filter: drop-shadow(0 0 8px var(--blue-glow));
}

.footer-divider {
    color: var(--text-muted);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--blue-bright);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social {
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-social:hover {
    color: var(--blue-bright);
    transform: scale(1.1) translateY(-2px);
}

/* ─────────────────────────────
   RESPONSIVE
   ───────────────────────────── */
@media (max-width: 768px) {
    /* Navbar mobile */
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 2rem 1.5rem;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: center;
    }

    .navbar-links .nav-cta {
        margin-top: 0.75rem;
        justify-content: center;
        width: 100%;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Hero */
    .hero-content {
        gap: 1.5rem;
    }

    .logo-container {
        width: 120px;
        height: 120px;
    }

    /* Stats */
    .stats-grid {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    /* Features - accordion layout */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .feature-card {
        cursor: pointer;
        padding: 0;
        border-radius: var(--radius-md);
    }

    .feature-content {
        padding: 0.625rem 0.75rem;
        display: grid;
        grid-template-columns: 28px 1fr 12px;
        align-items: center;
        gap: 0.5rem;
    }

    /* Chevron */
    .feature-content::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-secondary);
        border-bottom: 2px solid var(--text-secondary);
        transform: rotate(45deg);
        transition: transform 0.3s var(--ease-out);
        grid-row: 1;
        grid-column: 3;
    }

    .feature-card.expanded .feature-content::after {
        transform: rotate(-135deg);
        border-color: var(--blue-bright);
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 0;
        padding: 4px;
        border-radius: 6px;
    }

    .feature-icon svg {
        width: 18px;
        height: 18px;
    }

    .feature-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0;
    }

    .feature-card p {
        grid-column: 1 / -1;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        padding: 0;
        font-size: 0.8rem;
        line-height: 1.5;
        transition:
            max-height 0.35s var(--ease-out),
            opacity 0.25s var(--ease-out),
            padding 0.35s var(--ease-out);
    }

    .feature-card.expanded p {
        max-height: 200px;
        opacity: 1;
        padding-top: 0.375rem;
        padding-bottom: 0.125rem;
    }

    .feature-preview {
        opacity: 0;
        transition: opacity 0.4s var(--ease-out);
    }

    .feature-card.expanded .feature-preview {
        opacity: 1;
    }

    /* How it works - compact */
    .how-it-works {
        padding: 2rem 1rem 3rem;
    }

    .how-header {
        margin-bottom: 1.5rem;
    }

    .how-grid {
        flex-direction: column;
        gap: 0.5rem;
    }

    .how-step {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        text-align: left;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }

    .how-step:hover {
        border-color: var(--border);
        transform: none;
        box-shadow: none;
    }

    .how-number {
        position: static;
        transform: none;
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .how-icon {
        display: none;
    }

    .how-step h3 {
        font-size: 0.95rem;
        flex: 1;
    }

    .how-step p {
        font-size: 0.8rem;
        line-height: 1.4;
        width: 100%;
    }

    .how-connector {
        display: none;
    }

    /* Showcase */
    .showcase-grid {
        grid-template-columns: 1fr;
    }

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

    /* Footer */
    /* Navbar CTA - reorder on mobile */
    .navbar-cta {
        order: 1;
    }

    .navbar-content {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .navbar-logo {
        order: 0;
    }

    .navbar-links {
        order: 3;
    }

    .navbar-toggle {
        order: 4;
        margin-left: auto;
    }

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

    /* Membership - compact */
    .membership {
        padding: 2rem 1rem 3rem;
    }

    .membership-header {
        margin-bottom: 1.5rem;
    }

    .membership-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .membership-header p {
        font-size: 0.85rem;
    }

    .membership-free-badge {
        font-size: 0.75rem;
        padding: 4px 14px;
    }

    .membership-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .membership-card {
        padding: 1.25rem 1rem;
        gap: 0.5rem;
        border-radius: var(--radius-md);
    }

    .membership-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .membership-card h3 {
        font-size: 1.1rem;
        margin-top: 0;
    }

    .membership-price {
        font-size: 1.25rem;
        margin: 0;
    }

    .membership-desc {
        font-size: 0.8rem;
    }

    .membership-features {
        gap: 0.375rem;
        margin: 0.25rem 0;
    }

    .membership-features li {
        font-size: 0.8rem;
        display: grid;
        grid-template-columns: 14px 110px 1fr;
        gap: 6px;
    }

    .membership-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .membership-card--featured {
        order: -1;
    }

    /* Community - compact */
    .community {
        padding: 1.5rem 1rem 2rem;
    }

    .community-content {
        gap: 0.5rem;
    }

    .community-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
    }

    .community-icon svg {
        width: 20px;
        height: 20px;
    }

    .community h2 {
        font-size: 1.25rem;
    }

    .community p {
        font-size: 0.8rem;
    }

    .community-links {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .community-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Bottom CTA - compact */
    .bottom-cta {
        padding: 1.5rem 1rem;
    }

    .bottom-cta-content {
        gap: 0.5rem;
    }

    .bottom-cta-content h2,
    .bottom-cta-content p {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

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

@media (min-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .showcase-card--hero {
        grid-column: 1 / -1;
    }
}
