@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Sans:wght@400;500;600;700&family=Parisienne&display=swap');

:root {
    color-scheme: dark;
    --ink: #080817;
    --night: #10112c;
    --violet: #d774ff;
    --violet-bright: #f1a0ff;
    --amber: #ffc65a;
    --paper: #fff9f2;
    --muted: #c0bbd2;
    --line: rgba(227, 206, 255, 0.22);
    --content-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 20;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--paper);
}
.skip-link:focus { top: 12px; }
.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(7, 7, 25, 0.72), transparent);
}
.nav-wrap {
    width: min(var(--content-width), calc(100% - 64px));
    min-height: 84px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.wordmark-mark { width: 34px; height: 34px; color: var(--violet-bright); }
.wordmark-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.wordmark-name span { color: var(--violet-bright); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
    color: rgba(255, 249, 242, 0.82);
    font-size: 13px;
    text-decoration: none;
    transition: color 180ms ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--amber); }
.nav-cta, .button-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(245, 206, 255, 0.7);
    border-radius: 2px;
    background: rgba(22, 12, 43, 0.42);
    color: var(--paper);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.nav-cta:hover, .button-link:hover { border-color: var(--amber); background: rgba(255, 198, 90, 0.14); }
.button-link.primary { border-color: var(--amber); background: var(--amber); color: #24162a; }
.button-link.primary:hover { background: #ffda91; }
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(8, 8, 23, 0.56);
    color: var(--paper);
    cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Full-bleed portal entrance */
.portal-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    min-height: max(760px, 100svh);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 120px 24px 76px;
    text-align: center;
    background-color: #11112b;
}
.portal-hero::before, .portal-hero::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: '';
}
.portal-hero::before {
    background-image: linear-gradient(180deg, rgba(7, 7, 27, 0.68) 0%, rgba(19, 9, 43, 0.28) 45%, rgba(7, 8, 22, 0.5) 76%, #080817 100%), url('assets/twilight-landscape.jpg');
    background-position: center 55%;
    background-size: cover;
    transform: scale(1.015);
    animation: landscape-arrive 1300ms ease-out both;
}
.portal-hero::after {
    z-index: -1;
    background: radial-gradient(ellipse at 50% 39%, rgba(176, 66, 255, 0.21), transparent 35%), linear-gradient(90deg, rgba(8, 8, 23, 0.18), transparent 50%, rgba(8, 8, 23, 0.16));
}
.hero-content { width: min(100%, 920px); margin: auto; }
.hero-kicker {
    margin: 0 0 4px;
    color: #ffe5ff;
    font-family: 'Parisienne', 'Cormorant Garamond', serif;
    font-size: 76px;
    line-height: 1.05;
    text-shadow: 0 0 12px #ed7cff, 0 0 42px rgba(216, 94, 255, 0.86);
}
.network-orb {
    display: block;
    width: 282px;
    height: 282px;
    margin: -2px auto -4px;
    overflow: visible;
    filter: drop-shadow(0 0 12px rgba(210, 143, 255, 0.75)) drop-shadow(0 0 35px rgba(121, 101, 255, 0.58));
}
.orb-shell { fill: rgba(19, 22, 75, 0.18); stroke: #c7b5ff; stroke-width: 1.1; }
.orb-line { fill: none; stroke: #aebaff; stroke-opacity: 0.54; stroke-width: 0.85; }
.orb-line-bright { fill: none; stroke: #f1d9ff; stroke-opacity: 0.78; stroke-width: 0.8; }
.orb-node { fill: #fff; filter: drop-shadow(0 0 4px #e8bdff); }
.orb-node-hot { fill: #ffe6ff; filter: drop-shadow(0 0 7px #df83ff); }
.orb-ring { fill: none; stroke: rgba(213, 179, 255, 0.4); stroke-width: 1; }
.orb-ring.is-moving { transform-origin: 120px 120px; animation: orbit-turn 26s linear infinite; }
.hero-caption {
    margin: 0;
    color: #f7efff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-style: italic;
    line-height: 1.2;
    text-shadow: 0 1px 12px rgba(13, 7, 31, 0.9);
}
.hero-brand {
    display: inline-block;
    margin: 4px 0 0;
    color: #fff9ff;
    font-family: 'Parisienne', 'Cormorant Garamond', serif;
    font-size: 56px;
    line-height: 1.05;
    text-decoration: none;
    text-shadow: 0 0 12px #ef79ff, 0 0 35px rgba(206, 77, 255, 0.76);
}
.hero-intro {
    max-width: 540px;
    margin: 18px auto 22px;
    color: #f3eaff;
    font-size: 15px;
    text-shadow: 0 1px 10px rgba(7, 7, 25, 0.9);
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .button-link { min-width: 190px; }
.hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: rgba(255, 249, 242, 0.72);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}
.hero-scroll svg { width: 17px; height: 17px; color: var(--amber); }

/* Hub / content */
.content-section { padding: 100px 32px; }
.content-section.inner-page { padding-top: 150px; }
.section-inner { width: min(var(--content-width), 100%); margin-inline: auto; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-eyebrow {
    margin: 0 0 10px;
    color: var(--amber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.section-heading h1, .section-heading h2 {
    margin: 0 0 15px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.06;
}
.section-heading p { max-width: 660px; margin: 0; color: var(--muted); }
.mission-band {
    position: relative;
    padding: 92px 32px 96px;
    background: #11112c;
}
.mission-band::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 116, 255, 0.8), transparent);
    content: '';
}
.mission-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 72px; }
.mission-layout .section-heading { margin: 0; }
.mission-copy { max-width: 690px; color: #d8d2e7; font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: 1.45; }
.mission-copy p { margin: 0; }

.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.ecosystem-item {
    position: relative;
    min-height: 235px;
    padding: 30px 28px;
    background: #0c0c20;
    text-decoration: none;
    transition: background 180ms ease;
}
.ecosystem-item:hover { background: #191331; }
.ecosystem-item .item-index { color: var(--violet-bright); font-size: 11px; letter-spacing: 0.12em; }
.ecosystem-item h3 { margin: 26px 0 9px; font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; }
.ecosystem-item p { margin: 0; color: var(--muted); font-size: 14px; }
.ecosystem-item .item-arrow { position: absolute; right: 28px; bottom: 26px; color: var(--amber); font-size: 20px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.service-list { border-top: 1px solid var(--line); }
.service-row {
    display: grid;
    grid-template-columns: 70px 0.75fr 1.25fr;
    gap: 24px;
    align-items: start;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}
.service-row .service-index { color: var(--violet-bright); font-size: 13px; }
.service-row h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; line-height: 1.15; }
.service-row p { max-width: 570px; margin: 0; color: var(--muted); font-size: 14px; }
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 30px; }
.process-step .step-no { color: var(--amber); font-size: 12px; }
.process-step h3 { margin: 12px 0 7px; font-size: 16px; }
.process-step p { margin: 0; color: var(--muted); font-size: 13px; }
.note-band { padding: 26px 30px; border-left: 2px solid var(--violet); background: rgba(184, 115, 255, 0.08); color: #e0d7ed; }
.cta-band { padding: 75px 32px; background: linear-gradient(115deg, #211134, #12122b 64%, #201437); }
.cta-layout { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-layout h2 { max-width: 630px; margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; line-height: 1.1; }
.site-footer { padding: 30px 32px; background: #080817; color: #aaa3bd; font-size: 12px; }
.footer-inner { width: min(var(--content-width), 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.footer-links .amazon-store-link { padding: 4px 8px; border: 1px solid rgba(255, 198, 90, 0.55); color: var(--paper); }
.footer-links .amazon-store-link:hover { border-color: var(--amber); color: var(--amber); }
.hero-actions .amazon-store-link { border-color: rgba(255, 198, 90, 0.7); }
.affiliate-disclosure { width: min(var(--content-width), 100%); margin: 20px auto 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; opacity: 0.75; text-align: center; }
.affiliate-disclosure p { margin: 0; }
.affiliate-disclosure p + p { margin-top: 4px; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: 70px; align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #f0eaf7; font-size: 13px; font-weight: 600; }
.form-field input, .form-field textarea {
    width: 100%;
    border: 1px solid rgba(227, 206, 255, 0.26);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--paper);
    padding: 13px 14px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8f88a4; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--violet-bright); outline: 1px solid var(--violet-bright); }
.form-field textarea { min-height: 145px; resize: vertical; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-details { padding-top: 7px; }
.contact-details h2 { margin: 0 0 12px; font-family: 'Cormorant Garamond', serif; font-size: 30px; }
.contact-details p { color: var(--muted); font-size: 14px; }
.contact-details a { color: var(--amber); }
.form-note { grid-column: 1 / -1; min-height: 24px; color: var(--amber); font-size: 13px; }

@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes landscape-arrive { from { opacity: 0.72; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@media (max-width: 850px) {
    .nav-wrap { width: min(100% - 40px, var(--content-width)); }
    .main-nav { gap: 18px; }
    .nav-cta { display: none; }
    .mission-layout { grid-template-columns: 1fr; gap: 22px; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
    .nav-wrap { min-height: 72px; }
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 8px 18px;
        border: 1px solid var(--line);
        background: rgba(10, 9, 28, 0.97);
    }
    .main-nav.is-open { display: grid; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(227, 206, 255, 0.12); }
    .main-nav a:last-child { border-bottom: 0; }
    .portal-hero { min-height: 790px; min-height: max(790px, 100svh); padding: 108px 20px 82px; }
    .hero-kicker { font-size: 60px; }
    .network-orb { width: 228px; height: 228px; margin-block: 0; }
    .hero-caption { font-size: 22px; }
    .hero-brand { font-size: 46px; }
    .hero-intro { max-width: 390px; font-size: 14px; }
    .hero-actions { display: grid; width: min(100%, 330px); margin: auto; }
    .content-section { padding: 72px 22px; }
    .content-section.inner-page { padding-top: 120px; }
    .section-heading h1, .section-heading h2 { font-size: 40px; }
    .mission-band { padding: 70px 22px; }
    .mission-copy { font-size: 23px; }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .ecosystem-item { min-height: 190px; }
    .service-row { grid-template-columns: 42px 1fr; gap: 10px 16px; }
    .service-row p { grid-column: 2; }
    .process-line { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .cta-band { padding: 60px 22px; }
    .cta-layout { align-items: flex-start; flex-direction: column; }
    .cta-layout h2 { font-size: 34px; }
    .contact-form { grid-template-columns: 1fr; }
    .form-field.full, .form-note { grid-column: auto; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .footer-links { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-height: 700px) {
    .portal-hero { min-height: 100svh; padding: 82px 20px 46px; }
    .hero-kicker { font-size: 54px; }
    .network-orb { width: 190px; height: 190px; }
    .hero-caption { font-size: 20px; }
    .hero-brand { font-size: 44px; }
    .hero-intro { margin: 8px auto 12px; font-size: 14px; }
    .hero-actions .button-link { min-height: 42px; }
    .hero-scroll { bottom: 8px; }
}
@media (max-width: 640px) and (max-height: 700px) {
    .portal-hero { padding-top: 76px; }
    .hero-kicker { font-size: 46px; }
    .network-orb { width: 160px; height: 160px; }
    .hero-actions { display: grid; width: min(100%, 270px); gap: 8px; }
    .hero-actions .button-link { min-width: 0; padding-inline: 10px; font-size: 12px; }
    .hero-scroll { display: none; }
}
@media (max-width: 360px) {
    .nav-wrap { width: calc(100% - 28px); gap: 10px; }
    .wordmark { gap: 8px; }
    .wordmark-mark { width: 28px; height: 28px; }
    .wordmark-name { font-size: 12px; }
    .portal-hero { padding-inline: 16px; }
    .hero-kicker { font-size: 40px; }
    .network-orb { width: 148px; height: 148px; }
    .hero-brand { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
