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

:root {
    --mist-white: #F4F6F7;
    --ridge-gray: #D9E1E4;
    --soft-steel: #AAB6BD;
    --signal-blue: #4DA6FF;
    --wind-glow: #7FE3FF;
    --beacon-gold: #FFD76A;
    --text-primary: #2A3138;
    --text-secondary: #69757D;
    --text-disabled: #95A0A7;
    --white: #FFFFFF;

    --grad-cta: linear-gradient(135deg, #4DA6FF 0%, #7FE3FF 100%);
    --shadow-sm: 0 4px 16px rgba(42, 49, 56, 0.06);
    --shadow-md: 0 14px 40px rgba(42, 49, 56, 0.10);
    --shadow-blue: 0 16px 40px rgba(77, 166, 255, 0.28);

    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 84px;

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }
html.hide .preloader { display: none; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--mist-white);
    line-height: 1.6;
    overflow-x: hidden;
}
body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Remove default mobile tap highlight on interactive elements */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.nav-link, .burger-btn, .faq-item summary {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.preloader {
    position: fixed;
    inset: 0;
    background: var(--mist-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.preloader img { width: 110px; height: 110px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.2px;
    padding: 15px 32px;
    border-radius: 100px;
    border: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn--primary {
    background: var(--grad-cta);
    color: var(--white);
    box-shadow: var(--shadow-blue);
    animation: btnPulse 2.4s ease-in-out infinite;
}
.btn--primary:hover { color: var(--text-primary); animation: none; }
@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.header.scrolled {
    height: 70px;
    background: rgba(244, 246, 247, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(170, 182, 189, 0.4);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 46px; height: 46px; object-fit: contain; }
.logo__text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.logo__text small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--signal-blue);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--grad-cta);
    transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    position: relative;
    cursor: pointer;
}
.burger-btn span {
    position: absolute;
    left: 9px;
    width: 26px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 27px; }
.burger-btn.act span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
#mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(42, 49, 56, 0.12);
    padding: calc(var(--header-h) + 20px) 30px 30px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; transform: translateX(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__nav .nav-link {
    font-family: var(--font-head);
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ridge-gray);
}
.mobile-menu__nav .nav-link::after { display: none; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section:nth-of-type(even) { background: var(--white); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--signal-blue);
    margin-bottom: 18px;
}
.eyebrow i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(77, 166, 255, 0.12);
    color: var(--signal-blue);
    font-size: 13px;
}
.eyebrow--center { justify-content: center; }

.section__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 22px;
}
.section__text {
    font-size: 16.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.section__text--center { text-align: center; }
.section__head {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}
.section__head .section__title { margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 70px) 0 90px;
    background: linear-gradient(180deg, #F4F6F7 0%, #E7EEF1 100%);
    overflow: hidden;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(170, 182, 189, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(170, 182, 189, 0.22) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__glow {
    position: absolute;
    top: -10%; right: -5%;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(127, 227, 255, 0.45) 0%, transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.hero__content { max-width: 620px; }
.pill-row { display: flex; gap: 10px; margin-bottom: 22px; }
.pill {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    background: var(--white);
    color: var(--signal-blue);
    border: 1px solid rgba(77, 166, 255, 0.3);
    box-shadow: var(--shadow-sm);
}
.hero__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.06;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.hero__text {
    font-size: 16.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.hero__content .btn { margin-top: 10px; }

.hero__media { position: relative; display: flex; justify-content: center; }
.hero__media-glow {
    position: absolute;
    bottom: 6%;
    width: 78%; height: 70%;
    background: radial-gradient(circle, rgba(77, 166, 255, 0.35) 0%, transparent 70%);
    filter: blur(30px);
}
.hero__character {
    position: relative;
    max-height: 560px;
    width: auto;
    filter: drop-shadow(0 26px 40px rgba(42, 49, 56, 0.22));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* ---------- About ---------- */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}
.frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(170, 182, 189, 0.35);
}
.frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

.highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
    margin-top: 28px;
}
.highlights li {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text-primary);
}
.highlights li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--grad-cta);
    box-shadow: 0 0 0 4px rgba(127, 227, 255, 0.22);
}

/* ---------- How it works ---------- */
.how__layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}
.mech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mech-card {
    background: var(--mist-white);
    border: 1px solid rgba(170, 182, 189, 0.4);
    border-radius: var(--radius-sm);
    padding: 22px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.how .mech-card { background: var(--white); }
.section:nth-of-type(even) .mech-card { background: var(--mist-white); }
.mech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(77, 166, 255, 0.5);
}
.mech-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(77, 166, 255, 0.1);
    color: var(--signal-blue);
    margin-bottom: 14px;
}
.mech-card__icon svg { width: 24px; height: 24px; }
.mech-card h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: var(--text-primary);
}

/* ---------- Modes ---------- */
.modes__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.mode-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(170, 182, 189, 0.4);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mode-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mode-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mode-card__tag {
    position: absolute;
    top: 16px; left: 16px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 100px;
    background: rgba(42, 49, 56, 0.55);
    backdrop-filter: blur(6px);
    color: var(--white);
}
.mode-card__tag--gold { background: rgba(255, 215, 106, 0.92); color: var(--text-primary); }
.mode-card__body { padding: 26px 26px 30px; }
.mode-card__body h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.mode-card__body p { font-size: 15.5px; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--white);
    border: 1px solid rgba(170, 182, 189, 0.45);
    border-radius: var(--radius-sm);
    padding: 4px 26px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: rgba(77, 166, 255, 0.5); box-shadow: var(--shadow-sm); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    padding: 20px 36px 20px 0;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    position: absolute;
    right: 2px; top: 26px;
    width: 12px; height: 12px;
    border-right: 2px solid var(--signal-blue);
    border-bottom: 2px solid var(--signal-blue);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-item__answer { padding: 0 0 22px; }
.faq-item__answer p { font-size: 15.5px; color: var(--text-secondary); }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact__card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(160deg, #F4F6F7 0%, #E5EEF2 100%);
    border: 1px solid rgba(170, 182, 189, 0.4);
    border-radius: 28px;
    padding: 64px 40px;
    overflow: hidden;
}
.contact__glow {
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(127, 227, 255, 0.4) 0%, transparent 65%);
    filter: blur(20px);
    pointer-events: none;
}
.contact__card .eyebrow,
.contact__card .section__title,
.contact__card .section__text,
.contact__card .btn { position: relative; }
.contact__card .section__text { max-width: 580px; margin-left: auto; margin-right: auto; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--text-primary);
    color: var(--ridge-gray);
    padding: 34px 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.footer__brand {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: var(--white);
}
.footer__center { font-size: 14px; color: var(--soft-steel); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: var(--ridge-gray); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--wind-glow); }

/* ---------- Legal pages ---------- */
.legal-page {
    padding: calc(var(--header-h) + 60px) 0 90px;
    background: var(--mist-white);
}
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(170, 182, 189, 0.4);
    border-radius: var(--radius);
    padding: 50px 56px;
    box-shadow: var(--shadow-sm);
}
.legal-content h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--text-primary);
    margin-bottom: 28px;
}
.legal-content h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 19px;
    color: var(--text-primary);
    margin: 32px 0 12px;
}
.legal-content p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.legal-content li { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 8px; }
.legal-content a { color: var(--signal-blue); }
.legal-content strong { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nav { gap: 22px; }
    .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
    .hero__character { max-height: 460px; }
    .about__inner { gap: 40px; }
    .how__layout { grid-template-columns: 1fr; gap: 40px; }
    .how__media { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .burger-btn { display: block; }
    .section { padding: 80px 0; }
    .hero { padding-top: calc(var(--header-h) + 40px); }
    .hero__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero__content { max-width: 100%; margin: 0 auto; }
    .pill-row { justify-content: center; }
    .hero__media { order: -1; }
    .hero__character { max-height: 360px; }
    .about__inner { grid-template-columns: 1fr; gap: 36px; }
    .about__media { max-width: 520px; margin: 0 auto; width: 100%; }
    .modes__grid { grid-template-columns: 1fr; gap: 22px; }
    .legal-content { padding: 36px 26px; }
    .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 64px 0; }
    .mech-grid { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr; }
    .section__head { margin-bottom: 44px; }
    .contact__card { padding: 48px 24px; }
    .logo__text { font-size: 17px; }
    .btn { width: 100%; }
}
