@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #030305;
    --surface: rgba(10, 10, 12, 0.7);
    --surface-hover: rgba(20, 20, 23, 0.9);
    --border: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(16, 185, 129, 0.3);
    --accent: #10b981; /* Tactical Green */
    --accent-glow: rgba(16, 185, 129, 0.2);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #52525b;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --glass: blur(16px) saturate(180%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    overflow-x: hidden; /* Prevent Safari viewport expansion */
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Mesh Gradient Background */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
.nav {
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: var(--glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.8);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-color: var(--border);
    backdrop-filter: var(--glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-bright);
}

/* Hero Section */
.hero {
    min-height: 100dvh; /* Use Dynamic Viewport Height to account for UI/DevTools */
    display: flex;
    align-items: center; /* Vertically center the container */
    padding: 6rem 0; /* Reduced padding for safety on small screens */
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1;
    letter-spacing: -0.06em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.text-accent {
    color: var(--accent);
    display: inline-block;
    position: relative;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 400;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Lab Frame Visual */
.lab-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 60px 120px rgba(0,0,0,0.6);
    backdrop-filter: var(--glass);
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    overflow: hidden;
}

.data-stream {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-visual {
    overflow: hidden;
    max-width: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-ui-mockup {
    background: #010102;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.ui-header {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}

.ui-stat .label {
    display: block;
    font-size: 0.65rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.ui-stat .value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.ui-stat .value small {
    font-size: 1rem;
    opacity: 0.3;
}

.ui-log {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.log-entry { margin-bottom: 0.5rem; opacity: 0.7; }
.log-entry.success { color: var(--accent); opacity: 1; }

/* Science Grid */
.science {
    padding: 12rem 0;
    background: rgba(10, 10, 12, 0.4);
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.science-card {
    background: var(--surface);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s ease;
    backdrop-filter: var(--glass);
}

.science-card:hover {
    border-color: var(--border-bright);
    background: var(--surface-hover);
    transform: translateY(-12px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.science-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.science-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Pricing Card - Maximalist */
.pricing {
    padding: 12rem 0;
    position: relative;
}

.pricing-card {
    background: linear-gradient(145deg, #0a0a0c 0%, #030305 100%);
    border: 1px solid var(--border-bright);
    border-radius: 24px;
    padding: 5rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(16, 185, 129, 0.05);
}

.pricing-card::after {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, transparent, var(--border-bright), transparent);
    z-index: -1;
    border-radius: 24px;
}

.price {
    font-size: 7rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
    margin: 2rem 0;
    letter-spacing: -0.08em;
}

.price span {
    font-size: 1.5rem;
    color: var(--text-dim);
    letter-spacing: 0;
}

.features {
    list-style: none;
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 1.5rem 3rem;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.features li {
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features li::before {
    content: "→";
    color: var(--accent);
    font-family: var(--font-mono);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .lead { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 1100px) {
    .hero .container { gap: 3rem; }
}

@media (max-width: 968px) {
    .nav .nav-links { display: none; }
    .science-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; max-width: 400px; margin: 3rem auto; }
    .pricing-card { padding: 4rem 2rem; }
    h1 { font-size: clamp(2rem, 10vw, 3.5rem); }
}

@media (max-width: 480px) {
    h1 { 
        font-size: 1.7rem !important;
        letter-spacing: -0.04em; 
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .lead { font-size: 1.1rem; overflow-wrap: break-word; }
}

/* ============================================
   INTERACTIVE DEMO OVERLAY
   ============================================ */

.btn-demo, .btn-demo-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-demo::before, .btn-demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.btn-demo:hover, .btn-demo-hero:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* Demo Overlay */
.demo-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-overlay.active {
    display: flex;
    opacity: 1;
}

.demo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
}

/* Phone Frame */
.demo-phone {
    position: relative;
    width: 380px;
    max-width: 90vw;
    height: 780px;
    max-height: 85vh;
    background: linear-gradient(145deg, #1a1a1f 0%, #0a0a0c 100%);
    border-radius: 50px;
    padding: 12px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.1),
        0 60px 120px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.demo-overlay.active .demo-phone {
    transform: scale(1) translateY(0);
}

.demo-phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.demo-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.demo-phone-home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.demo-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.demo-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Demo Steps */
.demo-step {
    position: absolute;
    inset: 0;
    padding: 60px 24px 40px;
    animation: stepIn 0.4s ease;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.demo-status {
    color: var(--accent);
    font-size: 0.65rem;
}

.demo-status-sm {
    font-size: 0.6rem;
    color: var(--accent);
}

.demo-status-sm.pulse {
    animation: pulse 1.5s infinite;
    color: #f59e0b;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.demo-back {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.demo-content {
    padding-top: 30px;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

/* Welcome Step */
.demo-welcome {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.demo-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.demo-welcome h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.demo-welcome p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.demo-stats-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.demo-stat-mini {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
}

.demo-stat-mini .label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.demo-stat-mini .value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Upload Step */
.demo-upload-zone {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-upload-zone:hover {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.demo-upload-zone p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.demo-recent {
    margin-top: 30px;
}

.recent-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Processing Step */
.demo-processing {
    align-items: center;
}

.demo-image-preview {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.demo-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 1.5s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.processing-log {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    width: 100%;
}

.proc-entry {
    padding: 8px 0;
    color: var(--text-dim);
    opacity: 0;
    transform: translateX(-10px);
}

.proc-entry.active {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.proc-entry.success {
    color: var(--accent);
}

/* Result Step */
.result-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.result-food {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.result-food img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.result-food h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.result-confidence {
    font-size: 0.7rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.result-macros {
    display: flex;
    align-items: center;
    gap: 25px;
}

.macro-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0deg, var(--accent) 180deg, rgba(255,255,255,0.1) 180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.macro-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: #0a0a0c;
    border-radius: 50%;
}

.macro-value, .macro-label {
    position: relative;
    z-index: 1;
}

.macro-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.macro-label {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.macro-breakdown {
    flex: 1;
}

.macro-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.macro-item:last-child {
    border: none;
}

.macro-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.macro-grams {
    font-family: var(--font-mono);
    font-weight: 600;
}

.macro-item.protein .macro-grams { color: #ef4444; }
.macro-item.fat .macro-grams { color: #f59e0b; }
.macro-item.carbs .macro-grams { color: #3b82f6; }

/* Trend Step */
.trend-hero {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.trend-label {
    font-size: 0.65rem;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
}

.trend-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.old-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dim);
    text-decoration: line-through;
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-dim);
}

.new-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.trend-delta {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.trend-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding: 0 10px;
    margin-bottom: 25px;
}

.chart-bar {
    width: 30px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.6) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar.active {
    background: linear-gradient(180deg, var(--accent) 0%, rgba(16, 185, 129, 0.5) 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-dim);
}

.trend-insight {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

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

.trend-insight p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-upgrade {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

/* Checkout Step */
.demo-checkout {
    justify-content: flex-start;
}

.checkout-provider {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.lemon-logo {
    height: 24px;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.powered-by {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.product-icon {
    font-size: 2.5rem;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.product-price span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.checkout-form {
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

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

.form-row .form-field {
    flex: 1;
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    border-radius: 14px;
}

.checkout-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Success Step */
.demo-success {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-animation {
    margin-bottom: 30px;
}

.success-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.checkmark {
    font-size: 3rem;
    color: white;
}

.demo-success h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.demo-success p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.success-features {
    margin-bottom: 40px;
}

.feature-unlocked {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--accent);
}

.btn-demo-action {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

/* Responsive Demo */
@media (max-width: 480px) {
    .demo-phone {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
    }
    
    .demo-phone-screen {
        border-radius: 0;
    }
    
    .demo-phone-notch,
    .demo-phone-home {
        display: none;
    }
    
    .demo-close {
        top: 15px;
        right: 15px;
    }
}
