/* ========================================
   VeriCall Website Stylesheet
   Modern, clean design with cyber-security aesthetic
   ======================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #10b981;
    --accent-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-300);
    background: var(--dark);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--text-xl); color: var(--white); }
.logo-icon { font-size: var(--text-2xl); }
.nav-menu { display: flex; align-items: center; gap: var(--space-8); list-style: none; }
.nav-menu a { color: var(--gray-400); font-weight: 500; font-size: var(--text-sm); position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-primary); transition: width var(--transition); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: var(--space-2); }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-5); font-weight: 600; font-size: var(--text-sm);
    border-radius: var(--radius-lg); transition: all var(--transition);
}
.btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(99, 102, 241, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); }
.btn-large { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

.hero {
    padding: calc(72px + var(--space-24)) 0 var(--space-24);
    background: var(--gradient-dark); position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-4); background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-full);
    font-size: var(--text-sm); color: var(--accent-light); margin-bottom: var(--space-6);
}
.hero h1 {
    font-size: var(--text-5xl); font-weight: 800; line-height: 1.1; color: var(--white);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, #ffffff 0%, #818cf8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: var(--text-xl); color: var(--gray-400); margin-bottom: var(--space-8); max-width: 540px; }
.hero-buttons { display: flex; gap: var(--space-4); margin-bottom: var(--space-12); }
.hero-stats { display: flex; gap: var(--space-12); }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: var(--text-3xl); font-weight: 700; color: var(--white); }
.stat-label { font-size: var(--text-sm); color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
    width: 300px; height: 600px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 40px; padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}
.phone-mockup::before {
    content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 24px; background: #0f172a; border-radius: 12px; z-index: 10;
}
.screen { width: 100%; height: 100%; background: var(--dark); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.call-ui { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-8); background: var(--gradient-card); }
.caller-info { text-align: center; margin-bottom: var(--space-8); }
.avatar { width: 80px; height: 80px; background: var(--gradient-primary); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: var(--text-3xl); margin: 0 auto var(--space-4); }
.caller-name { font-size: var(--text-xl); font-weight: 600; color: var(--white); margin-bottom: var(--space-2); }
.verification-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); background: rgba(16, 185, 129, 0.2); color: var(--accent-light); font-size: var(--text-xs); font-weight: 600; border-radius: var(--radius-full); }
.waveform { display: flex; align-items: center; gap: 4px; height: 60px; margin-bottom: var(--space-8); }
.waveform span { width: 4px; background: var(--gradient-primary); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.waveform span:nth-child(1) { height: 20px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 60px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 25px; animation-delay: 0.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }
.call-controls { display: flex; gap: var(--space-4); }
.control-btn { width: 60px; height: 60px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.1); font-size: var(--text-xl); transition: all var(--transition); }
.control-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.control-btn.end { background: var(--danger); transform: rotate(135deg); }
.control-btn.end:hover { background: #dc2626; }

.features { padding: var(--space-24) 0; background: var(--dark-light); }
.features h2 { text-align: center; font-size: var(--text-4xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-16); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.feature-card { background: var(--gradient-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius-xl); padding: var(--space-8); transition: all var(--transition); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.3); box-shadow: var(--shadow-glow); }
.feature-icon { width: 60px; height: 60px; background: var(--gradient-primary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: var(--text-3xl); margin-bottom: var(--space-6); }
.feature-card h3 { font-size: var(--text-xl); font-weight: 600; color: var(--white); margin-bottom: var(--space-3); }
.feature-card p { color: var(--gray-400); font-size: var(--text-base); line-height: 1.6; }

.technology { padding: var(--space-24) 0; background: var(--dark); }
.technology h2 { text-align: center; font-size: var(--text-4xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-4); }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto var(--space-12); color: var(--gray-400); font-size: var(--text-lg); }

.tech-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); margin-bottom: var(--space-16); }
.tech-card { background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: var(--radius-xl); padding: var(--space-8); position: relative; overflow: hidden; }
.tech-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); }
.tech-card:nth-child(2)::before { background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%); }
.tech-card:nth-child(2) { border-color: rgba(139, 92, 246, 0.2); }
.tech-card h3 { font-size: var(--text-xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-6); display: flex; align-items: center; gap: var(--space-3); }
.tech-card h3::before { content: "⚡"; font-size: var(--text-2xl); }
.tech-card:nth-child(2) h3::before { content: "🧠"; }
.tech-specs { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); padding: var(--space-5); background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-lg); }
.spec { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.spec span:first-child { color: var(--gray-500); font-weight: 500; }
.spec span:last-child { color: var(--accent-light); font-family: var(--font-mono); font-weight: 600; }
.tech-card > p { color: var(--gray-400); font-size: var(--text-base); line-height: 1.6; }

.ai-detection { background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: var(--radius-xl); padding: var(--space-10); }
.ai-detection h3 { font-size: var(--text-2xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-8); text-align: center; }
.ai-detection ol { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.ai-detection li { padding: var(--space-5); background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-lg); color: var(--gray-300); font-size: var(--text-base); line-height: 1.5; }
.ai-detection li strong { color: var(--white); display: block; margin-bottom: var(--space-1); }

.about { padding: var(--space-24) 0; background: var(--dark-light); }
.about h2 { text-align: center; font-size: var(--text-4xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-12); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); margin-bottom: var(--space-16); }
.about-content { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-xl); padding: var(--space-8); }
.about-content h3 { font-size: var(--text-xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-6); display: flex; align-items: center; gap: var(--space-3); }
.about-content:first-child h3::before { content: "⚠️"; }
.about-content:last-child h3::before { content: "✅"; }
.about-content ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.about-content li { color: var(--gray-400); font-size: var(--text-base); padding-left: var(--space-6); position: relative; }
.about-content:first-child li::before { content: "×"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.about-content:last-child li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.tech-stack { text-align: center; }
.tech-stack h3 { font-size: var(--text-2xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-8); }
.stack-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.stack-item { padding: var(--space-3) var(--space-6); background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--white); transition: all var(--transition); }
.stack-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.download-section { padding: var(--space-24) 0; background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 50%, var(--dark) 100%); }
.download-section h2 { text-align: center; font-size: var(--text-4xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-4); }
.download-section .section-intro { margin-bottom: var(--space-12); }
.download-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-12); max-width: 1000px; margin: 0 auto; }
.download-card { background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: var(--radius-2xl); padding: var(--space-10); text-align: center; position: relative; }
.download-card::before { content: ""; position: absolute; inset: -1px; background: var(--gradient-primary); border-radius: calc(var(--radius-2xl) + 1px); z-index: -1; opacity: 0.3; }
.platform-icon { font-size: 4rem; margin-bottom: var(--space-4); }
.download-card h3 { font-size: var(--text-2xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-6); }
.requirements-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.requirements-list li { color: var(--gray-400); font-size: var(--text-sm); padding: var(--space-2) var(--space-4); background: rgba(0, 0, 0, 0.3); border-radius: var(--radius); }
.download-note { margin-top: var(--space-4); color: var(--gray-500); font-size: var(--text-sm); font-style: italic; }
.download-features { display: flex; flex-direction: column; justify-content: center; padding: var(--space-8); }
.download-features h3 { font-size: var(--text-xl); font-weight: 700; color: var(--white); margin-bottom: var(--space-6); }
.download-features ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.download-features li { color: var(--gray-300); font-size: var(--text-base); display: flex; align-items: center; gap: var(--space-3); }
.download-features li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.footer { padding: var(--space-16) 0 var(--space-8); background: var(--dark); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-bottom { padding-top: var(--space-8); border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; }
.footer-bottom p { color: var(--gray-600); font-size: var(--text-sm); }

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-comparison { grid-template-columns: 1fr; }
    .ai-detection ol { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--dark); padding: var(--space-6); gap: var(--space-4); }
    .nav-toggle { display: flex; }
    .hero { padding: calc(72px + var(--space-12)) 0 var(--space-12); }
    .hero h1 { font-size: var(--text-3xl); line-height: 1.2; }
    .hero-subtitle { font-size: var(--text-base); max-width: 100%; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: var(--space-4); 
        width: 100%;
    }
    .stat { 
        align-items: center; 
        text-align: center;
        gap: var(--space-1);
    }
    .stat-value { font-size: var(--text-xl); white-space: nowrap; }
    .stat-label { font-size: var(--text-xs); }
    .phone-mockup { width: 200px; height: 400px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: var(--space-6); }
    .tech-comparison { gap: var(--space-6); }
    .tech-card { padding: var(--space-6); }
    .tech-card h3 { font-size: var(--text-lg); }
    .ai-detection { padding: var(--space-6); }
    .ai-detection ol { grid-template-columns: 1fr; gap: var(--space-4); }
    .ai-detection li { 
        padding: var(--space-4); 
        font-size: var(--text-sm);
    }
    .about-grid { gap: var(--space-6); }
    .about-content { padding: var(--space-6); }
    .stack-grid { gap: var(--space-3); }
    .stack-item { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
    .download-grid { gap: var(--space-8); }
    .download-card { padding: var(--space-6); }
    .download-features { padding: var(--space-4); }
    .container { padding: 0 var(--space-4); }
    .btn-large { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* TestFlight Form */
.testflight-form {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder {
    color: var(--gray-500);
}

.btn-full {
    width: 100%;
    justify-content: center;
}
