/* ==========================================================
   HESS • Apple-Level Glass Polish Theme
   Blue (Light) × Emerald (Dark) · Smooth Shadows
   ========================================================== */

/* --- Dark Mode (default) --- */
:root {
    --bg: #0e1419;
    --surface: rgba(20, 25, 32, 0.7);
    --elevated: rgba(28, 34, 42, 0.85);
    --text: #e6f0e9;
    --muted: #b7c2bb;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #10b981; /* Emerald Green */
    --accent-glow: rgba(16, 185, 129, 0.25);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(.25, 1, .5, 1);
}

/* --- Light Mode --- */
body.light {
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.7);
    --elevated: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.1);
    --accent: #0ea5e9; /* Apple Sky Blue */
    --accent-glow: rgba(14, 165, 233, 0.25);
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 16px 40px rgba(15, 23, 42, 0.15);
}

/* --- Base --- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.6s var(--ease), color 0.4s var(--ease);
    background-image:
            radial-gradient(900px 500px at 10% -10%, var(--accent-glow), transparent 70%),
            radial-gradient(700px 400px at 100% 0%, var(--accent-glow), transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* --- Containers --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
    font-weight: 800;
    font-size: clamp(24px, 2vw + 10px, 36px);
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--text)));
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(12px);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand {
    text-decoration: none;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .3px;
    transition: color .4s var(--ease), transform .4s var(--ease);
}
.brand:hover { color: var(--accent); transform: translateY(-1px); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 16px; border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600; font-size: .95rem; cursor: pointer;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: all .4s var(--ease);
    backdrop-filter: blur(8px);
}
.btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff));
    color: #fff;
    box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff));
    color: #fff;
    border: none;
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px var(--accent-glow);
}
.btn-toggle {
    width: 36px; height: 36px; border-radius: 10px;
    font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
}

/* --- Hero --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}
.hero-text { max-width: 720px; }
.kicker { color: var(--muted); margin: 0 0 8px; }
.hero-text h1 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    margin: 0 0 12px;
}
.hero-text p { color: var(--muted); margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --- Cards --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    transition: all .45s var(--ease);
    backdrop-filter: blur(10px);
}
.card:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent) 10%, var(--surface)));
    box-shadow: 0 12px 40px var(--accent-glow);
}
.card h3 {
    color: var(--accent);
    margin: 0 0 .5rem;
    font-weight: 700;
    font-size: 1.1rem;
}
.card p, .card li { color: var(--muted); font-size: 0.95rem; }

/* --- Architecture --- */
.arch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.arch-card {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    transition: all .45s var(--ease);
    backdrop-filter: blur(12px);
}
.arch-card:hover {
    transform: translateY(-6px);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 40px var(--accent-glow);
}
.arch-card h4 { margin: 0 0 6px; }

/* --- Footer --- */
.site-footer {
    padding: 48px 0 32px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}
.footer-cta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* --- Utilities --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.clean { margin: 0; padding-left: 18px; }
.clean li { margin: .3rem 0; }
.muted { color: var(--muted); }

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero-text h1 { font-size: 34px; }
    .section { padding: 60px 0; }
}
