* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #07090d;
    --panel: #0d1218;
    --panel-2: #10171f;
    --text: #f2f5f4;
    --muted: #8d9aa4;
    --green: #00c77b;
    --cyan: #49c6ff;
    --line: rgba(255, 255, 255, 0.09);
    --grid: rgba(255, 255, 255, 0.035);
}

body {
    margin: 0;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

/* HEADER */

.world-header {
    min-height: 110px;
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 13, 0.94);
    position: relative;
}

.world-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 5%;
    width: 110px;
    height: 1px;
    background: var(--green);
}

.world-logo {
    display: block;
    width: 245px;
    height: 60px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f4eedf;
}

.world-logo img {
    width: 245px;
    height: 60px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.world-nav {
    display: flex;
    gap: 34px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.world-nav a {
    color: #dfe7e4;
    text-decoration: none;
    position: relative;
}

.world-nav a:hover {
    color: var(--green);
}

/* HERO */

.hero {
    min-height: 720px;
    padding: 105px 6% 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -160px;
    top: 80px;
    border: 1px solid rgba(0, 199, 123, .15);
    border-radius: 50%;
    box-shadow:
        0 0 100px rgba(0, 199, 123, .04),
        inset 0 0 100px rgba(73, 198, 255, .025);
}

.hero::after {
    content: "TERRESTRAIL // PUBLIC AGENT NETWORK";
    position: absolute;
    right: 6%;
    bottom: 32px;
    color: #53606a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}

.hero-kicker,
.section-number,
.experiment-number,
.status {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--green);
    margin-bottom: 28px;
}

.hero-kicker::before {
    content: "●";
    margin-right: 10px;
}

.hero h1 {
    max-width: 1050px;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(58px, 8vw, 122px);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.hero h1::selection {
    background: var(--green);
    color: #07100c;
}

.hero-intro {
    max-width: 760px;
    margin: 48px 0 0;
    font-size: clamp(23px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: #e8eeec;
}

.hero-copy {
    max-width: 670px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-button {
    padding: 15px 22px;
    border: 1px solid var(--green);
    background: var(--green);
    color: #03120c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.primary-button:hover {
    background: transparent;
    color: var(--green);
}

.text-link {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* IDEA */

.idea-section,
.experiments-section {
    padding: 90px 6%;
    border-bottom: 1px solid var(--line);
}

.section-number {
    color: var(--green);
    margin-bottom: 60px;
}

.idea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9%;
}

.idea-grid h2,
.experiments-heading h2,
.open-statement h2 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: -.045em;
}

.idea-grid h2 {
    font-size: clamp(46px, 5vw, 76px);
    line-height: .97;
    text-transform: uppercase;
}

.idea-copy {
    max-width: 580px;
    color: #b2bdc4;
    font-size: 19px;
    line-height: 1.65;
}

.idea-copy p:first-child {
    margin-top: 0;
}

.idea-emphasis {
    margin-top: 38px;
    color: var(--text);
    font-weight: 800;
}

/* EXPERIMENTS */

.experiments-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.experiments-heading h2 {
    font-size: clamp(54px, 7vw, 100px);
    line-height: .9;
    text-transform: uppercase;
}

.experiments-heading p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.experiment-card {
    min-height: 410px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    background: rgba(13, 18, 24, .82);
    position: relative;
    overflow: hidden;
}

.experiment-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--green);
    transition: height .2s ease;
}

a.experiment-card:hover {
    background: var(--panel-2);
}

a.experiment-card:hover::after {
    height: 100%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.experiment-number {
    color: #77848d;
}

.status {
    font-size: 9px;
    border: 1px solid #49535b;
    color: #8d9aa4;
    padding: 7px 9px;
}

.status.live {
    border-color: var(--green);
    color: var(--green);
}

.status.live::before {
    content: "● ";
}

.card-body h3 {
    margin: 30px 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -.05em;
}

.card-body p {
    max-width: 540px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.card-body .experiment-line {
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
}

.card-footer {
    padding-top: 30px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.card-footer.muted {
    color: #69757e;
}

.future-card {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,.012),
            rgba(255,255,255,.012) 12px,
            transparent 12px,
            transparent 24px
        ),
        rgba(13,18,24,.82);
}

/* FINAL STATEMENT */

.open-section {
    padding: 125px 6%;
    background:
        radial-gradient(circle at 80% 20%, rgba(0,199,123,.11), transparent 34%),
        #05070a;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.open-statement span {
    display: block;
    margin-bottom: 42px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.open-statement h2 {
    max-width: 1100px;
    font-size: clamp(52px, 7vw, 104px);
    line-height: .94;
    text-transform: uppercase;
}

/* FOOTER */

.world-footer {
    padding: 48px 6%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: #87939c;
    background: #05070a;
    font-size: 13px;
    line-height: 1.7;
}

.world-footer strong {
    color: var(--text);
}

.footer-contact {
    text-align: right;
}

.footer-contact a {
    color: var(--green);
    text-underline-offset: 4px;
}

/* MOBILE */

@media (max-width: 800px) {

    .world-header {
        min-height: auto;
        align-items: center;
    }

    .world-logo {
        width: 190px;
        height: 50px;
    }

    .world-logo img {
        width: 190px;
        height: 50px;
    }

    .world-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .hero::before {
        width: 340px;
        height: 340px;
        right: -220px;
    }

    .hero h1 {
        font-size: clamp(52px, 16vw, 82px);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .idea-grid,
    .experiment-grid {
        grid-template-columns: 1fr;
    }

    .experiments-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .experiment-card {
        min-height: 360px;
    }

    .world-footer {
        flex-direction: column;
    }

    .footer-contact {
        text-align: left;
    }
}

/* Transparent logo on dark TerrestrAIl header */
.world-logo {
    background: transparent;
    border: 0;
}

.world-logo img {
    object-fit: contain;
}

/* Final header logo sizing */
.world-logo {
    width: 205px;
    height: 48px;
    background: transparent;
    border: 0;
    overflow: visible;
}

.world-logo img {
    display: block;
    width: 205px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
}

.temporary-wordmark {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* Remove header accent line */
.world-header::after {
    display: none;
}

/* Hero refinement */
.hero {
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-intro {
    max-width: 780px;
    margin-top: 50px;
}

.hero-copy {
    display: none;
}
