/* Cadence Landing Page Styles */

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --bg-dark: #0f0f23;
    --bg-section: #f8fafc;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 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);
}

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

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: 0 24px;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary) !important; color: #fff !important;
    padding: 8px 20px; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: 0.3s; }

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 50%, #312e81 100%);
    color: #fff; padding: 120px 24px 80px; text-align: center;
}
.hero-inner { max-width: 700px; }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #c7d2fe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: #c7d2fe; margin-bottom: 24px; line-height: 1.7; }

/* ── Waitlist Form (shared) ────────────────────────────────────────────────── */
.waitlist-input-group { display: flex; gap: 12px; }
.waitlist-input-group input {
    flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius); background: rgba(255,255,255,0.1);
    color: #fff; font-size: 16px; outline: none; transition: border-color 0.2s;
}
.waitlist-input-group input::placeholder { color: #a5b4fc; }
.waitlist-input-group input:focus { border-color: var(--primary-light); }
.waitlist-message { margin-top: 12px; font-size: 14px; min-height: 20px; }
.waitlist-message.success { color: #4ade80; }
.waitlist-message.error { color: #f87171; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border: none; border-radius: var(--radius);
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Section Styles ──────────────────────────────────────────────────────── */
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--text-primary); }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* ── Features Section ────────────────────────────────────────────────────── */
.features { padding: 100px 0; background: var(--bg-section); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: #fff; padding: 32px; border-radius: var(--radius);
    border: 1px solid var(--border); transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Social Proof ────────────────────────────────────────────────────────── */
.social-proof { padding: 80px 0; background: #fff; }
.metrics-bar { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.metric { text-align: center; }
.metric-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.metric-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ── Contact / Enquiry ───────────────────────────────────────────────────── */
.contact { padding: 100px 0; background: var(--bg-section); }
.enquiry-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 15px; font-family: inherit;
    outline: none; transition: border-color 0.2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.enquiry-message { margin-top: 16px; font-size: 14px; min-height: 20px; }
.enquiry-message.success { color: #16a34a; }
.enquiry-message.error { color: #dc2626; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: #94a3b8; padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { }
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 24px;
        border-bottom: 1px solid var(--border); gap: 16px;
    }
    .nav-links.active { display: flex; }
    .waitlist-input-group { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .metrics-bar { gap: 32px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .access-inner { flex-direction: column; text-align: center; }
}

/* ── Hero CTAs ─────────────────────────────────────────────────────────── */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ── Outline Button ────────────────────────────────────────────────────── */
.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Access Section ────────────────────────────────────────────────────── */
.bg-alt { background: var(--bg-light); }
.access { padding: 80px 0; }
.access-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.access-text .section-title,
.access-text .section-subtitle { text-align: left; }
.access-badge {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
}
.badge-alt { background: var(--accent); }

/* ── Waitlist Section ──────────────────────────────────────────────────── */
.waitlist-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.waitlist-section .section-title { color: #fff; }
.waitlist-section .section-subtitle { color: rgba(255,255,255,0.85); }
.waitlist-form-centered {
    max-width: 500px;
    margin: 24px auto 0;
}
.waitlist-form-centered .waitlist-input-group {
    display: flex;
    gap: 12px;
}
.waitlist-form-centered .waitlist-message { color: #fff; }
@media (max-width: 768px) {
    .waitlist-form-centered .waitlist-input-group { flex-direction: column; }
}

/* ── Downloads Section ────────────────────────────────────────────────── */
.downloads { padding: 100px 0; background: var(--bg-section); }
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}
.download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.download-icon { font-size: 2.5rem; }
.download-card strong { font-size: 1rem; }
.download-card span:last-child { font-size: 0.85rem; color: var(--text-secondary); }
