:root {
    --bg: #FDFDFD;
    --bg-alt: #F7F1F0;
    --text-main: #0B0B0D;
    --text-sec: #5A5A62;
    --accent: #25D366;
    --accent-rgb: 37, 211, 102;
    --surface: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(253, 253, 253, 0.85);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --nav-height: 72px;
    --glow: radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
}

[data-theme="dark"] {
    --bg: #131315;
    --bg-alt: #1c1b1e;
    --text-main: #FFFFFF;
    --text-sec: #9CA3AF;
    --accent: #25D366;
    --accent-rgb: 37, 211, 102;
    --surface: #2a2a2c;
    --border: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(19, 19, 21, 0.8);
    --card-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    --glow: radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.15) 0%, transparent 65%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Merriweather', serif; font-weight: 700; letter-spacing: -0.01em; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 6%; }
.section-main { background-color: var(--bg); }
.section-alt { background-color: var(--bg-alt); }

.radial-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 140%; height: 140%; background: var(--glow); pointer-events: none; z-index: 0; opacity: 0.8;
}

/* --- Navbar --- */
nav {
    height: var(--nav-height); position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 6%;
}

.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; min-width: 0; }
.logo-text { display: flex; align-items: baseline; gap: 4px; font-family: 'Merriweather', serif; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.logo-text .brand-name { color: var(--accent); }
.logo-text .subtitle { color: var(--text-main); font-weight: 300; font-style: italic; font-size: 0.85em; }

.nav-links { display: flex; gap: 36px; align-items: center; margin-left: auto; }
.nav-links a { font-size: 0.85rem; font-weight: 500; opacity: 0.9; letter-spacing: 0.5px; white-space: nowrap; }
.nav-links a:hover { opacity: 1; color: var(--accent); }

.nav-btns { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .menu-toggle {
    cursor: pointer; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border);
    color: var(--accent); background: transparent;
}
.menu-toggle { display: none; border-radius: 8px; }

.btn-primary {
    background: var(--accent); color: white !important;
    padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 0.85rem;
    white-space: nowrap; box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.5); }

/* --- Hero --- */
section { padding: 120px 6%; position: relative; }
.hero.home { min-height: 100vh; justify-content: center; padding-top: var(--nav-height); display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge {
    display: inline-block;
    background: rgba(37, 211, 102, 0.1); color: var(--accent);
    padding: 6px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; border: 1px solid var(--accent); margin-bottom: 24px;
    white-space: nowrap;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.1; margin-bottom: 28px; max-width: 1100px; font-family: 'Merriweather', serif; font-weight: 700; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero p { font-size: 1.15rem; color: var(--text-sec); max-width: 680px; margin: 0 auto 48px; line-height: 1.7; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- Custom Steps (Process Layer) --- */
.process-section { padding: 120px 6%; overflow: hidden; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.process-header h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 24px; }
.process-header p { font-size: 1.1rem; color: var(--text-sec); max-width: 500px; }

.process-list { display: flex; flex-direction: column; gap: 48px; }
.process-item { display: flex; gap: 32px; align-items: flex-start; }
.process-icon { font-family: 'Merriweather', serif; font-size: 3rem; font-weight: 700; color: var(--accent); opacity: 0.2; line-height: 1; flex-shrink: 0; }
.process-content h3 { font-size: 1.5rem; margin-bottom: 12px; }
.process-content p { color: var(--text-sec); line-height: 1.8; }

/* --- Feature Section --- */
.features-header { text-align: center; margin-bottom: 90px; }
.features-header h2 { font-size: 3.2rem; margin-bottom: 18px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.feature-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 50px 40px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); text-align: left;
}
.feature-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.06); border-color: var(--accent); box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4); }
.icon-box { width: 56px; height: 56px; background: rgba(37, 211, 102, 0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 32px; }

/* --- Legal Pages Content Styling --- */
.content-container { max-width: 800px; margin: 0 auto; padding: 120px 24px; }
.content-container h1 { font-size: 2.5rem; margin-bottom: 32px; }
.content-container h2 { font-size: 1.8rem; margin: 48px 0 24px; color: var(--accent); }
.content-container p, .content-container li { font-size: 1.05rem; color: var(--text-sec); margin-bottom: 20px; line-height: 1.8; }
.content-container ul { padding-left: 20px; margin-bottom: 30px; }

/* --- Support Specific --- */
.support-card {
    background: var(--surface); padding: 40px; border-radius: 24px;
    border: 1px solid var(--border); text-align: center; margin-top: 40px;
}
.support-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.support-card a { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

/* --- Footer --- */
footer { padding: 100px 6%; background: var(--bg); border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.footer-center { display: flex; align-items: center; gap: 48px; justify-content: center; }
.footer-links { display: flex; gap: 32px; }
.footer-links a:hover { color: var(--text-main); }
.copyright { font-size: 0.95rem; color: var(--text-sec); white-space: nowrap; }

/* --- Animations --- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* --- Mobile Optimization (Strict Sync) --- */
@media (max-width: 1024px) {
    .footer-grid { flex-direction: column; text-align: center; gap: 32px; }
    .footer-left, .footer-center, .footer-right { 
        display: flex;
        justify-content: center; 
        flex: none; 
        width: 100%; 
    }
    .footer-left { order: 1; }
    .footer-right { order: 2; }
    .footer-center { order: 3; }
}

@media (max-width: 768px) {
    nav { padding: 12px 6%; }
    .nav-links {
        position: absolute; top: calc(100% + 8px); left: 4%; right: 4%;
        flex-direction: column; gap: 0; padding: 12px;
        border: 1px solid var(--border); border-radius: 12px;
        background: var(--header-bg); backdrop-filter: blur(12px);
        opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all 0.2s ease;
    }
    .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .nav-links > a { width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 0.86rem; }
    .nav-links > a:hover { background: rgba(255, 255, 255, 0.06); }
    .menu-toggle { display: inline-flex; }
    
    .hero.home { min-height: 100vh; padding-top: 110px; }
    .hero h1 { font-size: 2.1rem; line-height: 1.25; }
    .hero p { font-size: 0.95rem; }
    .hero-btns .btn-primary { padding: 16px 40px !important; font-size: 1.05rem !important; width: 100%; text-align: center; }

    .process-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .process-header p { margin: 0 auto; }
    .process-item { flex-direction: column; align-items: center; text-align: center; gap: 16px; }

    .features-header h2 { font-size: 2.2rem; }
    footer { padding: 60px 20px; }

    .content-container { padding: 100px 20px 60px; }
    .content-container h1 { font-size: 2rem; }
}
