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

/* --- 1. DESIGN SYSTEM VARIABLES --- */
:root {
  /* Light Theme (Default) */
  --bg-color: #F8F5F2;
  --bg-nav: rgba(248, 245, 242, 0.85);
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-card-hover: rgba(201, 123, 95, 0.25);
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --accent: #C97B5F;
  --accent-hover: #B25E45;
  --accent-glow: rgba(201, 123, 95, 0.08);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1100px;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1A1F2E;
    --bg-nav: rgba(26, 31, 46, 0.85);
    --bg-card: rgba(37, 43, 59, 0.5);
    --bg-card-hover: rgba(45, 53, 72, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(201, 123, 95, 0.3);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent: #D4A48A;
    --accent-hover: #C97B5F;
    --accent-glow: rgba(201, 123, 95, 0.12);
  }
}

/* Force Light/Dark via classes if needed */
:root.light-theme, body.light-theme {
  --bg-color: #F8F5F2;
  --bg-nav: rgba(248, 245, 242, 0.85);
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-card-hover: rgba(201, 123, 95, 0.25);
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --accent: #C97B5F;
  --accent-hover: #B25E45;
  --accent-glow: rgba(201, 123, 95, 0.08);
}
:root.dark-theme, body.dark-theme {
  --bg-color: #1A1F2E;
  --bg-nav: rgba(26, 31, 46, 0.85);
  --bg-card: rgba(37, 43, 59, 0.5);
  --bg-card-hover: rgba(45, 53, 72, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(201, 123, 95, 0.3);
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent: #D4A48A;
  --accent-hover: #C97B5F;
  --accent-glow: rgba(201, 123, 95, 0.12);
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline-offset: 0px;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* Effects */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.gradient-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
}

/* --- 3. LAYOUT COMPONENTS --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .tag {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
}

/* --- 4. NAVIGATION --- */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1rem 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.05em;
    transition: var(--transition-smooth);
}
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo:hover { opacity: 0.8; }

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- 5. BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(201, 123, 95, 0.15);
}
@media (prefers-color-scheme: dark) {
    .btn-primary { color: #1A1F2E; }
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201, 123, 95, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(201, 123, 95, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

.icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}
.icon-btn:hover {
    color: var(--accent);
    background: var(--bg-card);
}

/* --- 6. HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    background: var(--bg-card);
    letter-spacing: 0.05em;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 123, 95, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(201, 123, 95, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-features span { display: inline-flex; align-items: center; gap: 6px; }
.hero-features i { color: var(--accent); }

/* --- 7. CARDS & GRIDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-card-hover);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    background: var(--bg-card-hover);
}
@media (prefers-color-scheme: dark) {
    .card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
}

.card-icon {
    width: 48px; height: 48px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 8. TRUST BAR --- */
.trust-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background: var(--bg-card);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.trust-items span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.trust-items i { color: var(--accent); font-size: 1.1rem; }

/* --- 9. SPLIT LAYOUT (IMAGE/TEXT) --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.split-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.split-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.split-content li {
    display: flex;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 500;
}
.split-content li i { color: var(--accent); margin-top: 4px; }

.split-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
@media (prefers-color-scheme: dark) {
    .split-image { box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
}
.split-image img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
    .split-section { grid-template-columns: 1fr; gap: 3rem; }
    .split-image { order: -1; } /* Image on top on mobile */
}

/* --- 10. FORMS & MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-icon {
    width: 64px; height: 64px;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}
.modal-title {
    font-size: 1.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-color);
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.grecaptcha-badge { visibility: hidden !important; }

/* --- 11. FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: var(--bg-card);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.footer-disclaimer a {
    color: var(--accent);
    text-decoration: underline;
}

/* --- 12. MOBILE MENU --- */
.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: flex; }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0; visibility: hidden;
    transition: var(--transition-smooth);
}
.mobile-menu-overlay.active {
    opacity: 1; visibility: visible;
}
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 3rem;
}
.mobile-nav-links {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.mobile-nav-links a {
    font-size: 1.25rem; font-weight: 500;
}
.mobile-nav-actions { margin-top: 3rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }

/* --- 13. PROSE (Legal Pages) --- */
.prose {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}
.prose h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
.prose h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--accent-hover); }

/* --- 14. SVG ICONS & ANIMATIONS --- */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 2.25;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner {
    animation: spin 1s linear infinite;
    transform-origin: center;
}