@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/SpaceGrotesk-wght.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #050809;
    --panel: rgba(10, 19, 20, 0.84);
    --panel-strong: rgba(14, 25, 27, 0.96);
    --panel-muted: rgba(11, 20, 21, 0.72);
    --panel-soft: rgba(17, 30, 31, 0.66);
    --line: rgba(158, 202, 190, 0.18);
    --line-strong: rgba(164, 241, 218, 0.34);
    --line-muted: rgba(158, 202, 190, 0.12);
    --text: #eef8f4;
    --muted: #8da39c;
    --soft: #c5d8d1;
    --green: #35d484;
    --teal: #42d6c9;
    --lime: #b6ee62;
    --amber: #e5b95b;
    --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display-font: "Space Grotesk", var(--body-font);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #050809 0%, #071011 28rem, #050809 82rem, #050809 100%);
    color: var(--text);
    font-family: var(--body-font);
}

a {
    color: inherit;
}

.cad-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.cad-shell::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: 118rem;
    background:
        radial-gradient(circle at 78% 5%, rgba(53, 212, 132, 0.14), transparent 32rem),
        radial-gradient(circle at 48% 16%, rgba(66, 214, 201, 0.09), transparent 42rem),
        radial-gradient(circle at 14% 30%, rgba(66, 214, 201, 0.045), transparent 38rem);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 36%, rgba(0, 0, 0, 0.18) 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 36%, rgba(0, 0, 0, 0.18) 72%, transparent 100%);
    pointer-events: none;
}

.cad-shell > section {
    position: relative;
    z-index: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cad-hero {
    position: relative;
    /* Let the shader's radial mask finish fading beyond the hero boundary. */
    overflow: visible;
    min-height: min(92vh, 56rem);
    padding: clamp(4rem, 7vw, 6.25rem) clamp(1rem, 4vw, 4rem) clamp(3.25rem, 5vw, 4.5rem);
}

.planet-wrap {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 55%;
    width: 880px;
    max-width: 170vw;
    aspect-ratio: 1;
    pointer-events: none;
    overflow: visible;
    transform: translateX(-50%) translateY(22%) scale(1.1);
    -webkit-mask-image: radial-gradient(ellipse at center, black 42%, transparent 76%);
    mask-image: radial-gradient(ellipse at center, black 42%, transparent 76%);
}

.relay-shader-canvas {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.planet-wrap.is-shader-error {
    background: radial-gradient(ellipse at center, rgba(66, 214, 201, 0.16), rgba(53, 212, 132, 0.07) 42%, transparent 72%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(30rem, 1.12fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 86rem;
    margin: 0 auto;
}

.hero-copy {
    max-width: 42rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display-font);
    letter-spacing: 0;
}

h1 {
    max-width: 13ch;
    font-size: clamp(4rem, 9vw, 8.3rem);
    line-height: 0.86;
}

.hero-subhead {
    max-width: 42rem;
    margin: 1.6rem 0 0;
    color: var(--soft);
    font-family: var(--display-font);
    font-size: clamp(1.55rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.hero-body {
    max-width: 35rem;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 3.45rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: #04100d;
    box-shadow: 0 1rem 3rem rgba(45, 215, 150, 0.22);
}

.button-secondary {
    border-color: rgba(159, 242, 219, 0.28);
    background: rgba(8, 18, 19, 0.62);
    color: var(--text);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
    color: rgba(238, 248, 244, 0.76);
    font-size: 0.86rem;
}

.hero-proof span {
    border: 1px solid rgba(143, 211, 193, 0.18);
    border-radius: 999px;
    background: rgba(10, 21, 22, 0.54);
    padding: 0.42rem 0.65rem;
}

.workspace-card {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 0.45rem;
    background: linear-gradient(145deg, rgba(13, 28, 30, 0.91), rgba(5, 9, 10, 0.88));
    box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.45), 0 0 0 0.8rem rgba(204, 255, 240, 0.035);
    backdrop-filter: blur(16px);
}

.window-bar {
    display: flex;
    min-height: 2.7rem;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 0 1rem;
}

.traffic {
    width: 0.66rem;
    height: 0.66rem;
    border-radius: 50%;
    opacity: 0.8;
}

.traffic-red { background: #e25f67; }
.traffic-yellow { background: #dfb75a; }
.traffic-green { background: #46d486; }

.window-title {
    margin-left: 0.45rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    min-height: 37rem;
}

.workspace-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(4, 9, 10, 0.46);
    padding: 1rem;
}

.workspace-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2.3rem;
    border: 1px solid rgba(61, 216, 164, 0.28);
    border-radius: 0.35rem;
    background: rgba(53, 212, 132, 0.1);
    color: var(--teal);
    font-family: var(--display-font);
    font-weight: 750;
}

.side-item {
    margin-top: 0.55rem;
    border-radius: 0.35rem;
    padding: 0.62rem 0.72rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.side-item:first-of-type {
    margin-top: 1.6rem;
}

.side-item.active {
    background: rgba(53, 212, 132, 0.13);
    color: var(--teal);
}

.workspace-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.workspace-header,
.action-title-row,
.activity-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.workspace-header h2 {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.muted-label {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(229, 185, 91, 0.3);
    border-radius: 999px;
    background: rgba(229, 185, 91, 0.1);
    color: #f0c76d;
    padding: 0.42rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill.done {
    border-color: rgba(53, 212, 132, 0.35);
    background: rgba(53, 212, 132, 0.12);
    color: var(--green);
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.context-panel,
.action-panel,
.activity-panel,
.feature-card,
.mini-panel {
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: rgba(6, 13, 14, 0.55);
}

.context-panel {
    min-height: 8.4rem;
    padding: 1rem;
}

.context-panel strong,
.action-panel h3 {
    display: block;
    color: var(--text);
    font-family: var(--display-font);
    font-size: 1.2rem;
}

.context-panel p,
.activity-panel p,
.feature-card p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.action-panel {
    padding: 1rem;
}

.mock-button {
    border: 1px solid rgba(53, 212, 132, 0.35);
    border-radius: 999px;
    background: rgba(53, 212, 132, 0.13);
    color: var(--teal);
    padding: 0.58rem 0.78rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
}

.progress-track {
    position: relative;
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(143, 211, 193, 0.13);
    margin: 1rem 0;
}

.progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--lime));
    transition: width 650ms ease;
}

.sequence-list {
    display: grid;
    gap: 0.48rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sequence-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    padding: 0.55rem 0.65rem;
    color: rgba(238, 248, 244, 0.54);
    transition: background 260ms ease, border-color 260ms ease, color 260ms ease, opacity 260ms ease;
}

.sequence-step em {
    color: rgba(141, 163, 156, 0.68);
    font-style: normal;
    font-size: 0.76rem;
}

.step-dot {
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    background: rgba(141, 163, 156, 0.55);
}

.sequence-step.active {
    border-color: rgba(66, 214, 201, 0.28);
    background: rgba(66, 214, 201, 0.07);
    color: var(--text);
}

.sequence-step.active .step-dot {
    background: var(--amber);
    box-shadow: 0 0 0 0.35rem rgba(229, 185, 91, 0.1);
}

.sequence-step.complete {
    color: rgba(238, 248, 244, 0.86);
}

.sequence-step.complete .step-dot {
    background: var(--green);
}

.activity-panel {
    padding: 0.9rem 1rem;
}

.activity-code {
    color: var(--teal);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.8rem;
}

.cad-legal-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.process-section {
    position: relative;
    background: transparent;
    color: var(--text);
    padding: clamp(3.2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
    padding-bottom: clamp(2rem, 3vw, 3rem);
}

/* Static, overlapping haze follows the sections without rectangular fills. */
.process-section::before,
.feature-section::before,
.demo-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -18rem calc(50% - 50vw);
    pointer-events: none;
}

.process-section::before {
    background: radial-gradient(ellipse 80% 48% at 24% 32%, rgba(57, 142, 127, 0.035), rgba(57, 142, 127, 0.012) 45%, transparent 78%);
}

.process-intro {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.process-eyebrow {
    margin: 0 0 0.85rem;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.process-intro h2 {
    color: var(--text);
    font-size: clamp(2.35rem, 5vw, 4.9rem);
    line-height: 0.98;
}

.process-intro p {
    max-width: 41rem;
    margin: 1.1rem auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.6;
}

.process-figure {
    position: relative;
    z-index: 1;
    width: min(100%, 78rem);
    margin: clamp(2.1rem, 4vw, 3.4rem) auto 0;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: rgba(10, 19, 20, 0.62);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(238, 248, 244, 0.03);
    padding: clamp(1rem, 2.8vw, 2.2rem);
}

.process-picture,
.process-image {
    display: block;
}

.process-image {
    width: 100%;
    height: auto;
    filter: none;
    opacity: 1;
}

.legacy-landing {
    --legacy-display-font: "Space Grotesk", var(--body-font);
    --ink: var(--text);
    --legacy-muted: var(--muted);
    --legacy-line: var(--line);
    --surface: var(--panel-strong);
    --surface-soft: rgba(8, 16, 17, 0.96);
    --surface-raised: rgba(14, 25, 27, 0.98);
    --accent: var(--teal);
    --accent-dark: var(--green);
    --focus-ring: rgba(66, 214, 201, 0.22);
    --shadow-soft: rgba(20, 32, 51, 0.10);
    --demo-outer: var(--panel-strong);
    --demo-panel: rgba(9, 18, 19, 0.94);
    --demo-panel-2: rgba(16, 29, 31, 0.82);
    --demo-line: var(--line);
    --demo-muted: var(--muted);
    --error: #9f1239;
    --success: #166534;
    color: var(--ink);
    font-family: var(--body-font);
    line-height: 1.5;
}

.content-section {
    width: min(calc(100% - 2rem), 1120px);
    margin-right: auto;
    margin-left: auto;
    padding: clamp(2.8rem, 5vw, 4.5rem) 0;
}

.legacy-landing h2,
.legacy-landing h3,
.legacy-landing h4 {
    font-family: var(--legacy-display-font);
    letter-spacing: 0;
}

.legacy-landing .section-kicker {
    margin: 0 0 10px;
    font-family: var(--legacy-display-font);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--teal);
    text-transform: uppercase;
}

.legacy-landing .section-heading {
    display: block;
    max-width: 720px;
    margin: 0;
    color: inherit;
    font-family: var(--legacy-display-font);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.55rem);
    line-height: 1.08;
}

.legacy-landing .section-copy {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--legacy-muted);
    font-size: 1.05rem;
}

.legacy-landing label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.legacy-landing input[type="email"],
.legacy-landing input[type="text"],
.legacy-landing textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(5, 10, 11, 0.72);
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
}

.legacy-landing input[type="email"] {
    min-height: 48px;
}

.legacy-landing textarea {
    min-height: 86px;
    resize: vertical;
}

.legacy-landing input[type="email"]:focus,
.legacy-landing input[type="text"]:focus,
.legacy-landing textarea:focus {
    border-color: var(--accent);
    outline: 3px solid var(--focus-ring);
}

.legacy-landing button {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(66, 214, 201, 0.28);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: #04100d;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.legacy-landing button:hover,
.legacy-landing button:focus {
    background: linear-gradient(135deg, var(--teal), var(--green));
}

.legacy-landing button:disabled {
    cursor: default;
    opacity: 0.68;
}

.legacy-landing button:disabled:hover,
.legacy-landing button:disabled:focus {
    background: linear-gradient(135deg, var(--green), var(--teal));
}

.legacy-landing footer {
    margin-top: 18px;
    color: var(--legacy-muted);
    font-size: 0.88rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.demo-section {
    margin-top: clamp(1rem, 2.4vw, 2rem);
    margin-bottom: 0;
    border: 1px solid var(--demo-line);
    border-radius: 0.45rem;
    background: rgba(10, 19, 20, 0.72);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(238, 248, 244, 0.03);
    padding: clamp(2rem, 4vw, 3rem);
    scroll-margin-top: 24px;
}

.demo-section .section-kicker {
    color: var(--teal);
}

.demo-section .section-heading {
    color: #f8fafc;
}

.demo-section .section-copy {
    color: var(--demo-muted);
}

.demo-frame-shell {
    margin-top: 28px;
}

.demo-frame {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
}

.feedback-section {
    width: 100%;
    margin-top: clamp(1.2rem, 2.6vw, 2.2rem);
    border: 0;
    background: transparent;
    padding: clamp(2.3rem, 4.4vw, 3.8rem) max(1rem, calc((100vw - 1120px) / 2));
}

.feedback-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.feedback-form {
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: rgba(10, 19, 20, 0.62);
    box-shadow: inset 0 1px 0 rgba(238, 248, 244, 0.03);
    padding: clamp(1.2rem, 2vw, 1.6rem);
}

.feedback-form textarea {
    background: rgba(5, 10, 11, 0.72);
}

.feedback-form button {
    width: auto;
    min-width: 150px;
    margin-top: 14px;
    padding: 0 18px;
}

.signup-section {
    margin-top: clamp(1.2rem, 2.6vw, 2.2rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    border: 1px solid var(--demo-line);
    border-radius: 0.45rem;
    background: rgba(10, 19, 20, 0.72);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(238, 248, 244, 0.03);
    padding: clamp(2rem, 4vw, 3rem);
}

.signup-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
    gap: 38px;
    align-items: center;
    padding: 0;
}

.signup-section .section-kicker {
    color: var(--teal);
}

.signup-section .section-heading {
    color: #f8fafc;
}

.signup-section .section-copy {
    color: var(--demo-muted);
}

.signup {
    border: 1px solid var(--legacy-line);
    border-radius: 0.45rem;
    background: rgba(5, 10, 11, 0.44);
    box-shadow: inset 0 1px 0 rgba(238, 248, 244, 0.03);
    padding: 28px;
}

.signup h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.35rem;
}

.signup p {
    margin: 0 0 20px;
    color: var(--legacy-muted);
}

.signup button {
    margin-top: 14px;
}

.feature-section {
    position: relative;
    padding: clamp(3.2rem, 5vw, 4.4rem) clamp(1rem, 4vw, 4rem);
    background: transparent;
}

.feature-section::before {
    background: radial-gradient(ellipse 72% 48% at 88% 52%, rgba(48, 157, 148, 0.065), rgba(48, 157, 148, 0.02) 42%, transparent 80%);
}

.demo-section::before {
    inset-block: -22rem;
    background:
        radial-gradient(ellipse 78% 44% at 12% 44%, rgba(45, 164, 133, 0.085), rgba(45, 164, 133, 0.025) 46%, transparent 82%),
        radial-gradient(ellipse 62% 40% at 88% 50%, rgba(54, 153, 166, 0.045), transparent 78%);
}

.section-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 86rem;
    margin: 0 auto 2rem;
}

.section-heading h2 {
    max-width: 14ch;
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    line-height: 0.95;
}

.carousel-controls {
    display: flex;
    gap: 0.65rem;
}

.icon-button {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: rgba(8, 18, 19, 0.74);
    color: var(--text);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.feature-carousel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-columns: clamp(18rem, 25vw, 23rem);
    grid-auto-flow: column;
    gap: 1rem;
    max-width: min(94rem, calc(100vw - 2rem));
    margin: 0 auto;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 8vw 1.2rem 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(66, 214, 201, 0.45) rgba(255, 255, 255, 0.07);
}

.feature-card {
    min-height: 23rem;
    padding: 1rem;
    scroll-snap-align: start;
    opacity: 0.72;
    transform: translateY(0.35rem) scale(0.985);
    transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-card.is-active,
.feature-card:hover {
    border-color: rgba(66, 214, 201, 0.35);
    background: rgba(8, 18, 19, 0.72);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card h3 {
    margin-top: 1rem;
    font-size: 1.35rem;
}

.mini-panel {
    display: flex;
    min-height: 10.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.62rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(66, 214, 201, 0.08), rgba(182, 238, 98, 0.035)),
        rgba(5, 10, 11, 0.58);
    overflow: hidden;
    position: relative;
}

.mini-panel::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0.9rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 214, 201, 0.42), transparent);
    opacity: 0.7;
}

.mini-checks span,
.mini-history span,
.mini-knowledge span,
.mini-context span,
.mini-request span,
.mini-approval span {
    display: block;
    border-radius: 0.3rem;
    background: rgba(143, 211, 193, 0.14);
}

.mini-toolbar {
    display: flex;
    gap: 0.28rem;
    margin-bottom: 0.28rem;
}

.mini-toolbar span {
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
    background: rgba(143, 211, 193, 0.28);
}

.mini-checks .mini-row {
    position: relative;
    min-height: 1.55rem;
    padding: 0.42rem 0.55rem 0.42rem 1.85rem;
    color: var(--soft);
    font-size: 0.78rem;
    opacity: 0;
    transform: translateX(-0.5rem);
    animation: mini-row-in 5.4s ease infinite;
}

.mini-checks .mini-row::before {
    content: "";
    position: absolute;
    left: 0.58rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--green);
    transform: translateY(-50%);
    box-shadow: 0 0 0 0.28rem rgba(53, 212, 132, 0.09);
}

.mini-checks .mini-row:nth-of-type(2) { animation-delay: 0.45s; }
.mini-checks .mini-row:nth-of-type(3) { animation-delay: 0.9s; }

.mini-approval strong,
.mini-request strong,
.mini-context strong {
    font-family: var(--display-font);
    font-size: 1.05rem;
}

.mini-approval span,
.mini-request span,
.mini-context span,
.mini-knowledge span {
    width: fit-content;
    padding: 0.5rem 0.62rem;
    color: var(--muted);
}

.approval-line {
    animation: approval-copy 4.8s ease infinite;
}

.approval-track {
    height: 0.42rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(143, 211, 193, 0.13);
}

.approval-track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber), var(--green));
    transform-origin: left;
    animation: approval-fill 4.8s ease infinite;
}

.mini-approval em {
    width: fit-content;
    border-radius: 999px;
    background: rgba(53, 212, 132, 0.14);
    color: var(--green);
    font-style: normal;
    font-weight: 800;
    padding: 0.48rem 0.65rem;
    opacity: 0;
    transform: translateY(0.3rem);
    animation: approval-done 4.8s ease infinite;
}

.mini-request .request-chip {
    background: rgba(229, 185, 91, 0.14);
    color: #f0c76d;
}

.mini-request strong {
    max-width: 13rem;
}

.mini-request em {
    width: fit-content;
    border-radius: 999px;
    background: rgba(66, 214, 201, 0.14);
    color: var(--teal);
    font-style: normal;
    font-weight: 800;
    padding: 0.48rem 0.65rem;
    opacity: 0;
    transform: translateY(0.35rem);
    animation: request-sent 4.6s ease infinite;
}

.mini-history {
    justify-content: flex-start;
}

.mini-history span {
    position: relative;
    min-height: 1.24rem;
    padding: 0.34rem 0.55rem 0.34rem 1.55rem;
    color: var(--muted);
    font-size: 0.74rem;
    opacity: 0;
    transform: translateY(0.35rem);
    animation: history-row 5.8s ease infinite;
}

.mini-history span::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--teal);
    transform: translateY(-50%);
}

.mini-history span:nth-child(1) { width: 92%; }
.mini-history span:nth-child(2) { width: 76%; animation-delay: 0.38s; }
.mini-history span:nth-child(3) { width: 84%; background: rgba(66, 214, 201, 0.18); animation-delay: 0.76s; }
.mini-history span:nth-child(4) { width: 68%; animation-delay: 1.14s; }

.mini-context span {
    opacity: 0;
    transform: translateX(-0.4rem);
    animation: context-field 5.2s ease infinite;
}

.mini-context span:nth-of-type(1) { animation-delay: 0.25s; }
.mini-context span:nth-of-type(2) { animation-delay: 0.55s; }
.mini-context span:nth-of-type(3) { animation-delay: 0.85s; }

.mini-context span:nth-of-type(2),
.mini-knowledge span:nth-child(2) {
    background: rgba(53, 212, 132, 0.17);
    color: var(--soft);
}

.mini-knowledge span {
    position: relative;
    padding-left: 1.6rem;
    opacity: 0;
    transform: translateY(0.25rem);
    animation: knowledge-row 5.6s ease infinite;
}

.mini-knowledge span::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.12rem;
    background: rgba(66, 214, 201, 0.72);
    transform: translateY(-50%) rotate(45deg);
}

.mini-knowledge span:nth-child(2) { animation-delay: 0.35s; }
.mini-knowledge span:nth-child(3) { animation-delay: 0.7s; }
.mini-knowledge span:nth-child(4) { animation-delay: 1.05s; }

@keyframes mini-row-in {
    0%, 12% { opacity: 0; transform: translateX(-0.5rem); }
    22%, 82% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0.72; transform: translateX(0); }
}

@keyframes approval-fill {
    0%, 18% { transform: scaleX(0.12); }
    48%, 100% { transform: scaleX(1); }
}

@keyframes approval-copy {
    0%, 44% { color: #f0c76d; }
    58%, 100% { color: var(--green); }
}

@keyframes approval-done {
    0%, 46% { opacity: 0; transform: translateY(0.3rem); }
    58%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes request-sent {
    0%, 44% { opacity: 0; transform: translateY(0.35rem); }
    58%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes history-row {
    0%, 12% { opacity: 0; transform: translateY(0.35rem); }
    24%, 84% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.65; transform: translateY(0); }
}

@keyframes context-field {
    0%, 16% { opacity: 0; transform: translateX(-0.4rem); }
    28%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes knowledge-row {
    0%, 12% { opacity: 0; transform: translateY(0.25rem); }
    24%, 86% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.7; transform: translateY(0); }
}

/* A narrow editorial introduction leads into the cards, then the full workspace. */
.feature-section {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
    width: min(calc(100% - 4rem), 82rem);
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 7rem) 0 6rem;
}

.feature-section > .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin: 0;
}

.feature-section .section-heading h2 {
    max-width: 15ch;
    margin: 1rem 0 0;
    font-size: clamp(2.3rem, 3.3vw, 3.4rem);
    line-height: 1.06;
}

.feature-section .feature-carousel {
    width: 100%;
    min-width: 0;
    margin: 2.5rem 0 0;
    grid-auto-columns: clamp(17rem, 23vw, 21rem);
    padding-right: 2rem;
}

.demo-section {
    width: min(calc(100% - 3rem), 94rem);
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.demo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 2rem;
    margin: 0 clamp(1rem, 4vw, 4rem) 2rem;
}

.demo-intro .section-kicker {
    grid-column: 1 / -1;
}

.demo-intro .section-heading {
    max-width: none;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.demo-intro .section-copy {
    margin: 0 0 0.25rem;
}

.demo-frame-shell {
    margin-top: 0;
    padding: clamp(0.25rem, 1.2vw, 1.1rem);
    border: 1px solid var(--demo-line);
    border-radius: 0.6rem;
    background: rgba(10, 19, 20, 0.72);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22);
}

/* Signup leads the closing area; feedback remains a quieter secondary column. */
.closing-area {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    width: min(calc(100% - 4rem), 78rem);
    margin: clamp(4rem, 7vw, 7rem) auto clamp(4rem, 7vw, 7rem);
    padding-top: clamp(2.5rem, 4vw, 4rem);
    border-top: 1px solid var(--line);
}

.closing-area .content-section {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.closing-area .feedback-wrap,
.closing-area .signup-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.closing-area .feedback-section {
    padding-top: 3rem;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    border-left: 1px solid var(--line);
}

.closing-area .section-heading {
    font-size: clamp(1.8rem, 2.5vw, 2.55rem);
    max-width: 23ch;
}

.closing-area .feedback-section .section-heading {
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.closing-area .feedback-form,
.closing-area .signup {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.closing-area .feedback-form textarea {
    min-height: 150px;
}

@media (max-width: 980px) {
    .feature-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .feature-section > .section-heading {
        flex-direction: row;
        align-items: end;
        width: 100%;
    }

    .feature-section .section-heading h2 {
        max-width: 24ch;
    }

    .feature-section .feature-carousel {
        margin-top: 0;
    }

    .demo-intro {
        grid-template-columns: 1fr;
        row-gap: 0.6rem;
    }
}

@media (max-width: 680px) {
    .feature-section,
    .closing-area {
        width: calc(100% - 2rem);
    }

    .feature-section {
        padding-block: 3rem 4.5rem;
    }

    .feature-section > .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .demo-section.content-section {
        width: calc(100% - 1rem);
        padding: 0;
    }

    .demo-intro {
        margin-inline: 0.5rem;
    }

    .closing-area {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .closing-area .feedback-section {
        padding: 2.5rem 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .workspace-card {
        max-width: 48rem;
    }

}

@media (max-width: 680px) {
    .cad-hero {
        padding-top: 3rem;
    }

    h1 {
        font-size: clamp(3.3rem, 17vw, 5.2rem);
    }

    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        display: none;
    }

    .context-grid,
    .workspace-header,
    .action-title-row,
    .activity-panel,
    .section-heading {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .context-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .status-pill,
    .mock-button,
    .activity-code {
        align-self: flex-start;
    }

    .feature-carousel {
        grid-auto-columns: minmax(16rem, 84vw);
        padding-right: 1.5rem;
    }

    .demo-section {
        padding: 30px 18px 32px;
    }

    .feedback-wrap,
    .signup-wrap {
        grid-template-columns: 1fr;
    }

    .feedback-form button {
        width: 100%;
    }

    .demo-frame {
        min-height: 900px;
    }
}

.jump-nav {
    display: none;
}

@media (min-width: 1200px) {
    .jump-nav {
        display: block;
        position: fixed;
        z-index: 20;
        left: 24px;
        top: clamp(100px, 18vh, 180px);
        padding: 8px;
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        background: rgba(5, 13, 14, 0.9);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(12px);
    }

    .jump-nav-label {
        display: block;
        padding: 8px;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: var(--teal);
        font: 600 0.68rem var(--body-font);
        letter-spacing: 0.12em;
    }

    .jump-nav-links {
        width: 132px;
        padding-top: 4px;
    }

    .jump-nav-links a {
        display: block;
        padding: 8px;
        border-radius: 4px;
        color: var(--soft);
        font-size: 0.78rem;
        line-height: 1.4;
        text-decoration: none;
    }

    .jump-nav-links a:hover {
        color: var(--teal);
        background: rgba(66, 214, 201, 0.06);
    }

    .jump-nav :focus-visible {
        outline: 2px solid var(--teal);
        outline-offset: 2px;
    }

    .demo-section {
        margin-top: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    .button:hover {
        transform: none;
    }

}

@media (min-width: 768px) {
    .planet-wrap {
        width: 1240px;
        transform: translateX(-50%) translateY(4%) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .planet-wrap {
        width: 1520px;
    }
}

/* Use the landing page's existing phone breakpoint. */
.mobile-demo-card { display: none; }
@media (max-width: 680px) {
    .demo-frame-shell { display: none; }
    .mobile-demo-card {
        display: block;
        padding: 1.5rem;
        border: 1px solid var(--demo-line);
        border-radius: 0.6rem;
        background: rgba(10, 19, 20, 0.72);
    }
    .mobile-demo-card h3 { margin: 0 0 0.75rem; }
    .mobile-demo-card p { margin: 0 0 1.25rem; color: var(--muted); }
}
