/* ============================================================
   QINECT — Main Stylesheet  v1.0
   Fonts: Sora (headings) · Inter (body) — via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');


/* ── Custom Properties ─────────────────────────────────── */
:root {
    /* Brand */
    --dark:   #111229;
    --purple: #6049cd;
    --aqua:   #29e1ec;
    --white:  #ffffff;

    /* Extended palette */
    --dark-05:     rgba(17, 18, 41, 0.05);
    --dark-20:     rgba(17, 18, 41, 0.20);
    --dark-60:     rgba(17, 18, 41, 0.60);
    --dark-90:     rgba(17, 18, 41, 0.90);
    --purple-10:   rgba(96, 73, 205, 0.10);
    --purple-20:   rgba(96, 73, 205, 0.20);
    --purple-dark: #4e39b5;
    --aqua-10:     rgba(41, 225, 236, 0.10);
    --aqua-dark:   #1ec8d3;
    --light-bg:    #f4f5fb;
    --border:      #e0e2f0;
    --muted:       #6a6d90;
    --page-bg:     #0a0b18;  /* footer / very dark backgrounds */

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Layout */
    --container:  1300px;
    --header-h:   80px;

    /* Radius */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  24px;
    --r-xl:  40px;

    /* Transitions */
    --ease:      0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--purple);
    text-decoration: none;
    transition: color var(--ease);
}
a:hover { color: var(--aqua); }

ul { list-style: none; }

/* ── Accessibility ──────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100px; left: 0;
    background: var(--purple);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    z-index: 9999;
    border-radius: 0 0 var(--r-sm) 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { line-height: 1.72; }

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section        { padding: 7rem 0; }
.section--alt   { background: var(--light-bg); }
.section--dark  { background: var(--dark); color: var(--white); }

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4.5rem;
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1.1rem; }
.section-header .lead { margin: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.9rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ease);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}

.btn--primary {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}
.btn--primary:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(96, 73, 205, 0.38);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline-white:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--aqua {
    background: var(--aqua);
    color: var(--dark);
    border-color: var(--aqua);
}
.btn--aqua:hover {
    background: var(--aqua-dark);
    border-color: var(--aqua-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(41, 225, 236, 0.38);
}

.btn--lg { padding: 1rem 2.4rem; font-size: 1rem; }

.btn svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Header ─────────────────────────────────────────────── */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: height var(--ease), border-color var(--ease), box-shadow var(--ease);
}

/* Once scrolled past the hero: same dark background, subtle elevation */
#main-header.scrolled {
    border-bottom-color: rgba(41, 225, 236, 0.2);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo — single white version; header is always dark */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.header-logo img {
    height: 34px;
    width: auto;
    display: block;
    transition: filter 0.25s ease;
}
/* On hover: convert entire logo to aqua (#29e1ec).
   brightness(0) → black; the chain below brings it to #29e1ec. */
.header-logo:hover img {
    filter: brightness(0) invert(54%) sepia(100%) hue-rotate(146deg) saturate(300%) brightness(107%);
}

/* Desktop nav — white text always, aqua hover/active underline */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.header-nav > a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 3px;
    transition: color var(--ease);
}
.header-nav > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--aqua);
    border-radius: 2px;
    transition: width var(--ease);
}
.header-nav > a:hover,
.header-nav > a.active { color: var(--aqua); }
.header-nav > a:hover::after,
.header-nav > a.active::after { width: 100%; }

.header-nav .btn--primary {
    padding: 0.5rem 1.3rem;
    font-size: 0.83rem;
    margin-left: 0.8rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--r-sm);
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transition: all var(--ease);
}
#main-header.scrolled .hamburger span { background: var(--dark); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color var(--ease);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--aqua); }
.mobile-nav .btn {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/heros/hero_2026-03-01_1119.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(17, 18, 41, 0.25) 0%,
        rgba(17, 18, 41, 0.05) 40%,
        rgba(17, 18, 41, 0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 940px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.3s ease forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.5s ease forwards;
}
.hero-title .accent { color: var(--aqua); }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 2.8rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.7s ease forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s 0.9s ease forwards;
}

/* Scroll cue */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s 1.4s ease forwards;
}
.scroll-chevron {
    width: 22px; height: 22px;
    border-right: 2px solid rgba(255,255,255,0.35);
    border-bottom: 2px solid rgba(255,255,255,0.35);
    transform: rotate(45deg);
    animation: chevronBounce 2.2s ease-in-out infinite;
}

/* ── About ──────────────────────────────────────────────── */
.about { padding: 7rem 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Video placeholder */
.about-video-wrap {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--dark);
    box-shadow: 0 30px 80px rgba(17, 18, 41, 0.2);
}
.video-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: linear-gradient(145deg, #131430 0%, #1c1e4a 60%, #0f102a 100%);
    position: relative;
    overflow: hidden;
}
.video-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 75% 35%, rgba(41,225,236,0.18), transparent),
        radial-gradient(ellipse 50% 60% at 25% 65%, rgba(96,73,205,0.25), transparent);
}
.play-btn {
    position: relative;
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ease);
    backdrop-filter: blur(8px);
}
.play-btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(96,73,205,0.5);
}
.play-btn svg { width: 26px; height: 26px; fill: white; margin-left: 4px; }
.video-caption {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    position: relative;
    text-transform: uppercase;
}

/* About text */
.about-content .eyebrow { margin-bottom: 0.85rem; }
.about-content h2 { margin-bottom: 1.3rem; }
.about-content > .lead { margin-bottom: 2rem; }

.feature-list { display: flex; flex-direction: column; gap: 1.1rem; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
.feature-bullet {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--aqua-10);
    border: 1.5px solid rgba(41, 225, 236, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.feature-bullet svg {
    width: 13px; height: 13px;
    stroke: var(--aqua);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-item p {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--dark);
    margin: 0;
}
.feature-item p strong { font-weight: 600; color: var(--dark); }

/* ── Learning Cycle ─────────────────────────────────────── */
.learning-cycle { padding: 7rem 0; background: var(--light-bg); }

.cycle-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.cycle-step {
    flex: 1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--r-md);
    margin: 0 0.75rem;
    box-shadow: 0 4px 24px rgba(17,18,41,0.06);
    transition: transform var(--ease), box-shadow var(--ease);
    position: relative;
}
.cycle-step:first-child { margin-left: 0; }
.cycle-step:last-child  { margin-right: 0; }
.cycle-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(17,18,41,0.10);
}

.cycle-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    flex-shrink: 0;
    color: var(--purple-20);
}
.cycle-connector svg {
    width: 22px; height: 22px;
    stroke: var(--purple);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.4;
}

.cycle-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
}
.cycle-num-1 { background: linear-gradient(135deg, var(--purple), #6e58e0); box-shadow: 0 8px 24px rgba(96,73,205,0.35); }
.cycle-num-2 { background: linear-gradient(135deg, #5240bc, #7060e0); box-shadow: 0 8px 24px rgba(96,73,205,0.28); }
.cycle-num-3 { background: linear-gradient(135deg, #4838a8, #2ab5c5); box-shadow: 0 8px 24px rgba(41,181,197,0.28); }
.cycle-num-4 { background: linear-gradient(135deg, #25c5d5, var(--aqua)); box-shadow: 0 8px 24px rgba(41,225,236,0.32); }

.cycle-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: none; /* using number instead */
}

.cycle-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--dark);
}
.cycle-step p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Clients ─────────────────────────────────────────────── */
.clients { padding: 5.5rem 0; background: var(--white); }

.clients-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3rem;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem 4rem;
}

.client-logo {
    height: 44px;
    display: flex;
    align-items: center;
    opacity: 0.35;
    filter: grayscale(100%);
    transition: opacity var(--ease), filter var(--ease);
}
.client-logo:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}
.client-logo img, .client-logo svg {
    max-height: 44px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
}

/* ── CTA section ────────────────────────────────────────── */
.cta-section {
    background: var(--dark);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 65%; height: 180%;
    background: radial-gradient(ellipse, rgba(96,73,205,0.28) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 50%; height: 160%;
    background: radial-gradient(ellipse, rgba(41,225,236,0.13) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-inner .eyebrow { color: var(--aqua); margin-bottom: 1.4rem; }
.cta-inner h2 {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 1.3rem;
}
.cta-inner p {
    color: rgba(255,255,255,0.68);
    font-size: 1.1rem;
    line-height: 1.72;
    margin-bottom: 2.8rem;
}
.cta-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.cta-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
    background: var(--page-bg);
    padding: 5rem 0 2.5rem;
    color: rgba(255,255,255,0.65);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo { height: 30px; width: auto; margin-bottom: 1.4rem; opacity: 0.85; }
.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    max-width: 270px;
    margin-bottom: 1.8rem;
}

.social-links { display: flex; gap: 0.75rem; }
.social-link {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--ease);
    text-decoration: none;
}
.social-link:hover {
    border-color: var(--aqua);
    color: var(--aqua);
    background: rgba(41,225,236,0.08);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.3rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--ease);
    text-decoration: none;
}
.footer-col ul a:hover { color: var(--aqua); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}
.footer-bottom a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color var(--ease);
}
.footer-bottom a:hover { color: var(--aqua); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes chevronBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50%       { transform: rotate(45deg) translate(3px, 3px); opacity: 0.85; }
}

/* Scroll-triggered fade in */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Inner-page hero (dark, matching home) ──────────────── */
.page-hero {
    padding-top: calc(var(--header-h) + 5rem);
    padding-bottom: 5rem;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -60%; right: -15%;
    width: 55%; height: 220%;
    background: radial-gradient(ellipse, rgba(96,73,205,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -8%;
    width: 45%; height: 160%;
    background: radial-gradient(ellipse, rgba(41,225,236,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow   { color: var(--aqua); margin-bottom: 1rem; }
.page-hero h1         { color: var(--white); margin-bottom: 1.2rem; }
.page-hero .lead      { color: rgba(255,255,255,0.72); max-width: 640px; }

.coming-soon {
    padding: 7rem 0;
    text-align: center;
}
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--purple-10);
    border: 1px solid var(--purple-20);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 2rem;
}
.coming-soon h2 { margin-bottom: 1rem; }
.coming-soon p  { color: var(--muted); max-width: 500px; margin: 0 auto 2.5rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .about-grid { gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .cycle-flow { flex-direction: column; align-items: stretch; gap: 1rem; }
    .cycle-connector { display: none; }
    .cycle-step { margin: 0; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .header-nav { display: none; }
    .hamburger  { display: flex; }

    .section { padding: 4.5rem 0; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .clients-logos { gap: 2rem 2.5rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal  { justify-content: center; }
}

/* ── Content sections (shared by News, Articles, Events, Products) ── */

.content-section {
    padding: 2rem 0 2.5rem;
    background: var(--white);
}

.empty-content {
    text-align: center;
    padding: 4rem 0;
    color: var(--muted);
}
.empty-content p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Article / news listing — stacked list with thumbnail + separator lines */
.article-grid {
    display: flex;
    flex-direction: column;
}

.article-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 2.25rem 0;
    border-bottom: 2px solid var(--dark);
}
.article-card:first-child { border-top: 2px solid var(--dark); }

/* Square thumbnail */
.article-card__thumb {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
}
.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--ease);
}
.article-card:hover .article-card__thumb img { transform: scale(1.04); }

/* Text column */
.article-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-card__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.article-card__meta time { color: var(--aqua-dark); font-weight: 500; }
.article-card__meta .article-card__author::before { content: '·'; margin-right: 0.75rem; }

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}
.article-card__title a {
    color: var(--dark);
    text-decoration: none;
    transition: color var(--ease);
}
.article-card__title a:hover { color: var(--purple); }

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--dark-60);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    margin-top: auto;
    transition: color var(--ease);
}
.article-card__link:hover { color: var(--aqua-dark); }

/* Article category badge */
.article-card__category {
    background: var(--purple);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2em 0.6em;
    border-radius: 3px;
}

/* Events: location + past badge */
.article-card__location {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
}
.article-card__past-badge {
    background: var(--border);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2em 0.6em;
    border-radius: 3px;
}
.article-card--past { opacity: 0.72; }

/* Products: features list on listing card */
.product-card__features {
    list-style: none;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.product-card__features li {
    font-size: 0.85rem;
    color: var(--dark-60);
    padding-left: 1rem;
    position: relative;
}
.product-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--aqua-dark);
    font-weight: 700;
}

/* Single article — category badge in hero */
.article-category-badge {
    background: rgba(255,255,255,0.15);
    color: var(--aqua);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25em 0.75em;
    border-radius: 3px;
    border: 1px solid rgba(41,225,236,0.3);
}

/* Product page: features block */
.product-features-block {
    max-width: 780px;
    margin: 2.5rem auto 0;
}
.product-features-block h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
.product-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.6rem 2rem;
}
.product-features-list li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--dark);
    line-height: 1.6;
}
.product-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--aqua-dark);
    font-weight: 700;
}

/* Event page: register CTA */
.event-register-cta {
    margin: 2.5rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Article footer: multiple buttons */
.article-footer { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Single article */
.page-hero--article { padding-bottom: 3.5rem; }

.back-link--light {
    display: inline-block;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color var(--ease);
}
.back-link--light:hover { color: var(--aqua); }

.article-hero__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}
.article-hero__meta time { color: var(--aqua); font-weight: 500; }

/* Featured image at top of article */
.article-featured-img {
    max-width: 780px;
    margin: 0 auto 2.5rem;
}
.article-featured-img img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    display: block;
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
}
.article-body h2, .article-body h3, .article-body h4 {
    font-family: var(--font-heading);
    margin: 2rem 0 0.75rem;
    color: var(--dark);
}
.article-body h2 { font-size: 1.55rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
    margin: 0 0 1.25rem 1.5rem;
    line-height: 1.75;
}
.article-body a { color: var(--purple); }
.article-body a:hover { color: var(--aqua-dark); }
.article-body img { max-width: 100%; border-radius: var(--r-sm); margin: 1.5rem 0; }
.article-body blockquote {
    border-left: 4px solid var(--aqua);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-style: italic;
    background: var(--aqua-10);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.article-footer {
    max-width: 780px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: border-color var(--ease), color var(--ease);
}
.btn--outline:hover { border-color: var(--purple); color: var(--purple); }

/* Responsive: article list */
@media (max-width: 640px) {
    .article-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.75rem 0;
    }
    .article-card__thumb { width: 100%; height: 200px; }
    .article-body { font-size: 1rem; }
}

/* ── Nav: AskQ badge ─────────────────────────────────────── */
.nav-askq {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-ai-badge {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--aqua), var(--purple));
    color: var(--dark);
    padding: 0.15em 0.45em;
    border-radius: 3px;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.5;
}

/* ── AskQ page ───────────────────────────────────────────── */

/* Compact hero for the chat page */
.page-hero--ask { padding: 2.5rem 0 2rem; }

.ask-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.ask-hero-badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: rgba(41,225,236,0.12);
    border: 1px solid rgba(41,225,236,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aqua);
    animation: askBadgePulse 3s ease-in-out infinite;
}
@keyframes askBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(41,225,236,0.25); }
    50%       { box-shadow: 0 0 0 12px rgba(41,225,236,0); }
}

/* Chat section */
.ask-section {
    background: var(--light-bg);
    padding: 0 0 3rem;
}

.ask-shell {
    display: flex;
    flex-direction: column;
    height: clamp(480px, 62vh, 740px);
    background: var(--white);
    border-radius: var(--r-md);
    box-shadow: 0 8px 48px rgba(17,18,41,0.10);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Messages list */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* Message row */
.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
}
.chat-row--user { flex-direction: row-reverse; }

/* Avatar (AI only) */
.chat-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}
.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Bubbles */
.chat-bubble {
    max-width: 72%;
    line-height: 1.65;
    font-size: 0.95rem;
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    word-wrap: break-word;
}
.chat-bubble--ai {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--dark);
}
.chat-bubble--ai p             { margin: 0 0 0.6rem; }
.chat-bubble--ai p:last-child  { margin-bottom: 0; }
.chat-bubble--ai ul            { margin: 0.4rem 0 0.6rem 1.2rem; }
.chat-bubble--ai li            { margin-bottom: 0.25rem; }
.chat-bubble--user {
    background: var(--purple);
    color: var(--white);
    border-bottom-right-radius: 4px;
    white-space: pre-wrap;
}
.chat-error { color: #a01414; font-style: italic; }

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.85rem 1.1rem;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}
.chat-typing span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    animation: typingDot 1.3s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
    30%            { transform: translateY(-5px); opacity: 1;   }
}

/* Input bar */
.chat-input-bar {
    border-top: 1px solid var(--border);
    padding: 0.85rem 1.25rem 1rem;
    background: var(--white);
}
.chat-input-bar form {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}
#chat-input {
    flex: 1;
    resize: none;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--light-bg);
    outline: none;
    max-height: 140px;
    overflow-y: auto;
    line-height: 1.5;
    transition: border-color var(--ease);
}
#chat-input:focus { border-color: var(--purple); background: var(--white); }
#chat-input::placeholder { color: var(--muted); opacity: 0.8; }

#chat-send {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), transform var(--ease);
}
#chat-send:hover   { background: var(--purple-dark); transform: scale(1.06); }
#chat-send:active  { transform: scale(0.96); }
#chat-send:disabled { background: var(--border); cursor: not-allowed; transform: none; }

.chat-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
    text-align: center;
}
.chat-hint kbd {
    font-family: var(--font-body);
    font-size: 0.72rem;
    background: var(--border);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}
.chat-hint a { color: var(--purple); }

/* Contact success: AskQ CTA */
.contact-success__sub {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.75rem;
}
.contact-success__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Responsive AskQ */
@media (max-width: 640px) {
    .ask-hero-inner { flex-direction: column; align-items: flex-start; }
    .ask-hero-badge { display: none; }
    .chat-bubble { max-width: 88%; font-size: 0.9rem; }
    .ask-shell { height: clamp(400px, 70vh, 600px); border-radius: var(--r-sm); }
}

/* ── Enrol page ──────────────────────────────────────────── */

.page-hero--enrol { background: var(--dark); }

/* Type key bar */
.enrol-key-bar {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.enrol-key {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--muted);
}
.enrol-key__item { display: flex; align-items: center; gap: 0.4rem; }
.enrol-key__icon { flex-shrink: 0; }

/* Type colour accents */
.type--course     { color: var(--aqua); }
.type--roleplay   { color: var(--purple); }
.type--simulation { color: #e06b2e; }

/* Free badge */
.free-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    background: var(--aqua);
    color: var(--dark);
    line-height: 1;
}
.free-badge--sm { font-size: 0.68rem; padding: 0.15rem 0.5rem; }

/* Grid */
.enrol-section { background: var(--light-bg); }

.enrol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Card */
.enrol-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--ease), transform var(--ease);
}
.enrol-card:hover {
    box-shadow: 0 16px 50px rgba(17,18,41,0.1);
    transform: translateY(-3px);
}

/* Square image area */
.enrol-card__img {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.enrol-card__img.type--course {
    background: linear-gradient(140deg, #0d2a2c 0%, #0e3b3f 60%, #091f22 100%);
}
.enrol-card__img.type--course::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 70% at 60% 40%, rgba(41,225,236,0.25), transparent);
}
.enrol-card__img.type--roleplay {
    background: linear-gradient(140deg, #1a1140 0%, #231660 60%, #130d30 100%);
}
.enrol-card__img.type--roleplay::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 70% at 60% 40%, rgba(96,73,205,0.4), transparent);
}
.enrol-card__img.type--simulation {
    background: linear-gradient(140deg, #2a1500 0%, #3d1e00 60%, #1f1000 100%);
}
.enrol-card__img.type--simulation::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 70% at 60% 40%, rgba(224,107,46,0.3), transparent);
}
.enrol-card__img svg {
    position: relative;
    opacity: 0.6;
    color: #fff;
    width: 56px; height: 56px;
}
.enrol-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.enrol-card__img .free-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

/* Card body */
.enrol-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.enrol-card__type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}
.enrol-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--dark);
    line-height: 1.3;
}
.enrol-card__desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}
.enrol-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
    transition: gap var(--ease), color var(--ease);
    margin-top: auto;
}
.enrol-card__link:hover { color: var(--aqua-dark); gap: 0.65rem; }

/* Responsive */
@media (max-width: 960px) {
    .enrol-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .enrol-grid { grid-template-columns: 1fr; }
    .enrol-key  { gap: 1rem; }
}

/* Empty state */
.enrol-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 1rem;
    color: var(--muted);
    text-align: center;
}
.enrol-empty svg { opacity: 0.35; }
.enrol-empty p   { font-size: 1rem; }

/* Pagination */
.enrol-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem 0 0.5rem;
}
.enrol-pag__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.enrol-pag__btn:hover:not(:disabled) {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}
.enrol-pag__btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.enrol-pag__info {
    font-size: 0.9rem;
    color: var(--muted);
    min-width: 3.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ── Our Story page ──────────────────────────────────────── */

.page-hero--our-story { background: var(--dark); }

/* Founder split */
.story-founder { padding: 6rem 0; }

.story-founder-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 5rem;
    align-items: center;
}

.story-photo-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(17,18,41,0.22), 0 0 0 1px rgba(255,255,255,0.06);
    aspect-ratio: 1 / 1;
    position: relative;
}
.story-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    box-shadow: inset 0 0 0 1px rgba(41,225,236,0.15);
    pointer-events: none;
}
.story-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-founder-content .eyebrow { margin-bottom: 0.6rem; }
.story-founder-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.3rem;
    line-height: 1.1;
}
.story-founder-title {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--aqua);
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}
.story-founder-content .lead {
    margin-bottom: 1.2rem;
}
.story-founder-content p:not(.lead):not(.story-founder-title) {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.story-founder-links { display: flex; gap: 1rem; }
.story-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1.5px solid rgba(96,73,205,0.35);
    border-radius: 2rem;
    transition: all var(--ease);
}
.story-social-link:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

/* Values */
.story-values { padding: 6rem 0; }

.story-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.story-value-card {
    background: var(--white);
    border: 1px solid rgba(17,18,41,0.08);
    border-radius: var(--r-lg);
    padding: 2.25rem 2rem;
    transition: box-shadow var(--ease), transform var(--ease);
}
.story-value-card:hover {
    box-shadow: 0 20px 60px rgba(17,18,41,0.1);
    transform: translateY(-4px);
}
.story-value-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--aqua-10);
    border: 1.5px solid rgba(41,225,236,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aqua);
    margin-bottom: 1.4rem;
}
.story-value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--dark);
}
.story-value-card p {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* CTA */
.story-cta { padding: 6rem 0; }

.story-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.story-cta-inner h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}
.story-cta-inner p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 2.2rem;
    font-size: 1.05rem;
}
.story-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .story-founder-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .story-photo-wrap {
        max-width: 380px;
        margin: 0 auto;
    }
    .story-values-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
    .story-founder  { padding: 4rem 0; }
    .story-values   { padding: 4rem 0; }
    .story-cta      { padding: 4rem 0; }
}

/* ── Contact page ────────────────────────────────────────── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

/* Form card */
.contact-form-card {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 2.5rem;
    box-shadow: 0 4px 32px rgba(17,18,41,0.08);
    border: 1px solid var(--border);
}

/* Form fields */
.field-group { margin-bottom: 1.5rem; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.field-label {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}
.field-required { color: var(--purple); margin-left: 1px; }

.field-input,
.field-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
    -webkit-appearance: none;
}
.field-input:focus,
.field-textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-10);
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* CAPTCHA */
.captcha-group .field-label { margin-bottom: 0.45rem; }
.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.captcha-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    background: var(--light-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.72rem 1rem;
}
.captcha-input { width: 100px; flex-shrink: 0; }
/* remove number spinners */
.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input { -moz-appearance: textfield; }

/* Privacy box */
.privacy-box {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 0.85rem;
}
.privacy-box strong { color: var(--dark); }
.privacy-box a { color: var(--purple); }

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--dark);
    line-height: 1.5;
}
.privacy-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--purple);
    cursor: pointer;
}

/* Honeypot — visually hidden */
.cf-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit row */
.field-submit { margin-top: 1.75rem; }
.btn--lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* Alert (validation errors) */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff3f3;
    border: 1.5px solid #f5c6c6;
    border-radius: var(--r-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    color: #a01414;
    font-size: 0.9rem;
    line-height: 1.5;
}
.contact-alert svg { flex-shrink: 0; margin-top: 1px; }
.contact-alert ul { margin: 0.35rem 0 0 1.1rem; }
.contact-alert li + li { margin-top: 0.25rem; }

/* Success state */
.contact-success {
    text-align: center;
    padding: 3rem 1.5rem;
}
.contact-success__icon {
    width: 64px;
    height: 64px;
    background: rgba(41,225,236,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--aqua-dark);
}
.contact-success h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}
.contact-success p { color: var(--muted); font-size: 1rem; }

/* Info panel */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-info-card {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(17,18,41,0.07);
    border: 1px solid var(--border);
}
.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.4;
}
.contact-info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--purple-10);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
}
.contact-info-list a { color: var(--purple); text-decoration: none; }
.contact-info-list a:hover { color: var(--purple-dark); text-decoration: underline; }

.contact-info-card--accent {
    background: var(--dark);
    border-color: transparent;
}
.contact-response-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}
.contact-response-note svg { flex-shrink: 0; color: var(--aqua); }

/* Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-info-card { flex: 1; min-width: 220px; }
}
@media (max-width: 560px) {
    .contact-form-card { padding: 1.75rem 1.25rem; }
    .field-row { grid-template-columns: 1fr; }
    .captcha-row { flex-wrap: wrap; }
    .contact-info-panel { flex-direction: column; }
}

/* ── End content sections ── */

@media (max-width: 520px) {
    :root { --container: 100%; }
    .container { padding: 0 1.25rem; }
    .hero-title { font-size: 2.8rem; letter-spacing: -0.03em; }
    .hero-cta   { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Legal / Policy pages ────────────────────────────────── */

.page-hero--legal { background: var(--dark); }

.legal-section {
    background: var(--white);
    padding: 1.75rem 0;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
}

.legal-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2.5rem 0 0.75rem;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.75rem 0 0.6rem;
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--purple);
    text-decoration: underline;
}
.legal-content a:hover { color: var(--dark); }

/* Cookie table */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cookie-table th {
    background: var(--light-bg);
    text-align: left;
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.cookie-table td {
    padding: 0.7rem 1rem;
    color: var(--body);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
}

.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table tbody tr:hover td { background: var(--light-bg); }

.legal-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: var(--purple);
    white-space: nowrap;
}

/* ── Cookie Consent Banner ───────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #1a1b38;
    border-top: 1px solid rgba(96, 73, 205, 0.35);
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.35s ease;
}
.cookie-banner.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.cookie-banner__text {
    flex: 1;
}
.cookie-banner__text strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.cookie-banner__text p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}
.cookie-banner__link {
    color: var(--aqua);
    text-decoration: underline;
}
.cookie-banner__link:hover { color: #fff; }
.cookie-banner__actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.cookie-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.65);
}
.cookie-btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.cookie-btn--accept {
    background: var(--purple);
    border: 1px solid var(--purple);
    color: #fff;
}
.cookie-btn--accept:hover {
    background: var(--aqua);
    border-color: var(--aqua);
    color: var(--dark);
}

/* Footer "Cookie Settings" button styled as a text link */
.footer-legal-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity var(--ease), color var(--ease);
}
.footer-legal-btn:hover {
    opacity: 1;
    color: var(--aqua);
}

@media (max-width: 680px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.1rem 1.25rem;
    }
    .cookie-banner__actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}

