/* ============================================
   BabyGen AI - Modern Light Theme
   Clean, Elegant, Mobile-First
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
    --bg-page: #F5EFF2;
    --bg-card: #ffffff;
    --bg-card-hover: #fefefe;
    --bg-subtle: rgba(139, 92, 246, 0.04);
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    --gradient-green: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #a855f7 30%, #ec4899 60%, #f43f5e 100%);
    --text-primary: #1a1025;
    --text-secondary: #5c5270;
    --text-muted: #9490a3;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-pink: #ec4899;
    --whatsapp: #22c55e;
    --border: rgba(0, 0, 0, 0.07);
    --border-card: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-purple: 0 4px 20px rgba(124, 58, 237, 0.15);
    --shadow-green: 0 4px 20px rgba(34, 197, 94, 0.15);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Soft Mesh Background */
.mesh-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(at 20% 20%, rgba(124, 58, 237, 0.07) 0%, transparent 50%),
        radial-gradient(at 80% 10%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(at 10% 60%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
        radial-gradient(at 90% 70%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    z-index: -2;
}

/* Soft Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.25;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.18);
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.12);
    top: 45%;
    right: -15%;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.14);
    bottom: -10%;
    left: 15%;
    animation-delay: -16s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Container */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar-logo {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-purple);
}

.navbar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.navbar-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============================================
   HEADER / HERO
   ============================================ */
.header {
    text-align: center;
    padding: 10px 0 16px;
}

/* 3D Model Viewer Container */
.hero-3d {
    width: 100%;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

.hero-3d iframe,
.hero-3d canvas {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

/* Fallback animated DNA helix */
.hero-3d-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dna-helix-3d {
    perspective: 800px;
    width: 120px;
    height: 180px;
    position: relative;
}

.dna-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateDNA 6s linear infinite;
    transform-style: preserve-3d;
}

.dna-pair {
    position: absolute;
    width: 100%;
    height: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dna-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.dna-node-left { color: #7c3aed; background: #7c3aed; }
.dna-node-right { color: #ec4899; background: #ec4899; }

.dna-bridge {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    margin: 0 2px;
    opacity: 0.4;
}

@keyframes rotateDNA {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

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

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

/* Live Counter */
.live-counter {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    text-align: center;
    margin: 14px 0 20px;
    font-size: 0.82rem;
    color: #db2777;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.live-counter .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #ec4899;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.4);
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.6;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Label */
.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

.section-label .label-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.upload-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-box {
    flex: 1;
    position: relative;
    border: 2px dashed rgba(124, 58, 237, 0.2);
    border-radius: var(--radius);
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.02);
}

.upload-box:hover {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.08);
}

.upload-box.active {
    border-color: var(--whatsapp);
    border-style: solid;
    background: rgba(34, 197, 94, 0.03);
    box-shadow: var(--shadow-green);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.upload-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.upload-sublabel {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    z-index: 1;
    display: none;
}

.upload-box.active .upload-preview {
    display: block;
}

.upload-box.active .upload-icon,
.upload-box.active .upload-label,
.upload-box.active .upload-sublabel {
    display: none;
}

/* Checkmark overlay */
.upload-box.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: var(--shadow-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* ============================================
   GENERATE BUTTON
   ============================================ */
.btn-generate {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-purple);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.btn-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ============================================
   PROGRESS SECTION
   ============================================ */
.progress-section {
    display: none;
    margin-top: 24px;
}

.progress-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar-wrapper {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.progress-status {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
    min-height: 28px;
}

.progress-percent {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* DNA Loader */
.dna-loader {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.dna-loader span {
    display: block;
    width: 5px;
    height: 28px;
    border-radius: 3px;
    animation: dnaWave 1.2s ease-in-out infinite;
}

.dna-loader span:nth-child(1) { background: #7c3aed; animation-delay: 0s; }
.dna-loader span:nth-child(2) { background: #8b5cf6; animation-delay: 0.1s; }
.dna-loader span:nth-child(3) { background: #a855f7; animation-delay: 0.2s; }
.dna-loader span:nth-child(4) { background: #c084fc; animation-delay: 0.3s; }
.dna-loader span:nth-child(5) { background: #d946ef; animation-delay: 0.4s; }
.dna-loader span:nth-child(6) { background: #ec4899; animation-delay: 0.5s; }
.dna-loader span:nth-child(7) { background: #f472b6; animation-delay: 0.6s; }

@keyframes dnaWave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

/* ============================================
   RESULT PAGE STYLES
   ============================================ */

.result-card {
    text-align: center;
    padding: 28px 20px;
}

.result-image-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12), 0 0 0 6px rgba(124, 58, 237, 0.04);
    animation: resultGlow 4s ease-in-out infinite alternate;
}

@keyframes resultGlow {
    0% { box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12), 0 0 0 6px rgba(124, 58, 237, 0.04); }
    100% { box-shadow: 0 8px 50px rgba(124, 58, 237, 0.18), 0 0 0 8px rgba(124, 58, 237, 0.06); }
}

/* Animated ring around result image */
.result-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #7c3aed, #a855f7, #d946ef, #ec4899, #f43f5e, #ec4899, #d946ef, #a855f7, #7c3aed);
    z-index: -1;
    animation: ringRotate 4s linear infinite;
    opacity: 0.4;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s ease;
}

.result-image.blurred {
    filter: blur(20px) brightness(0.7) saturate(0.5);
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Lock Overlay */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 16, 37, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: opacity 0.6s ease;
}

.lock-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.lock-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Result Stats */
.result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(124, 58, 237, 0.03);
    transform: translateX(3px);
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-whatsapp {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-green);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: var(--shadow-green);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Unlocked State */
.result-unlocked .result-image {
    filter: none !important;
}

.result-unlocked .lock-overlay {
    opacity: 0;
    pointer-events: none;
}

.result-unlocked .watermark {
    display: none;
}

.result-unlocked .result-image-wrapper {
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 8px 40px rgba(34, 197, 94, 0.15), 0 0 0 6px rgba(34, 197, 94, 0.05);
}

/* ============================================
   5-GROUP SHARE SYSTEM
   ============================================ */
.share-instruction {
    text-align: center;
    margin-bottom: 20px;
    padding: 18px;
    background: rgba(236, 72, 153, 0.04);
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: var(--radius);
}

.share-lock-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    animation: shake 2.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-8deg); }
    20% { transform: rotate(8deg); }
    30% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    50%, 100% { transform: rotate(0deg); }
}

.share-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.share-subtext {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* WhatsApp Button Pulse */
.btn-whatsapp-pulse {
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: var(--shadow-green); }
    50% { box-shadow: var(--shadow-green), 0 0 0 10px rgba(34, 197, 94, 0); }
}

.share-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Success Badge */
.unlocked-badge {
    display: none;
    background: var(--gradient-green);
    color: white;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
    box-shadow: var(--shadow-green);
}

.result-unlocked .unlocked-badge {
    display: inline-block;
    animation: popIn 0.5s ease;
}

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

/* ============================================
   SHARED COMPONENTS
   ============================================ */

/* Feature Pills */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-pill:hover {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--accent);
    transform: translateY(-1px);
}

/* How It Works */
.how-it-works-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-primary);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(124, 58, 237, 0.03);
    transform: translateX(4px);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-purple);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: rgba(22, 163, 74, 0.95);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle 22s linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(124, 58, 237, 0.12);
}

.particle:nth-child(even) {
    background: rgba(236, 72, 153, 0.1);
}

.particle:nth-child(3n) {
    background: rgba(168, 85, 247, 0.08);
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 480px) {
    .container { padding: 20px; }
    .header h1 { font-size: 2.3rem; }
    .hero-3d { height: 240px; }
    .result-image-wrapper { width: 290px; height: 290px; }
}

@media (min-width: 768px) {
    .container { padding: 28px; }
    .result-image-wrapper { width: 340px; height: 340px; }
    .hero-3d { height: 280px; }
}

@media (max-height: 600px) {
    .header { padding: 6px 0 10px; }
    .hero-3d { height: 160px; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
