/* ==========================================
   INVOKARD — Landing Page Styles
   Design: Dark Premium Tech-Noir Aesthetic
   ========================================== */

/* === CSS Custom Properties === */
:root {
    --bg-primary: #06060f;
    --bg-secondary: #0c0c1d;
    --bg-card: #111128;
    --bg-card-hover: #16163a;
    --surface: #1a1a3e;
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.35);

    --text-primary: #f0eef6;
    --text-secondary: #9794b0;
    --text-muted: #5e5b78;

    --accent-violet: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-coral: #f97370;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-cyan: #22d3ee;

    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #6366f1 30%, #ec4899 70%, #f97370 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f97316 100%);
    --gradient-card-bg: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    --glow-violet: 0 0 60px rgba(139, 92, 246, 0.25);
    --glow-coral: 0 0 60px rgba(249, 115, 112, 0.25);

    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* === Particle Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(6, 6, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-main);
    padding: 8px 20px !important;
    border-radius: 100px;
    color: white !important;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.06);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    gap: 40px;
    overflow: hidden;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.hero-content {
    max-width: 580px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-violet);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle-line {
    font-size: 0.7em;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* === Hero Cards (Floating Fan) === */
.hero-cards {
    position: relative;
    width: 480px;
    height: 560px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.4s both;
    flex-shrink: 0;
}

.floating-card {
    position: absolute;
    width: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease,
                z-index 0s;
    will-change: transform;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7));
}

.floating-card img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    /* Remove white/light background by blending with dark parent */
    mix-blend-mode: lighten;
}

.card-back {
    top: 50px;
    left: -20px;
    transform: rotate(-14deg);
    z-index: 1;
    animation: floatCard 6s ease-in-out infinite;
}

.card-center {
    top: 0;
    left: 80px;
    z-index: 3;
    filter: drop-shadow(0 20px 50px rgba(139, 92, 246, 0.35));
    animation: floatCard 6s ease-in-out 1s infinite;
}

.card-front {
    top: 70px;
    right: -30px;
    transform: rotate(12deg);
    z-index: 2;
    animation: floatCard 6s ease-in-out 2s infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(var(--card-rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--card-rot, 0deg)); }
}

.card-back  { --card-rot: -14deg; }
.card-front { --card-rot: 12deg; }
.card-center { --card-rot: 0deg; }

.floating-card:hover {
    transform: rotate(0deg) scale(1.12) translateY(-16px) !important;
    z-index: 10;
    filter: drop-shadow(0 30px 60px rgba(139, 92, 246, 0.5));
}

/* === Compat Bar === */
.compat-bar {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(139, 92, 246, 0.02);
}

.compat-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.compat-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.compat-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: var(--transition-fast);
}

.compat-logo:hover {
    opacity: 1;
    color: var(--accent-violet);
}

/* === Section Common === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-violet);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-desc strong {
    color: var(--text-primary);
}

/* === How It Works === */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Connector line at icon height — cards' solid bg hides it, so it only
   shows in the gaps, reading as a 1→2→3→4 thread */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 64px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-violet), var(--accent-pink, #ec4899), transparent);
    opacity: 0.35;
    z-index: 0;
}

.step-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.12));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.step-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-violet);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.step-card:hover .step-icon {
    transform: scale(1.08);
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

/* === Cards Showcase === */
.cards-showcase {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg-secondary);
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-card-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 280px;
}

.card-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    z-index: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.card-glow-blue { background: radial-gradient(circle, var(--accent-indigo), transparent 70%); }
.card-glow-coral { background: radial-gradient(circle, var(--accent-coral), transparent 70%); }
.card-glow-green { background: radial-gradient(circle, var(--accent-green), transparent 70%); }

.showcase-card-wrapper:hover .card-glow {
    opacity: 0.5;
    transform: scale(1.1);
}

.showcase-card-img {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Exact card size 63mm x 88mm ratio */
    aspect-ratio: 63 / 88;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);

}

.showcase-card-wrapper:hover .showcase-card-img {
    transform: scale(1.03) rotate(-1deg);
}

.showcase-info {
    flex: 1;
}

.showcase-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.badge-marketing {
    background: rgba(249, 115, 112, 0.15);
    color: var(--accent-coral);
}

.badge-dev {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
}

.badge-creator {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.card-glow-gold {
    background: radial-gradient(circle, var(--accent-gold), transparent 70%);
}

.card-glow-pink {
    background: radial-gradient(circle, var(--accent-coral), transparent 70%);
}

.card-glow-cyan {
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.badge-data {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.badge-strategy {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
}

.badge-zero {
    background: rgba(200, 200, 220, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(200, 200, 220, 0.3);
    text-shadow: 0 0 8px rgba(200, 200, 220, 0.4);
}

.card-glow-silver {
    background: radial-gradient(circle, rgba(200, 200, 220, 0.8), transparent 70%);
}

.power-fill-silver {
    background: linear-gradient(90deg, #94a3b8, #e2e8f0, #94a3b8);
}

.power-fill-cyan {
    background: linear-gradient(90deg, var(--accent-cyan), #0ea5e9);
}

.power-fill-gold {
    background: linear-gradient(90deg, var(--accent-gold), #f97316);
}

/* ─── NEXUS DECK STYLES ─── */
.badge-nexus {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(168, 85, 247, 0.2));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    animation: nexus-shimmer 3s ease-in-out infinite;
}

@keyframes nexus-shimmer {
    0%, 100% { border-color: rgba(245, 158, 11, 0.4); text-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
    50% { border-color: rgba(168, 85, 247, 0.5); text-shadow: 0 0 12px rgba(168, 85, 247, 0.5); }
}

.card-glow-holographic {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.6), rgba(168, 85, 247, 0.3), transparent 70%);
    animation: holo-glow 4s ease-in-out infinite;
}

@keyframes holo-glow {
    0%, 100% { background: radial-gradient(circle, rgba(245, 158, 11, 0.6), rgba(168, 85, 247, 0.3), transparent 70%); }
    33% { background: radial-gradient(circle, rgba(168, 85, 247, 0.6), rgba(34, 211, 238, 0.3), transparent 70%); }
    66% { background: radial-gradient(circle, rgba(34, 211, 238, 0.6), rgba(245, 158, 11, 0.3), transparent 70%); }
}

.power-fill-holographic {
    background: linear-gradient(90deg, #f59e0b, #a855f7, #22d3ee, #f59e0b);
    background-size: 300% 100%;
    animation: holo-power 3s linear infinite;
}

@keyframes holo-power {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ─── CORE DECK STYLES ─── */
.badge-core {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.15));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
    animation: core-pulse 2.5s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); border-color: rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.9); }
}

.card-glow-amber {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.9), rgba(251, 191, 36, 0.4), transparent 70%);
    animation: amber-glow 3s ease-in-out infinite;
}

@keyframes amber-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.6; }
}

.showcase-card-wrapper:hover .card-glow-amber {
    opacity: 0.8 !important;
    animation: none;
}

.power-fill-amber {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f97316, #fbbf24);
    background-size: 200% 100%;
    animation: amber-power 2s linear infinite;
}

@keyframes amber-power {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* CORE DECK tab special style */
.tab-btn-core.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.tab-btn-core:hover {
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

/* ─── ACADEMY DECK STYLES (emerald + brass — "Códice del Erudito") ─── */
.badge-academy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(180, 134, 11, 0.22));
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    animation: academy-shimmer 3s ease-in-out infinite;
}

@keyframes academy-shimmer {
    0%, 100% { border-color: rgba(16, 185, 129, 0.4); text-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
    50% { border-color: rgba(212, 162, 78, 0.55); text-shadow: 0 0 12px rgba(212, 162, 78, 0.55); }
}

.card-glow-emerald {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.7), rgba(180, 134, 11, 0.35), transparent 70%);
    animation: emerald-glow 3.5s ease-in-out infinite;
}

@keyframes emerald-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.55; }
}

.showcase-card-wrapper:hover .card-glow-emerald {
    opacity: 0.85 !important;
    animation: none;
}

.power-fill-emerald {
    background: linear-gradient(90deg, #10b981, #34d399, #d4a24e, #10b981);
    background-size: 300% 100%;
    animation: emerald-power 3s linear infinite;
}

@keyframes emerald-power {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.tab-btn-academy.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.tab-btn-academy:hover {
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

/* ─── LIFE DECK STYLES (terracotta + sage — "Hogar Iluminado") ─── */
.badge-life {
    background: linear-gradient(135deg, rgba(226, 114, 91, 0.22), rgba(134, 167, 137, 0.2));
    color: #f0895f;
    border: 1px solid rgba(226, 114, 91, 0.4);
    text-shadow: 0 0 12px rgba(226, 114, 91, 0.5);
    animation: life-shimmer 3s ease-in-out infinite;
}

@keyframes life-shimmer {
    0%, 100% { border-color: rgba(226, 114, 91, 0.4); text-shadow: 0 0 12px rgba(226, 114, 91, 0.5); }
    50% { border-color: rgba(134, 167, 137, 0.55); text-shadow: 0 0 12px rgba(134, 167, 137, 0.55); }
}

.card-glow-terracotta {
    background: radial-gradient(circle, rgba(226, 114, 91, 0.7), rgba(134, 167, 137, 0.35), transparent 70%);
    animation: terracotta-glow 3.5s ease-in-out infinite;
}

@keyframes terracotta-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.55; }
}

.showcase-card-wrapper:hover .card-glow-terracotta {
    opacity: 0.85 !important;
    animation: none;
}

.power-fill-terracotta {
    background: linear-gradient(90deg, #e2725b, #f0895f, #86a789, #e2725b);
    background-size: 300% 100%;
    animation: terracotta-power 3s linear infinite;
}

@keyframes terracotta-power {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.tab-btn-life.active {
    background: rgba(226, 114, 91, 0.12);
    border-color: #e2725b;
    color: #f0895f;
    box-shadow: 0 0 20px rgba(226, 114, 91, 0.3);
}

.tab-btn-life:hover {
    border-color: rgba(226, 114, 91, 0.5);
    color: #f0895f;
}

/* Core Deck "included free" note */
.core-deck-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #fbbf24;
    line-height: 1.4;
}

.core-deck-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

/* ZERO DECK pricing card */
.deck-zero-card {
    border-color: rgba(200, 200, 220, 0.25);
    background: linear-gradient(135deg, rgba(200, 200, 220, 0.04), var(--bg-card));
}

.deck-zero-card:hover {
    border-color: rgba(200, 200, 220, 0.5);
    box-shadow: 0 0 30px rgba(200, 200, 220, 0.15);
}

.deck-free-badge {
    background: linear-gradient(90deg, #94a3b8, #e2e8f0, #94a3b8) !important;
    color: #0f172a !important;
}

/* NEXUS DECK pricing card */
.deck-nexus-card {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(168, 85, 247, 0.04), var(--bg-card));
}

.deck-nexus-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.deck-essential-badge {
    background: linear-gradient(90deg, #f59e0b, #a855f7) !important;
}

.deck-zero-card .deck-icon,
.deck-nexus-card .deck-icon {
    margin-top: 20px;
}

.showcase-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.showcase-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.skill-tags span {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.power-meter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.power-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 90px;
}

.power-bar {
    flex: 1;
    height: 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.power-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.power-fill-coral {
    background: linear-gradient(90deg, var(--accent-coral), #ec4899);
}

.power-fill-green {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
}

/* === Decks Section === */
.decks-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

/* Flex (not grid) so 7 cards balance as 4 + 3 centered */
.decks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.deck-card {
    position: relative;
    width: calc(25% - 18px);
    padding: 40px 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.deck-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--glow-violet);
}

.deck-featured {
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--gradient-card-bg), var(--bg-card);
}

.deck-popular {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: var(--gradient-main);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.deck-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.deck-featured .deck-icon {
    margin-top: 20px;
}

/* Fanned real card art — sells "collectible deck" better than an emoji */
.deck-fan {
    position: relative;
    height: 96px;
    margin-bottom: 18px;
}

.deck-fan img {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.deck-fan img:nth-child(1) { transform: translateX(-88%) rotate(-12deg); z-index: 1; }
.deck-fan img:nth-child(2) { transform: translateX(-50%) translateY(-6px); z-index: 3; }
.deck-fan img:nth-child(3) { transform: translateX(-12%) rotate(12deg); z-index: 2; }

.deck-card:hover .deck-fan img:nth-child(1) { transform: translateX(-105%) rotate(-17deg); }
.deck-card:hover .deck-fan img:nth-child(2) { transform: translateX(-50%) translateY(-12px); }
.deck-card:hover .deck-fan img:nth-child(3) { transform: translateX(5%) rotate(17deg); }

.deck-popular ~ .deck-fan {
    margin-top: 18px;
}

/* Card-name chips (built by __chipify after each i18n pass) */
.deck-chip {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px 2px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 100px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Live CTA to the waitlist (replaces the dead COMING SOON pill) */
.deck-cta {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: var(--gradient-main);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.deck-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.deck-note {
    display: block;
    margin-top: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.deck-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-violet);
    margin-bottom: 16px;
}

.deck-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.deck-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.deck-cards-list {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.3px;
}

.deck-price {
    margin-top: auto;
    margin-bottom: 16px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.deck-status {
    padding: 10px 24px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: inline-block;
}

/* === Why Section === */
.why-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.why-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 10px;
}

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

/* === Waitlist Section === */
.waitlist-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.waitlist-box {
    position: relative;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.waitlist-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.waitlist-form {
    max-width: 520px;
    margin: 0 auto 32px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-row input::placeholder {
    color: var(--text-muted);
}

.form-row input:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.btn-form {
    white-space: nowrap;
    padding: 14px 24px;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.waitlist-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.waitlist-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waitlist-success p {
    color: var(--text-secondary);
}

.waitlist-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.counter-avatars {
    display: flex;
    margin-right: 4px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

/* === Footer === */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

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

.footer-brand p {
    width: 100%;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-violet);
}

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

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

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cards {
        width: 350px;
        height: 400px;
        margin-top: 20px;
    }

    .floating-card {
        width: 200px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-item,
    .showcase-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .showcase-card-wrapper {
        width: 260px;
    }

    .decks-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    .deck-card {
        width: 100%;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

    .form-row {
        flex-direction: column;
    }

    .hero-cards {
        width: 300px;
        height: 360px;
    }

    .floating-card {
        width: 170px;
    }

    .card-center {
        left: 60px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .deck-card {
        width: 100%;
        max-width: 360px;
    }

    .showcase-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* === Flow Section === */
.flow-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
}

.flow-pipeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    position: relative;
}

.flow-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.flow-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-blue) 25%,
        var(--accent-cyan) 50%,
        var(--accent-coral) 75%,
        transparent 100%
    );
    opacity: 0.25;
    z-index: -1;
    filter: blur(2px);
}

/* Row 2 reads right-to-left so the flow path never breaks (serpentine) */
.flow-row-reverse {
    flex-direction: row-reverse;
}

/* Elbow connector between the two rows */
.flow-turn {
    display: flex;
    justify-content: flex-end;
    padding-right: 64px;
    margin: -2px 0;
}

.flow-turn .flow-arrow {
    transform: rotate(90deg);
}

/* Phase legend (prepare / build / launch) */
.flow-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.flow-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.flow-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-prepare { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
.dot-build { background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }
.dot-launch { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, 0.6); }

/* Phase color on each step's top edge */
.flow-phase-prepare { border-top: 2px solid rgba(167, 139, 250, 0.55); }
.flow-phase-build { border-top: 2px solid rgba(34, 211, 238, 0.55); }
.flow-phase-launch { border-top: 2px solid rgba(251, 113, 133, 0.55); }

/* Step number badge — .flow-step prefix needed to beat `.flow-step > *`
   which resets position to relative */
.flow-step .flow-step-num {
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.75;
    z-index: 2;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 24px;
    background: rgba(20, 20, 25, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    width: 200px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glow Effect */
.flow-step::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.flow-step > * {
    position: relative;
    z-index: 1;
}

/* Hover States per step */
.flow-step-core:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2), inset 0 0 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-8px);
}
.flow-step-zero:hover {
    border-color: rgba(100, 116, 139, 0.4);
    box-shadow: 0 0 30px rgba(100, 116, 139, 0.2), inset 0 0 20px rgba(100, 116, 139, 0.1);
    transform: translateY(-8px);
}
.flow-step-dev:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), inset 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-8px);
}
.flow-step-data:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2), inset 0 0 20px rgba(34, 211, 238, 0.1);
    transform: translateY(-8px);
}
.flow-step-strategy:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2), inset 0 0 20px rgba(251, 191, 36, 0.1);
    transform: translateY(-8px);
}
.flow-step-mkt:hover {
    border-color: rgba(251, 113, 133, 0.4);
    box-shadow: 0 0 30px rgba(251, 113, 133, 0.2), inset 0 0 20px rgba(251, 113, 133, 0.1);
    transform: translateY(-8px);
}
.flow-step-creator:hover {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.2), inset 0 0 20px rgba(52, 211, 153, 0.1);
    transform: translateY(-8px);
}
.flow-step-nexus:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2), inset 0 0 20px rgba(236, 72, 153, 0.1);
    transform: translateY(-8px);
}

.flow-step:hover::before {
    opacity: 1;
}

.flow-step-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.flow-step:hover .flow-step-icon {
    transform: scale(1.1);
}

.flow-step-icon svg {
    width: 30px;
    height: 30px;
}

.flow-icon-core { color: #a78bfa; background: rgba(139, 92, 246, 0.15); box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
.flow-icon-zero { color: #94a3b8; background: rgba(100, 116, 139, 0.15); box-shadow: 0 0 20px rgba(100, 116, 139, 0.2); }
.flow-icon-dev { color: #60a5fa; background: rgba(59, 130, 246, 0.15); box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
.flow-icon-data { color: #22d3ee; background: rgba(34, 211, 238, 0.15); box-shadow: 0 0 20px rgba(34, 211, 238, 0.2); }
.flow-icon-strategy { color: #fbbf24; background: rgba(251, 191, 36, 0.15); box-shadow: 0 0 20px rgba(251, 191, 36, 0.2); }
.flow-icon-mkt { color: #fb7185; background: rgba(251, 113, 133, 0.15); box-shadow: 0 0 20px rgba(251, 113, 133, 0.2); }
.flow-icon-creator { color: #34d399; background: rgba(52, 211, 153, 0.15); box-shadow: 0 0 20px rgba(52, 211, 153, 0.2); }
.flow-icon-nexus { color: #f472b6; background: rgba(236, 72, 153, 0.15); box-shadow: 0 0 20px rgba(236, 72, 153, 0.2); }

.flow-step-label {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

/* Gradient labels for each step */
.flow-step-core .flow-step-label { background: linear-gradient(135deg, #c084fc, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-zero .flow-step-label { background: linear-gradient(135deg, #cbd5e1, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-dev .flow-step-label { background: linear-gradient(135deg, #60a5fa, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-data .flow-step-label { background: linear-gradient(135deg, #67e8f9, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-strategy .flow-step-label { background: linear-gradient(135deg, #fcd34d, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-mkt .flow-step-label { background: linear-gradient(135deg, #fda4af, #fb7185); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-creator .flow-step-label { background: linear-gradient(135deg, #6ee7b7, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step-nexus .flow-step-label { background: linear-gradient(135deg, #f472b6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.flow-step-deck {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    margin: 0 -4px;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Flow mobile — must live AFTER the base rules above so the cascade wins */
@media (max-width: 768px) {
    .flow-row,
    .flow-row-reverse {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .flow-row::before {
        display: none;
    }

    .flow-turn {
        display: none;
    }

    /* Stacked vertically every arrow points down */
    .flow-row .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-row-reverse .flow-arrow {
        transform: rotate(-90deg);
    }

    .flow-step {
        width: 100%;
        max-width: 280px;
    }
}

/* === Stat Infinity === */
.stat-infinity {
    font-size: 3.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* === Responsive: Decks 4 -> 3 -> 2 per row (flex widths) === */
@media (max-width: 1200px) {
    .deck-card {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 900px) {
    .deck-card {
        width: calc(50% - 12px);
    }
}

/* === Language Switcher === */
.lang-switcher {
    display: inline-flex;
    gap: 4px;
    margin-left: 12px;
    align-items: center;
}

.lang-option {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
}

/* === Hover-only Card Glow === */
.card-glow {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.showcase-item:hover .card-glow {
    opacity: 1;
}

/* === Deck Card Alignment Fix === */
.deck-card {
    min-height: 380px;
    justify-content: flex-start;
}

.deck-card p.deck-cards-list {
    flex: 1;
}

.deck-card .deck-price {
    margin-top: auto;
    padding-top: 16px;
}

.deck-card .deck-status {
    margin-top: 0;
}

/* ── Pricing (subscription) ───────────────────────────────────────
   Replaces the per-deck price tags: the decks are now a showcase of
   what the subscription contains, and the money question is answered
   once, here, with two tiers. */
.pricing-wrap {
    margin-top: 90px;
    scroll-margin-top: 90px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 20px);
    padding: 36px 30px;
}

.pricing-featured {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.07));
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: var(--glow-violet);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 14px;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.pricing-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    /* Pushes the CTA to the bottom so both cards align however long the list is. */
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-violet);
}

.pricing-cta {
    display: block;
    text-align: center;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 24px;
    border-radius: var(--radius-sm, 8px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-violet);
}

.pricing-cta-ghost {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
}

.pricing-cta-ghost:hover {
    background: var(--bg-card-hover);
    box-shadow: none;
}

.pricing-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Replaces the old per-deck price + waitlist button. */
.deck-included {
    display: block;
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--accent-violet);
}

@media (max-width: 700px) {
    .pricing-wrap { margin-top: 60px; }
    .pricing-grid { gap: 34px; }
    .pricing-card { padding: 30px 22px; }
}
