:root {
    --black: #020403;
    --black-green: #07100b;
    --panel: #0a120d;
    --white: #f4f3ed;
    --muted: #a5aaa3;
    --moss: #33451f;
    --moss-hover: #405727;
    --soft-green: #a7ca83;
    --signal-green: #80d646;
    --gold: #b68a37;
    --gold-light: #e2c77d;
    --gold-dark: #755019;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    color: var(--white);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(560px, 68vh, 720px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 28px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(73, 116, 38, 0.12) 0%, rgba(17, 35, 20, 0.035) 40%, transparent 69%),
        radial-gradient(circle at 86% 18%, rgba(72, 112, 39, 0.055), transparent 28%),
        radial-gradient(circle at 10% 74%, rgba(72, 112, 39, 0.05), transparent 26%),
        linear-gradient(180deg, #060c08 0%, #020604 56%, #010302 100%);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(121, 164, 96, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 164, 96, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, black 0%, rgba(0, 0, 0, 0.7) 54%, transparent 92%);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.22)),
        linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.hero-content {
    position: absolute;
    z-index: 4;
    top: 31.5%;
    left: 50%;
    width: min(100%, 1120px);
    transform: translateX(-50%);
}

.brand-lockup {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: clamp(0.38rem, 0.9vw, 0.82rem);
    margin: 0;
    padding-top: 0.18em;
    overflow: visible;
    white-space: nowrap;
    line-height: 1.04;
}

.brand-name {
    --brand-metallic-gold:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.16) 0,
            rgba(255, 255, 255, 0.16) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(180deg, #ffe9a9 0%, #c28a25 24%, #f6cf68 44%, #89570d 63%, #e6bd55 83%, #9a6818 100%);
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    min-width: max-content;
    overflow: visible;
    white-space: nowrap;
    color: var(--gold-light);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(4.5rem, 9.25vw, 8.1rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    filter:
        drop-shadow(0 1px 0 rgba(255, 236, 169, 0.28))
        drop-shadow(0 3px 2px rgba(0, 0, 0, 0.62))
        drop-shadow(0 0 12px rgba(198, 144, 39, 0.08));
}

.brand-prefix,
.brand-e {
    display: inline-block;
    overflow: visible;
    color: transparent;
    background: var(--brand-metallic-gold);
    background-position: 0 0;
    background-size: auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-final {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline-end: 0.04em;
    margin-inline-end: -0.04em;
    overflow: visible;
    line-height: 1;
}

.brand-e {
    flex: 0 0 auto;
    line-height: 1;
}

.brand-diaeresis {
    position: absolute;
    top: -0.125em;
    left: 50%;
    display: inline-flex;
    gap: 0.07em;
    overflow: visible;
    line-height: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.brand-diaeresis span {
    display: block;
    flex: 0 0 auto;
    width: 0.105em;
    aspect-ratio: 1 / 1;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.16) 0,
            rgba(255, 255, 255, 0.16) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(180deg, #ffe9a9 0%, #c28a25 28%, #f6cf68 52%, #9a6818 100%);
    box-shadow:
        0 1px 0 rgba(255, 236, 169, 0.24),
        0 2px 3px rgba(0, 0, 0, 0.5),
        0 0 7px rgba(198, 144, 39, 0.1);
}

.brand-platform {
    color: #f5f6f2;
    font-size: clamp(2.7rem, 6.8vw, 6.2rem);
    font-weight: 300;
    letter-spacing: -0.055em;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.08);
}

.tagline-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    width: min(100%, 830px);
    margin: clamp(16px, 1.8vw, 23px) auto 0;
}

.tagline {
    flex: 0 1 auto;
    margin: 0;
    color: #a9e454;
    font-size: clamp(1.05rem, 2vw, 1.38rem);
    font-weight: 350;
    letter-spacing: 0.035em;
    line-height: 1.5;
    white-space: nowrap;
    text-shadow: 0 0 22px rgba(128, 214, 70, 0.12);
}

.tagline-support {
    width: min(calc(100% - 40px), 720px);
    margin: 11px auto 0;
    color: rgba(244, 243, 237, 0.68);
    font-size: clamp(0.8rem, 1.1vw, 0.96rem);
    font-weight: 300;
    letter-spacing: 0.018em;
    line-height: 1.5;
    text-align: center;
}

.tagline-accent {
    flex: 1 1 78px;
    max-width: 86px;
    min-width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(142, 226, 75, 0.92));
    box-shadow: 0 0 7px rgba(118, 220, 52, 0.22);
}

.tagline-accent:last-child {
    background: linear-gradient(90deg, rgba(142, 226, 75, 0.92), transparent);
}

.technical-layer {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

.corner-grid {
    position: absolute;
    width: clamp(86px, 10vw, 146px);
    height: clamp(70px, 9vw, 126px);
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(134, 188, 93, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134, 188, 93, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    mask-image: radial-gradient(ellipse at center, black 18%, rgba(0, 0, 0, 0.72) 52%, transparent 88%);
}

.corner-grid--top-left {
    top: 22px;
    left: 22px;
}

.corner-grid--top-right {
    top: 20px;
    right: 24px;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(134, 188, 93, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134, 188, 93, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(155, 222, 99, 0.5) 0 1px, transparent 1.5px);
    background-size: 16px 16px, 16px 16px, 8px 8px;
}

.corner-grid--bottom-left {
    bottom: 42px;
    left: 24px;
}

.corner-grid--bottom-right {
    right: 22px;
    bottom: 34px;
    width: clamp(72px, 6.7vw, 96px);
    height: clamp(68px, 5.8vw, 84px);
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(134, 188, 93, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(134, 188, 93, 0.22) 1px, transparent 1px);
    background-size: 20px 20px;
}

.circuit-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.circuit-group {
    fill: none;
    stroke: rgba(126, 190, 73, 0.31);
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 2px rgba(128, 220, 66, 0.1));
}

.circuit-group--left {
    stroke: rgba(137, 211, 73, 0.46);
}

.circuit-group--lower-left {
    stroke: rgba(126, 192, 72, 0.32);
}

.circuit-group--upper {
    stroke: rgba(113, 164, 73, 0.2);
}

.circuit-nodes {
    fill: #091309;
    stroke: rgba(146, 218, 82, 0.54);
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px rgba(142, 232, 75, 0.2));
}

.hero-swoosh {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: clamp(26px, 6vw, 82px);
    left: 0;
    width: 100%;
    height: clamp(92px, 15vw, 150px);
    overflow: visible;
    pointer-events: none;
}

.hero-swoosh-glow,
.hero-swoosh-line,
.hero-swoosh-secondary,
.bundle-trace,
.hero-convergence-glow,
.hero-convergence-core {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.hero-swoosh-secondary {
    stroke: rgba(120, 212, 62, 0.36);
    stroke-width: 0.8;
    filter: drop-shadow(0 0 2px rgba(128, 221, 63, 0.18));
}

.bundle-trace {
    stroke: rgba(123, 194, 73, 0.58);
    stroke-width: 0.85;
    stroke-linecap: square;
    stroke-linejoin: miter;
    filter: drop-shadow(0 0 2px rgba(125, 218, 65, 0.18));
}

.bundle-trace--one {
    opacity: 0.38;
}

.bundle-trace--two {
    opacity: 0.48;
}

.bundle-trace--three {
    opacity: 0.62;
}

.bundle-trace--four {
    opacity: 0.45;
}

.bundle-trace--five {
    opacity: 0.34;
}

.hero-swoosh-glow {
    stroke: rgba(121, 229, 51, 0.22);
    stroke-width: 13;
    filter: blur(7px);
}

.hero-swoosh-line {
    stroke: #9cec4f;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px rgba(149, 241, 73, 0.53));
}

.hero-convergence-glow {
    stroke: rgba(145, 239, 77, 0.38);
    stroke-width: 11;
    filter: blur(6px);
}

.hero-convergence-core {
    stroke: rgba(187, 255, 100, 0.7);
    stroke-width: 2.4;
    filter: blur(1.2px);
}

.connections {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: clamp(44px, 7vw, 96px);
    width: min(1160px, calc(100% - 48px));
    margin: -80px auto 0;
    padding: clamp(12px, 1vw, 16px) 0 clamp(38px, 4vw, 50px);
}

.connection-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.section-kicker {
    margin: 0 0 9px;
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

h2 {
    min-height: 1.3em;
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-divider {
    width: 1px;
    height: 100%;
    background: linear-gradient(transparent, rgba(182, 138, 55, 0.45) 24%, rgba(98, 132, 72, 0.35) 75%, transparent);
}

.action-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 390px);
    min-height: 58px;
    margin-top: auto;
    padding: 15px 28px;
    color: var(--white);
    background: linear-gradient(180deg, #3b4e25, var(--moss));
    border: 1px solid rgba(187, 190, 101, 0.72);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(244, 226, 162, 0.13),
        inset 0 0 0 1px rgba(143, 171, 88, 0.05),
        0 5px 18px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    font-weight: 550;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.action-button:hover,
.action-button:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #42582a, var(--moss-hover));
    border-color: rgba(219, 204, 125, 0.86);
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 180, 0.19),
        inset 0 0 0 1px rgba(157, 185, 96, 0.07),
        0 10px 28px rgba(0, 0, 0, 0.36),
        0 0 20px rgba(130, 183, 78, 0.13);
}

.action-button:focus-visible {
    outline: 2px solid var(--soft-green);
    outline-offset: 4px;
}

.email-chooser-trigger {
    appearance: none;
    font-family: inherit;
    cursor: pointer;
}

body.email-chooser-open {
    overflow: hidden;
}

.email-chooser-backdrop[hidden] {
    display: none;
}

.email-chooser-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 32px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(4px);
}

.email-chooser {
    width: min(100%, 420px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(180deg, #0b140e 0%, #070b08 100%);
    border: 1px solid rgba(187, 190, 101, 0.58);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(244, 226, 162, 0.08),
        0 24px 70px rgba(0, 0, 0, 0.58),
        0 0 28px rgba(105, 145, 66, 0.08);
}

.email-chooser__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.email-chooser__title {
    min-height: 0;
    margin: 0;
    color: var(--white);
    font-size: clamp(1.18rem, 4vw, 1.42rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.email-chooser__close {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 12px;
    color: rgba(244, 243, 237, 0.82);
    background: rgba(51, 69, 31, 0.38);
    border: 1px solid rgba(187, 190, 101, 0.42);
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.email-chooser__options {
    display: grid;
    gap: 10px;
}

.email-chooser__option {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(59, 78, 37, 0.96), rgba(42, 57, 26, 0.96));
    border: 1px solid rgba(187, 190, 101, 0.48);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(244, 226, 162, 0.08);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 550;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.email-chooser__close:hover,
.email-chooser__close:focus-visible,
.email-chooser__option:hover,
.email-chooser__option:focus-visible {
    border-color: rgba(219, 204, 125, 0.78);
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 180, 0.13),
        0 0 16px rgba(130, 183, 78, 0.1);
}

.email-chooser__option:hover,
.email-chooser__option:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(66, 88, 42, 0.98), rgba(51, 69, 31, 0.98));
}

.email-chooser__close:focus-visible,
.email-chooser__option:focus-visible {
    outline: 2px solid var(--soft-green);
    outline-offset: 3px;
}

.email-chooser__status {
    min-height: 1.5em;
    margin: 14px 0 0;
    color: var(--soft-green);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(182, 138, 55, 0.12);
    text-align: center;
    color: rgba(232, 233, 225, 0.56);
    font-size: 0.78rem;
    letter-spacing: 0.025em;
}

footer p {
    margin: 0;
}

@media (max-width: 800px) {
    .hero {
        min-height: 500px;
        padding: 0 20px;
    }

    .brand-lockup {
        gap: 0.38rem;
    }

    .corner-grid--top-left,
    .corner-grid--bottom-left {
        left: 14px;
    }

    .corner-grid--top-right,
    .corner-grid--bottom-right {
        right: 14px;
    }

    .connections {
        grid-template-columns: 1fr;
        gap: 30px;
        width: min(600px, calc(100% - 40px));
        margin-top: -44px;
        padding-block: 42px;
    }

    .section-divider {
        width: min(270px, 72%);
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(90deg, transparent, rgba(182, 138, 55, 0.45), transparent);
    }

    h2 {
        min-height: 0;
    }
}

@media (max-width: 540px) {
    .hero {
        min-height: 430px;
        padding: 0 16px;
    }

    .hero-content {
        transform: translateX(-50%);
    }

    .brand-lockup {
        gap: 6px;
        white-space: nowrap;
        line-height: 1;
    }

    .brand-name {
        font-size: clamp(2.65rem, 13vw, 3.2rem);
        letter-spacing: -0.025em;
    }

    .brand-platform {
        flex-shrink: 0;
        font-size: clamp(1.45rem, 7vw, 1.75rem);
    }

    .tagline-row {
        gap: 8px;
        width: 100%;
        margin-top: 15px;
    }

    .tagline {
        width: auto;
        margin: 0;
        font-size: clamp(0.72rem, 3.5vw, 0.86rem);
        letter-spacing: 0.015em;
    }

    .tagline-support {
        width: calc(100% - 40px);
        margin-top: 10px;
        font-size: clamp(0.74rem, 3.2vw, 0.84rem);
        line-height: 1.45;
    }

    .tagline-accent {
        flex-basis: 18px;
        min-width: 12px;
        max-width: 24px;
    }

    .corner-grid {
        width: 76px;
        height: 64px;
        opacity: 0.33;
        background-size: 14px 14px;
    }

    .corner-grid--top-right {
        background-size: 14px 14px, 14px 14px, 7px 7px;
    }

    .corner-grid--bottom-right {
        width: 70px;
        height: 70px;
        background-size: 16px 16px;
    }

    .corner-grid--top-left,
    .corner-grid--top-right {
        top: 14px;
    }

    .corner-grid--bottom-left,
    .corner-grid--bottom-right {
        bottom: 22px;
    }

    .connections {
        width: calc(100% - 32px);
        gap: 24px;
        margin-top: -12px;
        padding-block: 34px 30px;
    }

    .action-button {
        min-height: 54px;
        padding-inline: 20px;
        font-size: 0.95rem;
    }

    footer {
        padding-block: 14px;
        padding-inline: 18px;
        line-height: 1.5;
    }

    .email-chooser-backdrop {
        align-items: center;
        padding: 16px;
    }

    .email-chooser {
        padding: 20px 18px 18px;
        border-radius: 16px;
    }

    .email-chooser__header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .email-chooser__option {
        min-height: 46px;
        padding-inline: 12px;
    }
}

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

    .action-button {
        transition: none;
    }

    .email-chooser__option {
        transition: none;
    }
}
