@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Syne:wght@600;700;800&display=swap');

:root {
    --font-head: 'Syne', 'Trebuchet MS', sans-serif;
    --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-xl: 0 22px 68px rgba(6, 8, 30, 0.55);
    --shadow-md: 0 12px 34px rgba(8, 10, 34, 0.35);
    --content-max: 1180px;
}

[data-theme='dark'] {
    --bg: #070910;
    --bg-soft: rgba(13, 15, 32, 0.8);
    --surface: rgba(20, 23, 44, 0.72);
    --surface-solid: #151935;
    --text: #eff2ff;
    --muted: #b8bfdf;
    --line: rgba(179, 196, 255, 0.2);
    --accent-a: #50f5ff;
    --accent-b: #ff3fcb;
    --accent-c: #ffca63;
    --accent-d: #6d77ff;
}

[data-theme='light'] {
    --bg: #edf1ff;
    --bg-soft: rgba(250, 252, 255, 0.9);
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --text: #11162d;
    --muted: #3b456f;
    --line: rgba(77, 102, 180, 0.2);
    --accent-a: #006eff;
    --accent-b: #f1008f;
    --accent-c: #ff8f1f;
    --accent-d: #4a3fff;
    --shadow-xl: 0 22px 68px rgba(94, 108, 155, 0.22);
    --shadow-md: 0 12px 34px rgba(102, 112, 148, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

#starfield {
    position: fixed;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.bg-orb {
    position: fixed;
    width: 52vw;
    height: 52vw;
    border-radius: 50%;
    filter: blur(30px);
    z-index: -5;
    opacity: 0.44;
    animation: drift 18s ease-in-out infinite;
}

.orb-a {
    background: radial-gradient(circle at 30% 30%, var(--accent-a), transparent 65%);
    top: -12vw;
    left: -16vw;
}

.orb-b {
    background: radial-gradient(circle at 70% 35%, var(--accent-b), transparent 70%);
    top: 26vh;
    right: -18vw;
    animation-delay: -5s;
}

.orb-c {
    background: radial-gradient(circle at 45% 50%, var(--accent-c), transparent 68%);
    bottom: -20vw;
    left: 24vw;
    animation-delay: -10s;
}

.container {
    width: min(var(--content-max), calc(100% - 2.4rem));
    margin: 0 auto;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: linear-gradient(145deg, rgba(9, 11, 29, 0.56), rgba(10, 14, 34, 0.2));
    border-bottom: 1px solid var(--line);
}

[data-theme='light'] .main-header {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.5));
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--accent-a), var(--accent-b));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-md);
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.main-nav a {
    padding: 0.68rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

[data-theme='light'] .main-nav a:hover,
[data-theme='light'] .main-nav a.active {
    background: rgba(37, 74, 184, 0.1);
}

.theme-toggle {
    width: 60px;
    height: 34px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.theme-toggle-dot {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--accent-a), var(--accent-b));
    transition: transform 0.24s ease;
}

[data-theme='light'] .theme-toggle-dot {
    transform: translateX(26px);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
}

main {
    position: relative;
    z-index: 1;
}

section {
    padding: 5rem 0;
}

.hero {
    padding: 6.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-a);
    margin: 0 0 0.9rem;
}

.hero h1,
.page-hero h1,
.section-head h2,
.cta-band h2 {
    font-family: var(--font-head);
    line-height: 1.03;
    margin: 0;
    letter-spacing: -0.01em;
}

.hero h1 {
    font-size: clamp(2.3rem, 6vw, 5.1rem);
    max-width: 12ch;
    background: linear-gradient(130deg, #ffffff 15%, var(--accent-a) 42%, var(--accent-b) 75%, var(--accent-c) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme='light'] .hero h1 {
    background: linear-gradient(130deg, #11204b 12%, var(--accent-d) 46%, var(--accent-b) 74%, var(--accent-c) 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

.lead {
    margin-top: 1.2rem;
    max-width: 62ch;
    font-size: clamp(1.02rem, 2.1vw, 1.3rem);
    color: var(--muted);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.78rem 1.35rem;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

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

.btn-primary {
    background: linear-gradient(138deg, var(--accent-a), var(--accent-b) 60%, var(--accent-c));
    color: #fff;
    box-shadow: 0 14px 40px rgba(78, 143, 255, 0.36);
}

.btn-ghost {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.hero-card,
.glass-card,
.feature-card,
.timeline-item,
.contact-form-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.hero-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    top: -65px;
    right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 65%);
    pointer-events: none;
}

.hero-card-top {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.hero-card h2 {
    margin: 0.6rem 0;
    font-family: var(--font-head);
    font-size: 2rem;
}

.hero-meter {
    margin-top: 1rem;
}

.hero-meter span {
    display: block;
    font-size: 0.86rem;
    margin-bottom: 0.4rem;
    color: var(--muted);
}

.meter {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(130deg, var(--accent-a), var(--accent-b), var(--accent-c));
}

.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-3 article,
.card-grid article {
    min-height: 100%;
}

.card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card,
.feature-card {
    padding: 1.4rem;
}

.glass-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-family: var(--font-head);
}

.glass-card p,
.feature-card p,
.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.section-head {
    margin-bottom: 1.35rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    max-width: 18ch;
}

.feature-card h3 {
    margin: 0 0 0.4rem;
    font-family: var(--font-head);
}

.cta-band {
    padding-bottom: 6rem;
}

.cta-band-inner {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(130deg, rgba(53, 58, 133, 0.42), rgba(169, 48, 126, 0.4), rgba(255, 163, 66, 0.32));
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-band h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 24ch;
}

.page-hero {
    padding-top: 5.6rem;
    padding-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 5.4vw, 4rem);
    max-width: 15ch;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.timeline-item {
    padding: 1.5rem;
}

.timeline-item span {
    display: inline-flex;
    font-family: var(--font-head);
    color: var(--accent-a);
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.timeline-item h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-head);
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

.chip.active {
    background: linear-gradient(130deg, var(--accent-a), var(--accent-b));
    color: #fff;
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 250px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(6, 8, 22, 0), rgba(6, 8, 22, 0.86));
}

.gallery-item span {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: #9beeff;
}

.gallery-item h3 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-family: var(--font-head);
}

.gallery-item.is-hidden {
    opacity: 0.12;
    transform: scale(0.98);
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.84fr 1.16fr;
    gap: 1rem;
}

.contact-meta {
    display: grid;
    gap: 1rem;
}

.contact-form-wrap {
    padding: 1.2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.contact-form label {
    display: grid;
    gap: 0.42rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-form label:last-of-type {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.82rem;
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.25rem;
}

.notice {
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.92rem;
}

.notice-success {
    border-color: rgba(25, 186, 120, 0.5);
    background: rgba(26, 166, 114, 0.12);
}

.notice-error {
    border-color: rgba(255, 87, 87, 0.46);
    background: rgba(255, 87, 87, 0.14);
}

.main-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(8, 10, 26, 0.42));
}

[data-theme='light'] .main-footer {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
}

.footer-grid a {
    display: block;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.footer-bottom {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(3vw, -1.5vw, 0) scale(1.08);
    }
    66% {
        transform: translate3d(-2vw, 2vw, 0) scale(0.94);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--content-max), calc(100% - 1.2rem));
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 75px;
        left: 0.6rem;
        right: 0.6rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--line);
        background: var(--surface-solid);
        box-shadow: var(--shadow-xl);
        padding: 0.7rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .theme-toggle {
        width: 100%;
    }

    .hero {
        padding-top: 5rem;
    }

    section {
        padding: 3.8rem 0;
    }

    .card-grid,
    .timeline,
    .gallery-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }
}
