/* Homepage concept: saturated colour, generous typography and clear surfaces. */
:root, :root.dark {
    color-scheme: dark;
    --font-sans: 'Manrope', sans-serif;
    --paper: #000050;
    --surface: #191549;
    --ink: #f2efff;
    --muted: #c5c1df;
    --brand: #aaff00;
    --brand-strong: #c7ff52;
    --lavender: #28166c;
    --soft: #11103e;
    --line: rgb(226 219 255 / 22%);
    --grid: rgb(140 25 245 / 20%);
    --draft: #8c19f5;
    --sage: #aaff00;
    --peach: #451657;
    --mint: #12395a;
    --editor-canvas: #11103a;
    --editor-sidebar: #1b174f;
    --code-text: #f2efff;
    --code-comment: #b6afd3;
    --code-string: #aaff00;
    --code-keyword: #fa8bff;
    --code-function: #78dcff;
    --code-type: #ffcb7e;
    --code-gutter: #a39cc5;
}
body { background: var(--paper); }
::selection { background: #aaff00; color: #000050; }
:focus-visible { outline: 3px solid #00d7ff; outline-offset: 4px; }
.site-header { max-width: none; background: #aaff00; color: #000050; border: 0; }
.site-header__bar { max-width: 1280px; margin: auto; }
.site-header__nav { font-weight: 800; }
.site-header__nav a:hover { color: #5a189a; }
.site-header .icon-button { color: #000050; background: transparent; border-color: #00005055; }
.site-header .theme-icon, .site-header .menu-icon { stroke: #000050; }
.release-pill, .site-header [data-theme-toggle] { display: none !important; }
.button { border-radius: 6px; font-weight: 800; min-height: 56px; }
.button--primary, .dark .button--primary { color: #000050; background: #aaff00; box-shadow: none; }
.button--primary:hover { color: #000050; background: #c7ff52; }
.button--soft { color: #000050; background: #00d7ff; border: 0; }
.text-link { font-weight: 800; }
.text-link:hover { color: #00d7ff; }
.hero { padding-top: 5rem; background: radial-gradient(circle at 80% 40%, #45138b 0, transparent 36%), #000050; }
.hero__grid, .page-guides::before, .page-guides::after, .hatch { display: none; }
.hero__title, .section-title, .card-title, .start-step__title, .ecosystem__headline-stat, .release-card__numeral { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.055em; }
.hero__title { font-size: clamp(3.7rem, 8vw, 7.5rem); line-height: .97; }
.hero__accent, .dark .hero__accent { color: #aaff00; }
.hero__lead { color: #d5d0ed; line-height: 1.75; font-size: 1.1rem; }
.hero__art svg { stroke: #00d7ff; opacity: .85; }
.latest { margin-top: 6rem; }
.latest__row { background: #101047; }
.latest__label { color: #f2efff; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
.logo-wall { background: #aaff00; color: #000050; border: 0; padding-block: 3rem; }
.logo-wall__heading { font: 700 clamp(1.8rem, 3vw, 2.7rem)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.05em; margin-bottom: 1.5rem; }
.logo-wall__link { color: #000050; }
.logo-wall__link:hover { color: #7116cb; }
.logo-wall__cross { opacity: .2; }
.section { padding-block: 6rem; }
.section-title, .section-title--large { font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1.02; }
.section-intro--center { text-align: left; }
.section-intro--center .section-title, .section-intro--center .lead { margin-left: 0; }
.lead { font-size: 1rem; line-height: 1.75; }
.panel, .foundation-card, .start-step { border-radius: 12px; background: #191549; border-color: #51477e; }
.panel__footer { background: #11103a; }
.language-panel__art { background: #8c19f5; }
.language-panel__art svg { color: #aaff00; }
.tagline, .scribble { color: #d8d2ee; }
.scribble svg { stroke: #ff00ff; }
.section--tinted { background: #11103e; }
.section--lavender { background: #5123ad; }
.ecosystem__stats { background: #8c19f5; border-radius: 12px 12px 0 0; }
.ecosystem__headline-stat { color: #aaff00; }
.stat-card { background: #28166c; border-radius: 6px; }
.ecosystem__pie { border-radius: 0 0 12px 12px; }
.badge { border-radius: 6px; }
.release-card__version { background: #00d7ff; color: #000050; }
.release-card__version .release-card__numeral, .dark .release-card__version .release-card__numeral, .release-card__version .release-card__dates, .release-card__version .release-card__dates a, .dark .release-card__version .release-card__dates a { color: #000050; }
.release-card__logo, .dark .release-card__logo { fill: #000050; }
.release-card__numeral .release-card__numeral-outline { -webkit-text-stroke-color: #000050; }
.foundation-card__footer, .dark .foundation-card__footer { background: #25165c; border-radius: 0 0 12px 12px; }
.start-step { border-top: 5px solid #aaff00; }
.start-step:nth-child(2) { border-top-color: #00d7ff; }
.start-step:nth-child(3) { border-top-color: #ff00ff; }
.code-showcase { border-color: #51477e; }
.history { background: #11103e; }
@media (min-width: 64rem) {
    .hero { padding-top: 7rem; }
    .hero__inner { min-height: 26rem; }
    .hero__art { width: 35rem; height: 30rem; top: -3rem; right: 0; }
    .section { padding-block: 8rem; }
}
@media (max-width: 40rem) {
    .hero { padding-top: 4rem; }
    .hero__art { opacity: .45; }
    .hero__actions { align-items: flex-start; }
    .logo-wall__heading { margin-bottom: 1rem; }
}

/* Orbital lines turn slowly around the PHP mark; the mark stays legible. */
.hero__art { perspective: 900px; }
.hero__art svg { position: relative; z-index: 2; }
.hero__art svg > g > g:first-child > circle,
.hero__art svg > g > g:first-child > ellipse { opacity: 0; }
.hero-orbit {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 78%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hero-orbit span {
    position: absolute;
    inset: 0;
    display: block;
    border: 1px solid rgb(0 215 255 / 50%);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: orbit-one 26s linear infinite;
}
.hero-orbit span::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aaff00;
    box-shadow: 0 0 12px #aaff00;
}
.hero-orbit--two { width: 70%; }
.hero-orbit--two span { border-color: rgb(255 0 255 / 43%); animation: orbit-two 33s linear infinite; }
.hero-orbit--two span::after { background: #ff83ff; box-shadow: 0 0 12px #ff00ff; }
.hero-orbit--three { width: 61%; }
.hero-orbit--three span { border-color: rgb(170 255 0 / 35%); animation: orbit-three 39s linear infinite; }
.hero-orbit--three span::after { background: #00d7ff; box-shadow: 0 0 12px #00d7ff; }
@keyframes orbit-one { from { transform: rotateZ(-28deg) rotateX(68deg) rotateZ(0deg); } to { transform: rotateZ(-28deg) rotateX(68deg) rotateZ(360deg); } }
@keyframes orbit-two { from { transform: rotateZ(42deg) rotateX(70deg) rotateZ(360deg); } to { transform: rotateZ(42deg) rotateX(70deg) rotateZ(0deg); } }
@keyframes orbit-three { from { transform: rotateZ(86deg) rotateX(72deg) rotateZ(0deg); } to { transform: rotateZ(86deg) rotateX(72deg) rotateZ(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .hero-orbit span { animation: none; }
    .hero-orbit--one span { transform: rotateZ(-28deg) rotateX(68deg); }
    .hero-orbit--two span { transform: rotateZ(42deg) rotateX(70deg); }
    .hero-orbit--three span { transform: rotateZ(86deg) rotateX(72deg); }
}
