:root {
    /* Enomatix palette */
    --sky-blue-light: #8ecae6;
    --blue-green: #219ebc;
    --deep-space-blue: #023047;
    --amber-flame: #ffb703;
    --princeton-orange: #fb8500;

    /* Core theme tokens */
    --bg: var(--deep-space-blue);
    --surface: rgba(142, 202, 230, 0.08);
    --surface-2: rgba(142, 202, 230, 0.12);
    --text: #eaf2ff;
    --muted: rgba(234, 242, 255, 0.78);
    --border: rgba(142, 202, 230, 0.18);

    --primary: var(--blue-green);
    --primary-2: var(--sky-blue-light);

    /* Accents */
    --accent: var(--amber-flame);
    --accent-2: var(--princeton-orange);

    /* Header tokens – navy base */
    --header-bg: #023047;
    --header-text: #fb8500;
    --header-text-muted: #ffffff;
    --header-hover-bg: rgba(255, 255, 255, 0.12);
    --header-active-bg: rgba(255, 255, 255, 0.18);
    --header-border: rgba(255, 255, 255, 0.08);

    /* Feedback */
    --success: #2ecc71;
    --danger: #ff5c5c;

    /* Effects */
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.40);

    /* Shape / layout */
    --radius: 16px;
    --radius-lg: 22px;
    --max: 1120px;

    /* Spacing */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 28px;
    --space-6: 40px;
    --space-7: 56px;
    --space-8: 80px;

    /* Typography */
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    background: transparent; /* important: background moves to ::before */
    color: var(--text);
    line-height: 1.55;
    position: relative;
    min-height: 100vh;
}

/* Fixed, continuous background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(1100px 700px at 18% -12%, rgba(33, 158, 188, 0.28), transparent 60%),
        radial-gradient(900px 600px at 92% 12%, rgba(142, 202, 230, 0.20), transparent 55%),
        radial-gradient(900px 520px at 70% 120%, rgba(255, 183, 3, 0.10), transparent 60%),
        var(--bg);

    background-repeat: no-repeat;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
    width: auto;
    height: auto;
    padding: var(--space-2) var(--space-3);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 9999;
}

/* ----------------------------------
   Header (navy + white nav, orange accents)
----------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #023047;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0; /* mobile/tablet default */
}

.brand {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fb8500; /* 1) strong orange */
}

.brand-tagline {
    font-size: 0.88rem;
    color: #ffffff; /* 2) pure white */
    display: none;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav a {
    color: #ffffff; /* 3) pure white */
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 650;
    transition: background 120ms ease, color 120ms ease;
}

.nav a:hover,
.nav a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fb8500; /* orange on hover */
    outline: none;
}

.nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fb8500; /* 4) active text orange */
}

/* Mobile menu button */
.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 650;
}

.menu-btn:focus {
    outline: 2px solid rgba(251, 133, 0, 0.55);
    outline-offset: 2px;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    background: #023047;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3) 0;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: #ffffff;
    font-weight: 650;
    border-radius: 12px;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
}

.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fb8500;
}

/* 6) Taller header on desktop for presence */
@media (min-width: 860px) {
    .brand-tagline {
        display: inline;
    }

    .menu-btn {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .header-inner {
        padding: 22px 0; /* taller than before */
    }
}

/* ----------------------------------
   Scroll-state header (subtle shrink)
----------------------------------- */

.site-header.scrolled .header-inner {
    padding: 12px 0;
}

/* Smooth transition */
.site-header .header-inner {
    transition: padding 160ms ease;
}

/* Disable scroll-state on small screens */
@media (max-width: 859px) {
    .site-header.scrolled .header-inner {
        padding: var(--space-3) 0;
    }
}


/* ----------------------------------
   Hero
----------------------------------- */

.hero {
    padding: var(--space-6) 0 var(--space-7);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
    align-items: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(33, 158, 188, 0.14);
    border: 1px solid rgba(33, 158, 188, 0.28);
    color: var(--text);
    font-size: 0.95rem;
}

h1 {
    margin: var(--space-4) 0 var(--space-3);
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.4px;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
    flex-wrap: wrap;
}

.hero-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(142, 202, 230, 0.10), rgba(142, 202, 230, 0.05));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card .media {
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.18);
}

.hero-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card .meta {
    padding: var(--space-4);
}

.meta-title {
    font-weight: 750;
    margin: 0 0 6px;
}

.meta-text {
    margin: 0;
    color: var(--muted);
}

/* ----------------------------------
   Sections
----------------------------------- */

.section {
    padding: var(--space-4) 0;
}

.section h2 {
    margin: 0 0 var(--space-3);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.2px;
}

.section p {
    margin: 0 0 var(--space-3);
    color: var(--muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: var(--space-5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.list {
    margin: var(--space-4) 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.list li {
    margin: 8px 0;
}

/* ----------------------------------
   CTA band
----------------------------------- */

.cta {
    padding: var(--space-6) 0;
}

.cta-inner {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(33, 158, 188, 0.30);
    background: linear-gradient(180deg, rgba(33, 158, 188, 0.18), rgba(142, 202, 230, 0.06));
    box-shadow: var(--shadow);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.cta-inner p {
    margin: 0;
    color: var(--muted);
}

/* ----------------------------------
   Buttons
----------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    user-select: none;
}

.btn:focus {
    outline: 2px solid rgba(33, 158, 188, 0.65);
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Primary buttons */
.btn-primary {
    background: #fb8500;          /* solid orange */
    color: #ffffff;               /* white text */
    border: none;
    font-weight: 750;
    transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #023047;          /* navy on hover */
    color: #fb8500;               /* orange text */
    outline: none;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fb8500;
}


.btn-ghost {
    background: transparent;
    color: var(--text);
}

/* ----------------------------------
   Page hero / breadcrumb
----------------------------------- */

.page-hero {
    padding: var(--space-6) 0 0;
}

.breadcrumb {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ----------------------------------
   Forms
----------------------------------- */

.form {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.field {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 700;
}

input, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(142, 202, 230, 0.06);
    color: var(--text);
    font-size: 1rem;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: 2px solid rgba(33, 158, 188, 0.65);
    outline-offset: 2px;
}

.help {
    color: var(--muted);
    font-size: 0.95rem;
}

.error {
    color: var(--danger);
    font-size: 0.95rem;
    display: none;
}

.notice {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: var(--space-4);
    display: none;
}

.notice.success {
    border-color: rgba(46, 204, 113, 0.35);
    background: #eaf2ff;
    background-color: #eaf2ff;
    color: #2ecc71;
}

.notice.error {
    border-color: rgba(255, 92, 92, 0.35);
    background: #eaf2ff;
    background-color: #eaf2ff;
}

/* ----------------------------------
   Footer
----------------------------------- */

.footer {
    border-top: 1px solid var(--border);
    margin-top: var(--space-8);
    padding: var(--space-6) 0;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--space-5);
}

.footer a {
    color: var(--muted);
}

.footer a:hover,
.footer a:focus {
    color: var(--text);
}

.small {
    font-size: 0.95rem;
}

/* ----------------------------------
   Responsive
----------------------------------- */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 860px) {
    .brand-tagline {
        display: inline;
    }

    .menu-btn {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .nav-cta {
        display: inline-flex;
    }
}

/* Mobile: hide desktop nav, show hamburger */
@media (max-width: 859px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
    }
}