/* ============================================================
   Smart SKR — Tibbett & Britten Unique AG
   Brand palette: Royal Blue (#304090) derived from client logo
   Font: Inter (body) + Fraunces (display numerals)
   ============================================================ */

:root {
    --blue: #304090;
    --blue-50: #EEF1F9;
    --blue-100: #DCE2F3;
    --blue-200: #B9C4E7;
    --blue-300: #8B9CD4;
    --blue-400: #5E72BE;
    --blue-500: #4A5EB0;
    --blue-600: #3A4D9E;
    --blue-700: #2E3F85;
    --blue-800: #223067;
    --blue-900: #17214A;
    --blue-950: #0E1530;

    --white: #FFFFFF;
    --off-white: #F6F7FB;
    --text: #232A3A;
    --text-muted: #5A6375;
    --border: #E4E8F0;

    --shadow-sm: 0 2px 8px rgba(48, 64, 144, 0.08);
    --shadow-md: 0 8px 30px rgba(48, 64, 144, 0.12);
    --shadow-lg: 0 16px 50px rgba(48, 64, 144, 0.18);
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.brand-accent {
    color: var(--blue);
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.22rem;
    color: var(--blue-900);
    letter-spacing: -0.02em;
}

.brand-mark {
    height: 38px;
    width: auto;
}

.brand-text {
    display: inline-flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--blue-800);
    background: var(--blue-50);
}

.nav-link.active {
    color: var(--blue);
    background: var(--blue-50);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue-900);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(94, 114, 190, 0.35), transparent 60%),
        linear-gradient(180deg, var(--blue-900) 0%, var(--blue-950) 100%);
    color: var(--white);
    padding: 96px 24px 110px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(139, 156, 212, 0.5);
    color: var(--blue-200);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6EE7A0;
    box-shadow: 0 0 0 4px rgba(110, 231, 160, 0.15);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.text-accent {
    color: var(--blue-300);
}

.hero-sub {
    font-size: 1.14rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 52px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-family: 'Fraunces', serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--white);
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 8px;
    display: block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-600);
    border-color: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(48, 64, 144, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: var(--blue-300);
    color: var(--blue-200);
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
    padding: 88px 24px;
}

.section--alt {
    background: var(--off-white);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue-900);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ---------- Feature cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--blue);
}

.step-num {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Video hero card ---------- */
.video-card {
    background: var(--blue-950);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.video-card-frame {
    position: relative;
}

.video-card-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(14, 21, 48, 0.8);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: 999px;
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(94, 114, 190, 0.35), transparent 60%),
        var(--blue-900);
    padding: 80px 24px;
    color: var(--white);
    text-align: center;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--blue-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-mark {
    height: 40px;
    width: auto;
}

.footer-title {
    color: var(--white);
    font-weight: 800;
    font-size: 1.15rem;
    display: block;
}

.footer-tag {
    margin-top: 4px;
    font-size: 0.88rem;
}

.footer-meta {
    text-align: right;
    font-size: 0.9rem;
}

.footer-fine {
    margin-top: 4px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 64px 20px 80px;
    }

    .hero-stats {
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-meta {
        text-align: center;
    }
}
