/*
 * Cosmic Synthesis — Shared Landing Page Styles
 * Design: Cormorant Garamond + Inter, cosmic purple gradient, gold accents, glassmorphism
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #181432; --navy-light: #221e3a; --navy-deep: #0e0c1e;
    --gold: #d4a843; --gold-light: #e8c46c; --gold-dark: #b8922e;
    --purple: #4a2d7a; --purple-light: #6b3fa0;
    --text: #f0ead6; --text-muted: #9e98b0;
    --border: rgba(255,255,255,0.08);
    --glass: rgba(34,30,58,0.55);
    --glass-border: rgba(255,255,255,0.06);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--sans);
    background: var(--navy-deep);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ═══════ Cosmic Background ═══════ */
.cosmic-bg {
    position: fixed; inset: 0; z-index: 0;
    background: linear-gradient(135deg, #0e0c1e 0%, #1a1440 30%, #2a1855 60%, #1a0e30 100%);
}
.star-field {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(200,195,225,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 40px 70px, rgba(200,195,225,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 90px 40px, rgba(200,195,225,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 130px 80px, rgba(200,195,225,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 160px 120px, rgba(200,195,225,0.7) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60px 140px, rgba(200,195,225,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 180px 20px, rgba(200,195,225,0.6) 0%, transparent 100%);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.3; } 100% { opacity: 0.7; } }

.content { position: relative; z-index: 2; }

/* ═══════ Header ═══════ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(14,12,30,0.75);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { color: var(--gold); font-size: 18px; }
.logo-text { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); }
.header-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-deep); border: none; padding: 10px 20px; border-radius: 8px;
    font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(212,168,67,0.25);
}
.header-cta:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(212,168,67,0.3); }
.lang-switch { display: flex; gap: 12px; font-size: 12px; }
.lang-switch a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.lang-switch a:hover, .lang-switch a.active { color: var(--gold); }

/* ═══════ Hero ═══════ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; text-align: center; padding: 80px 24px 60px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('/static/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.35;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    border: 1px solid rgba(212,168,67,0.3);
    background: var(--glass); backdrop-filter: blur(8px);
    font-size: 14px; color: rgba(240,234,214,0.8); margin-bottom: 32px;
}
.hero-badge .icon { color: var(--gold); }
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 600; line-height: 1.08; margin-bottom: 24px;
}
.hero h1 .gold { color: var(--gold); }
.hero .subtitle {
    font-size: clamp(17px, 2.2vw, 22px); color: var(--text-muted);
    line-height: 1.6; max-width: 600px; margin: 0 auto 40px;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-deep); border: none; padding: 16px 36px; border-radius: 10px;
    font-family: var(--sans); font-size: 18px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(212,168,67,0.25);
}
.hero-cta:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(212,168,67,0.3); }
.hero-trust { margin-top: 28px; font-size: 14px; color: var(--text-muted); }

.scroll-indicator {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border-radius: 12px;
    border: 2px solid rgba(212,168,67,0.4);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 8px; animation: bounce 2s infinite;
}
.scroll-dot { width: 4px; height: 8px; border-radius: 2px; background: var(--gold); opacity: 0.8; }
@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ═══════ Section Layout ═══════ */
section { padding: 96px 24px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }
.s-title {
    font-family: var(--serif); font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 600; text-align: center; margin-bottom: 12px;
}
.s-sub {
    text-align: center; font-size: 17px; color: var(--text-muted);
    max-width: 580px; margin: 0 auto 56px; line-height: 1.6;
}

/* ═══════ Feature Grid ═══════ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fc {
    padding: 28px; border-radius: 12px; background: var(--glass);
    border: 1px solid var(--glass-border); backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.fc:hover { border-color: rgba(212,168,67,0.3); box-shadow: 0 4px 30px rgba(74,45,122,0.3); }
.fc-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 22px; color: var(--navy-deep);
    transition: box-shadow 0.3s;
}
.fc:hover .fc-icon { box-shadow: 0 4px 20px rgba(212,168,67,0.25); }
.fc h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.fc p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ═══════ Steps ═══════ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 960px; margin: 0 auto; }
.step { text-align: center; }
.step-circle {
    width: 120px; height: 120px; border-radius: 50%;
    border: 2px solid rgba(212,168,67,0.3); background: var(--glass); backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 0 auto 20px; transition: border-color 0.3s;
}
.step:hover .step-circle { border-color: var(--gold); }
.step-num { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--gold); }
.step-icon { font-size: 28px; margin-top: 4px; }
.step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-muted); line-height: 1.5; max-width: 280px; margin: 0 auto; }

/* ═══════ Social Proof ═══════ */
.social-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px; border-radius: 999px;
    border: 1px solid rgba(212,168,67,0.3); background: var(--glass); backdrop-filter: blur(8px);
    font-size: 16px; margin-bottom: 32px;
}
.social-badge .count { font-weight: 600; color: var(--gold); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.tc {
    padding: 28px; border-radius: 14px; border: 1px solid var(--glass-border);
    background: var(--glass); backdrop-filter: blur(8px); transition: border-color 0.3s;
}
.tc:hover { border-color: rgba(212,168,67,0.2); }
.tc-stars { margin-bottom: 14px; color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.tc blockquote { font-size: 15px; color: rgba(240,234,214,0.9); line-height: 1.6; font-style: italic; margin-bottom: 20px; }
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--navy-deep); font-size: 15px;
}
.tc-name { font-weight: 600; font-size: 14px; }
.tc-loc { font-size: 13px; color: var(--text-muted); }
.rating-summary { text-align: center; margin-top: 40px; font-size: 16px; }
.rating-summary .gold { color: var(--gold); }

/* ═══════ Form ═══════ */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
    padding: 36px; border-radius: 14px; border: 1px solid var(--glass-border);
    background: var(--glass); backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(74,45,122,0.2);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select {
    width: 100%; padding: 12px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(14,12,30,0.6);
    color: var(--text); font-family: var(--sans); font-size: 15px;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.15); }
.field input::placeholder { color: rgba(158,152,176,0.6); }
.field select option { background: var(--navy); }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px; margin-top: 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-deep); border: none; border-radius: 10px;
    font-family: var(--sans); font-size: 17px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(212,168,67,0.25);
}
.submit-btn:hover { transform: scale(1.02); box-shadow: 0 0 30px rgba(212,168,67,0.3); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-secure { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ═══════ FAQ ═══════ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border-radius: 12px; border: 1px solid var(--glass-border);
    background: var(--glass); backdrop-filter: blur(8px); overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(212,168,67,0.2); }
.faq-q {
    padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: var(--serif); font-size: 18px; font-weight: 500;
    transition: color 0.2s; user-select: none;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow { font-size: 14px; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ═══════ Footer ═══════ */
.footer { padding: 48px 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.footer-logo span:last-child { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.footer p { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 420px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin: 16px 0; font-size: 13px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer .copy { font-size: 12px; color: rgba(158,152,176,0.5); margin-top: 12px; }

/* ═══════ Responsive ═══════ */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .header-inner .lang-switch { display: none; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
}
