﻿:root {
    --bg: #F8FAFC;
    --card: #fff;
    --ink: #111827;
    --muted: #64748B;
    --line: #E2E8F0;
    --primary: #1550A5;
    --primary-ink: #fff;
    --navy: #1B4F9C;
    --tint: #EAF0F9;
    --note: #F2F6FA;
    --err: #DC2626;
    --head: rgba(255,255,255,.92);
    --f: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* Fluid tokens */
    --m-gutter: clamp(14px, 4vw, 24px);
    --m-fs-body: clamp(15px, 14px + 0.25vw, 17px);
    --m-fs-sm: clamp(0.8rem, 0.78rem + 0.15vw, 0.95rem);
    --m-fs-md: clamp(0.9rem, 0.87rem + 0.2vw, 1.05rem);
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #0B1220;
        --card: #131C2E;
        --ink: #F1F5F9;
        --muted: #94A3B8;
        --line: #26324A;
        --primary: #4C8DFF;
        --primary-ink: #071224;
        --tint: #1B2A47;
        --note: #172238;
        --err: #F87171;
        --head: rgba(19,28,46,.92)
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* On phones, shrink the root size so every rem-based size
   across all pages (landing, register, header, footer) scales down together */
@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: var(--m-fs-body)/1.55 var(--f);
    overflow-x: hidden;
}

img, svg, video {
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
}

.in {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: max(var(--m-gutter), env(safe-area-inset-left));
    padding-right: max(var(--m-gutter), env(safe-area-inset-right));
}

[hidden] {
    display: none !important;
}

/* BUTTONS */
.btn {
    font-weight: 700;
    font-size: var(--m-fs-md);
    border-radius: 10px;
    padding: clamp(11px, 1.2vw + 7px, 14px) clamp(18px, 3vw, 28px);
    min-height: 44px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

    .btn.w {
        background: #fff;
        color: #1550A5;
    }

    .btn.o {
        background: transparent;
        color: #fff;
        border-color: rgba(255,255,255,.6);
    }

    .btn.p {
        background: var(--primary);
        color: var(--primary-ink);
    }

/* HEADER */
header {
    background: var(--head);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(8px);
}

    header .in {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: clamp(60px, 8vw, 72px);
    }

.brand {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 14px);
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
    text-align: left;
    padding: 0;
    text-decoration: none;
    min-width: 0;
}

.logo {
    display: flex;
    flex: none;
    background: #fff;
    border-radius: 8px;
    padding: 3px 6px;
    height: clamp(38px, 5vw, 48px);
}

    .logo img {
        height: 100%;
        width: auto;
        display: block;
    }

.brand .t {
    border-left: 1px solid var(--line);
    padding-left: clamp(8px, 1.5vw, 14px);
    min-width: 0;
}

    .brand .t strong {
        display: block;
        color: var(--primary);
        font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.05rem);
        line-height: 1.2;
        white-space: nowrap;
    }

    .brand .t span {
        display: block;
        color: var(--muted);
        font-size: clamp(0.72rem, 0.7rem + 0.15vw, 0.85rem);
    }

nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 26px);
}

    nav a {
        color: var(--muted);
        text-decoration: none;
        font-weight: 500;
        font-size: var(--m-fs-md);
        transition: color 0.2s;
        white-space: nowrap;
    }

        nav a:hover {
            color: var(--primary);
        }

        /* Overrides the inline style on the "Register Now" button so it can scale */
        nav a.btn {
            padding: 8px clamp(12px, 2vw, 16px) !important;
            font-size: clamp(0.82rem, 0.8rem + 0.2vw, 0.95rem) !important;
            min-height: 40px;
            display: inline-flex;
            align-items: center;
            color: var(--primary-ink);
        }

            nav a.btn:hover {
                color: var(--primary-ink);
                filter: brightness(1.1);
            }

/* Phones & small tablets: hide the subtitle, tighten the nav */
@media (max-width: 720px) {
    .brand .t span {
        display: none;
    }

    nav {
        gap: 12px;
    }
}

/* Phones: brand on the first row, nav on its own row (no sticky, saves screen space) */
@media (max-width: 480px) {
    header {
        position: relative;
    }

        header .in {
            flex-wrap: wrap;
            padding-top: 8px;
            padding-bottom: 8px;
            row-gap: 8px;
        }

    nav {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--line);
        padding-top: 8px;
        gap: 8px;
    }

        nav a {
            font-size: 0.85rem;
        }
}

/* FOOTER */
footer {
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: clamp(28px, 6vw, 48px) 0 clamp(18px, 3vw, 24px);
    margin-top: clamp(32px, 6vw, 60px);
}

.ft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 4vw, 32px);
    margin-bottom: clamp(20px, 4vw, 32px);
}

    .ft-grid > * {
        min-width: 0;
    }

/* Tablet: first column spans the full width, two link columns below */
@media (min-width: 600px) {
    .ft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .ft-grid > :first-child {
            grid-column: 1 / -1;
        }
}

/* Desktop */
@media (min-width: 900px) {
    .ft-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

        .ft-grid > :first-child {
            grid-column: auto;
        }
}

.ft-col h4 {
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
    color: var(--ink);
    margin: 0 0 clamp(10px, 2vw, 16px);
    font-weight: 700;
}

.ft-col p, .ft-col a {
    color: var(--muted);
    font-size: var(--m-fs-sm);
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

    .ft-col a:hover {
        color: var(--primary);
    }

.ft-bot {
    border-top: 1px solid var(--line);
    padding-top: clamp(16px, 3vw, 24px);
    text-align: center;
    color: var(--muted);
    font-size: clamp(0.74rem, 0.72rem + 0.15vw, 0.85rem);
    line-height: 1.55;
}

    .ft-bot p {
        margin: 0 0 8px;
    }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
