/* ============================================================
   CREDECENT LAB — Stylesheet
   Colors: Navy #0f2b52 · Teal #5ec4aa
   Font: Inter (Google Fonts)
   ============================================================ */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
    --navy:          #0f2b52;
    --navy-light:    #1a3d70;
    --teal:          #5ec4aa;
    --teal-hover:    #4aaf96;
    --teal-pale:     #f0faf7;
    --white:         #ffffff;
    --off-white:     #f8fafc;
    --grey-light:    #eef2f7;
    --grey:          #94a3b8;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        #e2e8f0;

    --font:          'DM Sans', system-ui, -apple-system, sans-serif;

    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     16px;
    --radius-full:   9999px;

    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
    --shadow:        0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 16px 48px rgba(0,0,0,0.12);

    --transition:    200ms ease;
    --transition-md: 350ms ease;

    --nav-height:    72px;
    --container:     1200px;
    --section-py:    100px;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--text-muted); }

/* ─── UTILITIES ─────────────────────────────────────────────── */
.text-teal       { color: var(--teal); }
.text-white      { color: var(--white) !important; }
.text-white-muted{ color: rgba(255,255,255,0.65) !important; }

.bg-white        { background: var(--white); }
.bg-pale         { background: var(--teal-pale); }
.bg-navy         { background: var(--navy); }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

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

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

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

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

.btn--ghost-white {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border-color: transparent;
    font-weight: 500;
}
.btn--ghost-white:hover {
    color: var(--white);
}

.btn--teal-ghost {
    background: rgba(94, 196, 170, 0.15);
    color: var(--teal);
    border: 1px solid rgba(94, 196, 170, 0.3);
}
.btn--teal-ghost:hover {
    background: rgba(94, 196, 170, 0.25);
    border-color: rgba(94, 196, 170, 0.6);
}

/* ─── BADGE & EYEBROW ───────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(94, 196, 170, 0.15);
    color: var(--teal);
    border: 1px solid rgba(94, 196, 170, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}
.eyebrow--teal { color: var(--teal); }

/* ─── SECTION ───────────────────────────────────────────────── */
.section {
    padding: var(--section-py) 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ─── GRID ──────────────────────────────────────────────────── */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ─── HEADER / NAV ──────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--transition-md), box-shadow var(--transition-md);
}

/* Transparent on hero */
.header--transparent {
    background: transparent;
}

/* Solid when scrolled */
.header--scrolled {
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav__brand {
    flex-shrink: 0;
    position: relative;
    height: 32px;
}

.nav__logo {
    height: 32px;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-md);
}

/* Show color logo on transparent (hero) nav — hero is now light */
.header--transparent .nav__logo--color  { opacity: 1; }
.header--transparent .nav__logo--white  { opacity: 0; }

/* Show color logo on scrolled nav */
.header--scrolled .nav__logo--color     { opacity: 1; }
.header--scrolled .nav__logo--white     { opacity: 0; }

/* Default to color logo for non-JS case */
.nav__logo--color { opacity: 1; }
.nav__logo--white { opacity: 0; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}

.header--transparent .nav__link {
    color: var(--text-muted);
}

.nav__link:hover {
    color: var(--navy);
    background: none;
}

.header--transparent .nav__link:hover {
    color: var(--navy);
    background: none;
}

.nav__cta {
    padding: 0.55rem 1.25rem;
    background: var(--teal);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
    margin-left: 0.5rem;
    cursor: pointer;
}

.nav__cta:hover {
    background: var(--teal-hover);
    transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header--transparent .nav__toggle span { background: var(--navy); }

.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(94, 196, 170, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__inner {
    max-width: 560px;
}

.hero__stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    transition: box-shadow var(--transition);
}

.hero__stat:hover {
    box-shadow: 0 4px 20px rgba(15, 43, 82, 0.08);
}

.hero__stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero__stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero__stat-source {
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 0.35rem;
}

.hero__headline {
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__headline--teal {
    color: var(--teal);
}

.hero__body {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 3rem;
    color: var(--grey);
    transition: color var(--transition);
    animation: bounce 2s ease infinite;
    align-self: center;
}

.hero__scroll:hover { color: var(--navy); }

.hero__divider {
    height: 1px;
    background: rgba(15, 43, 82, 0.1);
    margin: 3rem 0 2.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ─── PROBLEM CARDS ─────────────────────────────────────────── */
.card--outlined {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card--outlined:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-pale);
    border-radius: var(--radius);
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.card--outlined h3 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

/* ─── FEATURES GRID ─────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--teal);
    box-shadow: var(--shadow-sm);
}

.feature h3 {
    margin-bottom: 0.4rem;
    color: var(--navy);
}

/* ─── HOW IT WORKS ──────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Connecting line */
.steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.step {
    position: relative;
    text-align: center;
    padding-top: 0.5rem;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 1rem;
}

.step p { font-size: 0.9rem; }

/* ─── ASSET CARDS ───────────────────────────────────────────── */
.asset-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.asset-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(94, 196, 170, 0.4);
    transform: translateY(-3px);
}

.asset-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(94, 196, 170, 0.12);
    border-radius: var(--radius);
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.asset-card h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.asset-card p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── MARKET OPPORTUNITY ────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.two-col__text h2 { margin-bottom: 1rem; }
.two-col__text p  { margin-bottom: 1.5rem; }

.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--teal);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 3px;
}

.stats-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stat {
    padding: 1.75rem;
    border-top: 1px solid var(--border);
}

.stat:last-child { border-bottom: 1px solid var(--border); }

.stat__value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.stat__label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.stat__source {
    font-size: 0.78rem;
    color: var(--grey);
    margin-top: 0.2rem;
    display: block;
}

/* ─── TIMELINE / ROADMAP ────────────────────────────────────── */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(12.5% + 1.5rem);
    right: calc(12.5% + 1.5rem);
    height: 1px;
    background: var(--border);
}

.timeline__item {
    position: relative;
    padding-top: 2.5rem;
}

.timeline__marker {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--border);
    z-index: 1;
}

.timeline__item--active .timeline__marker {
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(94, 196, 170, 0.25);
}

.timeline__phase {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: 0.4rem;
    display: block;
}

.timeline__item--active .timeline__phase { color: var(--teal); }
.timeline__item:not(.timeline__item--active) .timeline__phase { color: var(--grey); }

.timeline__content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.timeline__content p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ─── COLLABORATION CARDS ───────────────────────────────────── */
.collab-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

.collab-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.collab-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--teal-pale);
    color: var(--teal);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.collab-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.collab-card p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.collab-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.collab-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    position: relative;
}

.collab-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

/* ─── ABOUT / FOUNDER ───────────────────────────────────────── */
.founder {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.founder__photo-wrap {
    flex-shrink: 0;
}

.founder__photo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.founder__photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.founder__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.founder__text h2 { margin-bottom: 0.25rem; }

.founder__text p {
    margin-bottom: 1rem;
    font-size: 0.975rem;
}

.founder__email {
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 500;
    transition: opacity var(--transition);
}

.founder__email:hover { opacity: 0.75; }

/* ─── CONTACT SECTION ───────────────────────────────────────── */
.contact-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.contact-inner h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-inner p {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
    background: #091d38;
    padding: 2.5rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer__brand {
    flex-shrink: 0;
}

.footer__logo {
    height: 26px;
    width: auto;
}

.footer__wordmark {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: -0.01em;
}

.footer__copy {
    font-size: 0.825rem;
    color: rgba(255,255,255,0.35);
}

.footer__nav {
    display: flex;
    gap: 1.5rem;
}

.footer__link {
    font-size: 0.825rem;
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
}

.footer__link:hover { color: rgba(255,255,255,0.9); }

/* ─── FADE-IN ANIMATION ─────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children when parent is visible */
.grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.15s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.25s; }
.steps .fade-in:nth-child(2) { transition-delay: 0.1s; }
.steps .fade-in:nth-child(3) { transition-delay: 0.2s; }
.steps .fade-in:nth-child(4) { transition-delay: 0.3s; }
.steps .fade-in:nth-child(5) { transition-delay: 0.4s; }
.timeline .fade-in:nth-child(2) { transition-delay: 0.1s; }
.timeline .fade-in:nth-child(3) { transition-delay: 0.2s; }
.timeline .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root { --section-py: 80px; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .steps  { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { display: none; }

    .hero__split { grid-template-columns: 1fr; gap: 3rem; }
    .hero__inner { max-width: 100%; }
    .hero__stats { flex-direction: row; flex-wrap: wrap; }
    .hero__stat  { flex: 1 1 calc(33% - 0.75rem); min-width: 160px; }
}

@media (max-width: 768px) {
    :root { --section-py: 64px; }

    /* Nav mobile */
    .nav__toggle { display: flex; }

    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform var(--transition-md), opacity var(--transition-md);
        pointer-events: none;
    }

    .nav__menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        padding: 0.85rem 0.75rem;
        color: var(--text) !important;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav__cta {
        margin: 1rem 0 0;
        text-align: center;
        padding: 0.85rem;
    }

    /* Grid stacks */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .features-grid    { grid-template-columns: 1fr; }
    .steps            { grid-template-columns: 1fr; }
    .timeline         { grid-template-columns: 1fr; }
    .two-col          { grid-template-columns: 1fr; gap: 2.5rem; }

    /* Steps text left-aligned on mobile */
    .step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
    .step__number { flex-shrink: 0; margin: 0; }

    /* Timeline vertical */
    .timeline__item { padding-top: 0; padding-left: 2rem; }
    .timeline__marker {
        position: absolute;
        top: 4px;
        left: 0;
        transform: none;
    }

    /* Founder stacks */
    .founder {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .founder__photo-placeholder,
    .founder__photo {
        width: 120px;
        height: 120px;
        font-size: 1.75rem;
    }

    /* Contact */
    .contact-actions { flex-direction: column; align-items: center; }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .footer__nav { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 43, 82, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-md);
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(24px);
    transition: transform var(--transition-md);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.is-open .modal {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--grey-light);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.modal__close:hover {
    background: var(--border);
    color: var(--text);
}

.modal .eyebrow { margin-bottom: 0.4rem; }
.modal h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.modal > div > p { font-size: 0.9rem; margin-bottom: 1.75rem; }

/* ─── FORM ──────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--grey);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(94, 196, 170, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 15px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.btn--full {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.form-success__icon {
    width: 56px;
    height: 56px;
    background: var(--teal-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--teal);
}

.form-success h3 { margin-bottom: 0.5rem; }

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero__actions { flex-direction: column; }
    .hero__stats { flex-direction: column; }
    .hero__stat  { flex: none; }
    .collab-card  { padding: 1.75rem; }
}

/* ─── ETYMOLOGY ─────────────────────────────────────────────── */
.etymology {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.etymology__intro {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.etymology__parts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.etymology__part {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.etymology__root {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    font-style: italic;
}

.etymology__meaning {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.etymology__connector {
    color: var(--teal);
    font-size: 1.75rem;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
}

/* ─── PILLARS ────────────────────────────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-md), transform var(--transition-md);
    display: flex;
    flex-direction: column;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal);
}

.pillar:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.pillar__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.pillar__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.pillar__body {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.pillar__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}

.pillar__link:hover {
    color: var(--teal-hover);
}

/* ─── AREA DIVIDER ──────────────────────────────────────────── */
.area-divider {
    padding: calc(var(--section-py) * 0.6) 0 0;
}

.area-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.area-header__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.area-header__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── SECTION CTA ───────────────────────────────────────────── */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ─── RESPONSIVE: PILLARS & ETYMOLOGY ──────────────────────── */
@media (max-width: 768px) {
    .pillars { grid-template-columns: 1fr; }
    .etymology__parts { gap: 1.5rem; }
    .etymology__connector { display: none; }
}

@media (max-width: 1024px) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
}
