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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a2e;
    --border: #2a2a3e;
    --text: #e4e4ed;
    --text-muted: #8888a4;
    --primary: #ff3b3b;
    --primary-glow: rgba(255, 59, 59, 0.3);
    --accent: #ffd700;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Nav ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.announcement {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.announcement-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

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

.btn-large {
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Logos ===== */
.logos-section {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.logos-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.logos-strip a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.logos-strip a:hover {
    color: var(--primary);
}

/* ===== Features ===== */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.feature-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ===== Demo / CAPTCHA ===== */
.demo-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(255, 59, 59, 0.03), transparent);
}

.captcha-container {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}

.captcha-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.captcha-logo {
    font-size: 1.2rem;
}

.captcha-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    padding: 1rem 1.5rem 0;
    gap: 0.75rem;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.mode-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.mode-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 59, 59, 0.08);
}

.mode-icon {
    font-size: 1.1rem;
}

/* Captcha Modes */
.captcha-mode {
    display: none;
    padding: 1.5rem;
}

.captcha-mode.active {
    display: block;
}

.challenge-instruction {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.challenge-phrase {
    padding: 0.75rem;
    background: #e8e0d0;
    border: 1px solid #b8a88a;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 1.25rem;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

#captcha-text-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

#captcha-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

#captcha-input:focus {
    border-color: var(--primary);
}

#captcha-input::placeholder {
    color: var(--text-muted);
}

.input-analysis {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    min-height: 1.2rem;
    font-style: italic;
}

/* Hesitation Meter */
.hesitation-meter {
    margin-bottom: 1.25rem;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.meter-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.meter-hints {
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: 0.4rem;
    min-height: 1rem;
}

/* Verify Button */
.btn-verify {
    width: 100%;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-verify:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-verify:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* ===== 3D Fold Challenge ===== */
.fold-container {
    margin-bottom: 1.25rem;
}

.fold-scene {
    width: 300px;
    height: 380px;
    margin: 0 auto 1.25rem;
    perspective: 1200px;
}

.fold-paper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The paper is split into top and bottom halves */
.paper-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.paper-top-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.paper-top-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateX(180deg);
    background: linear-gradient(135deg, #d4d4d4, #e8e8e8);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

.paper-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    z-index: 1;
}

/* Portrait images - each half shows the correct portion of the full image.
   The image natural aspect fills the 300x380 paper.
   Top half = top 190px of image, bottom half = bottom 190px. */
.portrait-img {
    position: absolute;
    left: 0;
    width: 100%;
    /* The image height should equal the full paper height (380px) so that
       each 50%-height container clips to the correct half. */
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.portrait-img-top {
    top: 0;
}

.portrait-img-bottom {
    /* Shift the image up so the bottom half of the photo is visible */
    top: -190px;
}

/* Fold 1: top folds down */
.paper-top.folded-down {
    transform: rotateX(-180deg);
    z-index: 3;
}

/* Fold 2: right side folds over left - paper narrows to half width */
.fold-paper.folded-left {
    transform: scaleX(0.5) translateX(-50%);
}

.fold-paper.folded-left .paper-top,
.fold-paper.folded-left .paper-bottom {
    box-shadow: 3px 0 15px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.2);
}

/* Vertical crease line on right edge after left fold */
.fold-paper.folded-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: rgba(0,0,0,0.12);
    box-shadow: -3px 0 8px rgba(0,0,0,0.08);
    z-index: 10;
}

/* Fold 3: bottom folds up */
.paper-bottom.folded-up {
    transform: rotateX(180deg);
}

/* Crease line indicators */
.paper-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.15);
    z-index: 5;
}

/* Shadow that appears during fold */
.paper-top.folded-down::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
    z-index: 5;
    backface-visibility: hidden;
}

/* After all folds - compact crumpled paper */
.fold-paper.fully-folded {
    transform: scaleX(0.5) translateX(-50%) scaleY(0.55);
    filter: brightness(0.8) saturate(0.7);
}

.fold-paper.fully-folded .paper-top,
.fold-paper.fully-folded .paper-bottom {
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

/* Fold step buttons */
.fold-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.fold-step-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fold-step-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 59, 59, 0.08);
}

.fold-step-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fold-step-btn.completed {
    border-color: var(--success);
    color: var(--success);
    background: rgba(34, 197, 94, 0.08);
}

.fold-step-btn.completed::after {
    content: ' \2713';
}

.fold-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
    min-height: 1rem;
}

/* Fold Progress */
.fold-progress {
    margin-top: 0.75rem;
}

.fold-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.fold-progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.fold-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ===== Wheel Challenge ===== */
.wheel-prompt {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.wheel-answer {
    color: var(--accent);
    transition: all 0.3s;
}

.wheel-answer.revealed {
    font-size: 1.6rem;
}

.wheel-answer.flagged {
    color: var(--danger);
}

.wheel-container {
    position: relative;
    width: 300px;
    margin: 0 auto 1.25rem;
}

.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: var(--primary);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    line-height: 1;
}

.wheel-outer {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--border);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 59, 59, 0.15), inset 0 0 20px rgba(0,0,0,0.3);
    position: relative;
}

#wheel-canvas {
    display: block;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.btn-spin {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary), #cc2020);
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-spin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-spin.spinning {
    animation: pulse-btn 0.5s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

.wheel-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
    min-height: 1.2rem;
}

/* Wheel confirmation prompt */
.wheel-confirm {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-sm);
    text-align: center;
    animation: confirm-appear 0.3s ease-out;
}

@keyframes confirm-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wheel-confirm.hidden {
    display: none;
}

.wheel-confirm-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--danger);
    margin-bottom: 0.4rem;
}

.wheel-confirm-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.wheel-confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wheel-confirm-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.btn-loyal {
    background: rgba(139, 0, 0, 0.2);
    border-color: rgba(139, 0, 0, 0.5);
    color: #ff6b6b;
    font-size: 0.9rem;
}

.btn-loyal:hover {
    background: rgba(139, 0, 0, 0.35);
    border-color: var(--danger);
}

.btn-defect {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--success);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-defect:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Result */
.captcha-result {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.captcha-result.hidden {
    display: none;
}

.result-content {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.result-content.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.result-content.fail {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.result-subtitle {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.result-cside {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.result-cside a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.result-cside a:hover {
    text-decoration: underline;
}

.result-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Captcha Footer */
.captcha-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    justify-content: center;
}

/* ===== How It Works ===== */
.how-it-works {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.step {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.code-block {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

/* ===== Pricing ===== */
.pricing {
    padding: 6rem 2rem;
    text-align: center;
}

.pricing-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
}

.price-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.price-tier {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.price-card li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.price-card .btn,
.price-card .btn-outline {
    width: 100%;
    justify-content: center;
}

/* ===== Testimonials ===== */
.testimonials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.testimonial-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    font-size: 2rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Serious CTA (c/side) ===== */
.cta-serious {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.06), transparent);
    border-top: 1px solid var(--border);
}

.cta-serious-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-serious-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.cta-serious h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-serious-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-serious-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.cta-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-feature strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cta-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.btn-cside {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: #3b82f6;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    margin-bottom: 1rem;
}

.btn-cside:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}

.cta-serious-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.footer-disclaimer a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}

.copyright a {
    color: #60a5fa;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

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

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Animations ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
    position: fixed;
    top: 0;
    width: 10px;
    height: 10px;
    z-index: 1000;
    pointer-events: none;
}

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

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

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

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

    .fold-scene {
        width: 220px;
        height: 280px;
    }

    .portrait-img {
        height: 280px;
    }

    .portrait-img-bottom {
        top: -140px;
    }

    .fold-buttons {
        flex-direction: column;
        align-items: center;
    }
}
