@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap");

:root {
    --connect: #9cc1d5;
    --learn: #2a4c67;
    --grow: #10273e;
    --heal: #d5e5f0;
    --ink: #08131f;
    --ink-soft: #10273e;
    --white: #ffffff;
    --gold: #c9a45c;
    --gold-soft: #f4e4bf;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 30px 80px rgba(8, 19, 31, 0.22);
    --shadow-soft: 0 18px 50px rgba(8, 19, 31, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
}

.home-page-main,
.home-page-main * {
    box-sizing: border-box;
}

.home-page-main {
    position: relative;
    overflow: clip;
    color: var(--white);
    font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

.home-page-main p,
.home-page-main a,
.home-page-main button,
.home-page-main input,
.home-page-main textarea,
.home-page-main span,
.home-page-main label {
    font-family: inherit;
}

.home-page-main a {
    text-decoration: none;
}

.home-page-main img {
    max-width: 100%;
    height: auto;
}

/* ─── Ambient background ─── */

.hero-ambient {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.aurora,
.hero-grid,
.soft-gradient {
    pointer-events: none;
    position: absolute;
}

.aurora {
    filter: blur(18px);
    border-radius: 999px;
    opacity: 0.6;
}

.aurora-one {
    width: 30rem;
    height: 30rem;
    left: -6rem;
    top: 12rem;
    background: radial-gradient(circle, rgba(156, 193, 213, 0.28) 0%, rgba(156, 193, 213, 0) 72%);
    animation: auroraFloat1 16s ease-in-out infinite;
}

.aurora-two {
    width: 38rem;
    height: 38rem;
    right: -14rem;
    top: 6rem;
    background: radial-gradient(circle, rgba(213, 229, 240, 0.22) 0%, rgba(213, 229, 240, 0) 72%);
    animation: auroraFloat2 20s ease-in-out infinite;
}

.aurora-three-hero {
    width: 24rem;
    height: 24rem;
    left: 50%;
    bottom: 8rem;
    margin-left: -12rem;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.14) 0%, rgba(201, 164, 92, 0) 72%);
    animation: auroraFloat3 14s ease-in-out infinite;
}

.aurora-three {
    width: 36rem;
    height: 36rem;
    right: -8rem;
    top: 2rem;
    background: radial-gradient(circle, rgba(42, 76, 103, 0.35) 0%, rgba(42, 76, 103, 0) 74%);
}

.aurora-four {
    width: 32rem;
    height: 32rem;
    left: -10rem;
    top: 8rem;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.22) 0%, rgba(201, 164, 92, 0) 72%);
}

.light-aurora {
    width: 34rem;
    height: 34rem;
    right: -8rem;
    top: -6rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 72%);
}

.hero-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 5rem 5rem;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0.22;
}

.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-glow-orb--gold {
    width: 20rem;
    height: 20rem;
    right: 8%;
    top: 20%;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.12) 0%, transparent 70%);
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-glow-orb--blue {
    width: 28rem;
    height: 28rem;
    left: 5%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(156, 193, 213, 0.1) 0%, transparent 70%);
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.soft-gradient {
    width: 30rem;
    height: 30rem;
    border-radius: 999px;
    filter: blur(25px);
}

.soft-gradient-left {
    left: -10rem;
    top: 3rem;
    background: radial-gradient(circle, rgba(156, 193, 213, 0.22) 0%, rgba(156, 193, 213, 0) 72%);
}

.soft-gradient-right {
    right: -8rem;
    bottom: -5rem;
    background: radial-gradient(circle, rgba(42, 76, 103, 0.16) 0%, rgba(42, 76, 103, 0) 74%);
}

/* ─── Glassmorphic header ─── */

.hero-nav-bar {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 19, 31, 0.4);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-nav-wrapper.is-scrolled .hero-nav-bar {
    background: rgba(8, 19, 31, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 40px rgba(0, 0, 0, 0.35);
}

.home-nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.logo-chip {
    box-shadow: var(--shadow-soft);
}

.menu-line {
    display: block;
    width: 1rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-nav-toggle] {
    position: relative;
    gap: 0.3rem;
    flex-direction: column;
}

[data-nav-toggle][aria-expanded="true"] .menu-line:first-child {
    transform: translateY(5px) rotate(45deg);
}

[data-nav-toggle][aria-expanded="true"] .menu-line:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav-panel {
    transform-origin: top center;
}

/* ─── Hero content ─── */

.hero-content-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow-dot {
    box-shadow: 0 0 8px rgba(201, 164, 92, 0.7), 0 0 20px rgba(201, 164, 92, 0.3);
    animation: dotPulse 3s ease-in-out infinite;
}

.hero-headline-accent {
    background: linear-gradient(135deg, var(--connect) 0%, var(--heal) 35%, var(--gold) 70%, var(--gold-soft) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--connect) 0%, var(--heal) 40%, var(--gold-soft) 100%);
    box-shadow:
        0 12px 36px rgba(156, 193, 213, 0.22),
        0 1px 0 0 rgba(255, 255, 255, 0.25) inset;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hero-cta-primary:hover::before {
    transform: translateX(100%);
}

.hero-cta-primary:hover {
    box-shadow:
        0 18px 48px rgba(156, 193, 213, 0.3),
        0 1px 0 0 rgba(255, 255, 255, 0.3) inset;
}

.hero-cta-secondary:hover {
    box-shadow: 0 12px 36px rgba(255, 255, 255, 0.06);
}

/* ─── Pathway pills ─── */

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.hero-pill:hover {
    transform: translateY(-2px);
}

.hero-pill--connect {
    color: var(--connect);
    border-color: rgba(156, 193, 213, 0.2);
}

.hero-pill--connect:hover {
    background: rgba(156, 193, 213, 0.1);
    box-shadow: 0 8px 24px rgba(156, 193, 213, 0.12);
}

.hero-pill--learn {
    color: #6b9cbd;
    border-color: rgba(42, 76, 103, 0.25);
}

.hero-pill--learn:hover {
    background: rgba(42, 76, 103, 0.12);
    box-shadow: 0 8px 24px rgba(42, 76, 103, 0.12);
}

.hero-pill--grow {
    color: #5a8aaa;
    border-color: rgba(16, 39, 62, 0.3);
}

.hero-pill--grow:hover {
    background: rgba(16, 39, 62, 0.15);
    box-shadow: 0 8px 24px rgba(16, 39, 62, 0.12);
}

.hero-pill--heal {
    color: var(--heal);
    border-color: rgba(213, 229, 240, 0.2);
}

.hero-pill--heal:hover {
    background: rgba(213, 229, 240, 0.08);
    box-shadow: 0 8px 24px rgba(213, 229, 240, 0.1);
}

.hero-pill-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* ─── Scroll indicator ─── */

.hero-scroll-cue {
    opacity: 0;
    animation: scrollCueFadeIn 1s ease-out 1.8s forwards;
}

.hero-scroll-arrow {
    animation: scrollArrowBounce 2s ease-in-out infinite;
}

/* ─── Eyebrow shared ─── */

.eyebrow-dark,
.eyebrow-light {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: rgba(255, 255, 255, 0.58);
}

.eyebrow-light {
    color: rgba(42, 76, 103, 0.64);
}

.eyebrow-dark::before,
.eyebrow-light::before {
    content: "";
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-line {
    width: 7rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 164, 92, 0), rgba(201, 164, 92, 0.95), rgba(201, 164, 92, 0));
}

/* ─── Surface placeholders ─── */

.placeholder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.placeholder-label {
    max-width: 16rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ─── Section 2: Pathway ─── */

.s2-visual-inner {
    border-radius: 1.5rem;
    border: 1px solid rgba(16, 39, 62, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(237, 241, 247, 0.5));
    overflow: hidden;
}

.s2-stat-block {
    transition: background 0.3s ease;
}

.s2-stat-block:hover {
    background: rgba(255, 255, 255, 0.4);
}

.pill-dark {
    border-radius: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.s2-diagram-wrap {
    max-width: 26rem;
    margin: 0 auto;
}

.s2-ecosystem-svg {
    width: 100%;
    height: auto;
}

.s2-node {
    transition: transform 0.4s ease;
}

.s2-ecosystem-svg:hover .s2-node {
    filter: url(#eco-glow);
}

@keyframes s2RingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.s2-ring {
    transform-origin: 210px 210px;
    animation: s2RingRotate 60s linear infinite;
}

/* ─── Section 3: Entry cards ─── */

.s3-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.s3-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.s3-card-link {
    opacity: 0.7;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

.s3-card:hover .s3-card-link {
    opacity: 1;
}

/* ─── Section 4: Cake analogy ─── */

.s4-cake-panel {
    box-shadow: 0 8px 32px rgba(16, 39, 62, 0.06);
}

.s4-layer {
    transition: transform 0.3s ease;
}

.s4-cake-panel:hover .s4-layer {
    transform: translateX(4px);
}

/* ─── Section 5: Initiatives ─── */

.s5-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.s5-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.pill-dark {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ─── Section 6: About / AWARE ─── */

.s6-aware-cell + .s6-aware-cell {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.s6-portrait-frame {
    transition: transform 0.5s ease;
}

.s6-portrait-frame:hover {
    transform: scale(1.02);
}

/* ─── Section 7: Resources ─── */

.s7-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.s7-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 39, 62, 0.1);
}

/* ─── Section 8: Community ─── */

.s8-panel {
    transition: border-color 0.3s ease;
}

.s8-panel:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.field-shell {
    display: grid;
    gap: 0.5rem;
}

.field-shell span {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.field-shell input,
.field-shell textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.field-shell input::placeholder,
.field-shell textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.field-shell input:focus,
.field-shell textarea:focus {
    border-color: rgba(201, 164, 92, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* ─── Reveal & parallax ─── */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-parallax] {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

/* ─── Keyframes ─── */

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(1.5rem, -1rem, 0) scale(1.08);
    }
}

@keyframes auroraFloat1 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.55;
    }
    33% {
        transform: translate3d(2rem, -1.5rem, 0) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate3d(-1rem, 1rem, 0) scale(0.95);
        opacity: 0.5;
    }
}

@keyframes auroraFloat2 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.55;
    }
    40% {
        transform: translate3d(-2.5rem, 1.5rem, 0) scale(1.08);
        opacity: 0.7;
    }
    70% {
        transform: translate3d(1.5rem, -2rem, 0) scale(0.96);
        opacity: 0.45;
    }
}

@keyframes auroraFloat3 {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(1rem, -2rem, 0) scale(1.12);
        opacity: 0.75;
    }
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(-1.5rem, 1rem, 0);
        opacity: 1;
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(2rem, -1.5rem, 0);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(201, 164, 92, 0.5), 0 0 16px rgba(201, 164, 92, 0.2);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 10px rgba(201, 164, 92, 0.8), 0 0 28px rgba(201, 164, 92, 0.35);
        opacity: 0.7;
    }
}

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

@keyframes scrollCueFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ─── Responsive ─── */

@media (max-width: 767px) {
    .home-nav-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-nav-bar {
        border-radius: 0.85rem;
    }

    .hero-pathway-pills {
        gap: 0.5rem;
    }

    .hero-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.7rem;
    }

    .hero-pill-divider {
        width: 2px;
        height: 2px;
    }

    .s6-aware-cell + .s6-aware-cell {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .s2-diagram-wrap {
        max-width: 20rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .aurora,
    .hero-glow-orb,
    .hero-eyebrow-dot,
    .hero-headline-accent,
    .hero-scroll-arrow,
    .hero-scroll-cue,
    .s2-ring,
    [data-reveal],
    [data-parallax] {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    [data-reveal] {
        opacity: 1;
    }

    .hero-headline-accent {
        -webkit-text-fill-color: var(--heal);
    }

    .hero-glow-orb,
    .hero-scroll-cue {
        opacity: 1;
    }
}
