:root {
    --bg: #060a12;
    --bg-soft: #0a1120;
    --surface: rgba(16, 26, 45, 0.72);
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.26);
    --text: #e9eefb;
    --muted: #9aa8c2;
    --faint: #687791;
    --cyan: #5eead4;
    --blue: #74a9ff;
    --violet: #b39bff;
    --amber: #f7c873;
    --green: #4ade80;
    --red: #f87171;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shell: 1180px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas,
        "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 78% 2%, rgba(59, 130, 246, 0.15), transparent 64%),
        radial-gradient(ellipse 48% 42% at 12% 12%, rgba(45, 212, 191, 0.1), transparent 62%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99, 102, 241, 0.06), transparent 70%);
}

::selection {
    background: rgba(94, 234, 212, 0.28);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 10%, transparent 76%);
    mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 10%, transparent 76%);
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--cyan);
    color: #04121a;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 10, 18, 0.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(94, 234, 212, 0.32);
    border-radius: 11px;
    background: linear-gradient(150deg, rgba(94, 234, 212, 0.16), rgba(116, 169, 255, 0.1));
    color: var(--cyan);
    box-shadow: inset 0 0 22px rgba(94, 234, 212, 0.08), 0 8px 26px -14px rgba(94, 234, 212, 0.7);
}

.brand-mark svg {
    width: 23px;
    height: 23px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: 0.015em;
}

.brand-copy small {
    color: var(--faint);
    font-size: 0.69rem;
    letter-spacing: 0.08em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    padding: 6px 0;
    color: var(--muted);
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.85);
    animation: pulse 2.4s ease-out infinite;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.student-pill {
    gap: 7px;
}

.student-pill-label {
    color: var(--faint);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

.student-id {
    max-width: 20ch;
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.68rem;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.logout-button svg {
    width: 13px;
    height: 13px;
}

.logout-button:hover {
    border-color: rgba(94, 234, 212, 0.4);
    background: rgba(94, 234, 212, 0.06);
    color: #d8fff9;
}

/* Board status */

.board-status-wrap {
    padding-top: 28px;
}

.board-status-card {
    --status-accent: var(--cyan);
    --status-tint: rgba(94, 234, 212, 0.08);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
    gap: 20px 36px;
    align-items: center;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background:
        radial-gradient(620px circle at 0% 0%, var(--status-tint), transparent 56%),
        linear-gradient(120deg, rgba(16, 27, 46, 0.9), rgba(8, 15, 28, 0.9));
    box-shadow: 0 24px 64px -42px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.board-status-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--status-accent), transparent);
    opacity: 0.55;
}

.board-status-card[data-state="busy"] {
    --status-accent: var(--amber);
    --status-tint: rgba(247, 200, 115, 0.08);
}

.board-status-card[data-state="offline"],
.board-status-card[data-state="unavailable"] {
    --status-accent: var(--red);
    --status-tint: rgba(248, 113, 113, 0.07);
}

.board-status-card[data-state="unconfigured"],
.board-status-card[data-state="awaiting"] {
    --status-accent: var(--blue);
    --status-tint: rgba(116, 169, 255, 0.08);
}

.board-status-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.board-status-signal {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--status-accent);
    box-shadow: 0 0 12px var(--status-accent);
}

.board-status-card[data-state="available"] .board-status-signal {
    animation: status-pulse 2.4s ease-out infinite;
}

.board-status-copy {
    min-width: 0;
}

.board-status-kicker {
    margin: 0 0 4px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.11em;
}

.board-status-title {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.board-status-detail {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-status-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 26px;
    border-left: 1px solid var(--line);
}

.board-status-facts > div {
    min-width: 0;
}

.board-status-facts dt {
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.board-status-facts dd {
    margin: 0;
    overflow: hidden;
    color: #dbe6f8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-status-cache {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 13rem;
    margin: 0;
    color: var(--faint);
    font-size: 0.61rem;
    line-height: 1.65;
}

.board-status-cache-dot {
    width: 4px;
    height: 4px;
    flex-shrink: 0;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--status-accent);
    opacity: 0.65;
}

/* Hero */

#overview,
#capabilities,
#workflow {
    scroll-margin-top: 104px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    gap: clamp(40px, 6vw, 78px);
    align-items: center;
    padding-block: clamp(72px, 9vw, 118px) clamp(72px, 8vw, 108px);
}

.hero-copy {
    animation: fade-up 0.8s ease both;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--cyan);
    font-size: 0.69rem;
    font-weight: 650;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--cyan), rgba(94, 234, 212, 0.1));
}

.hero h1 {
    margin-bottom: 26px;
    font-size: clamp(2.7rem, 5.4vw, 4.65rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.07;
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(100deg, #f4f8ff 4%, #6ff0dd 42%, #78adff 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lead {
    max-width: 34rem;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(0.98rem, 1.2vw, 1.06rem);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.89rem;
    font-weight: 600;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
        background 0.2s ease, color 0.2s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: linear-gradient(118deg, #83f2e1, #84b8ff);
    color: #04121a;
    box-shadow: 0 12px 34px -14px rgba(94, 234, 212, 0.65);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(94, 234, 212, 0.75);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, 0.4);
    background: rgba(94, 234, 212, 0.06);
    color: #d8fff9;
}

.hero-facts {
    display: flex;
    margin: 46px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}

.hero-facts > div {
    display: flex;
    flex: 1 1 0;
    flex-direction: column-reverse;
    gap: 2px;
    min-width: 0;
    padding: 0 22px;
    border-left: 1px solid var(--line);
}

.hero-facts > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-facts dt {
    color: var(--faint);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.hero-facts dd {
    color: #dbe6f8;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Terminal preview */

.hero-visual {
    position: relative;
    min-width: 0;
    animation: fade-up 0.9s 0.16s ease both;
}

.terminal {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: linear-gradient(158deg, #101b2f 0%, #0a1222 52%, #070d19 100%);
    box-shadow: 0 50px 100px -32px rgba(0, 0, 0, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.terminal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.65), transparent);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 48px;
    padding: 0 17px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.024);
}

.window-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a4559;
}

.window-dots i:first-child {
    background: rgba(248, 113, 113, 0.65);
}

.window-dots i:nth-child(2) {
    background: rgba(251, 191, 36, 0.55);
}

.window-dots i:nth-child(3) {
    background: rgba(74, 222, 128, 0.5);
}

.terminal-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--green);
    font-size: 0.65rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
}

.board-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(94, 234, 212, 0.025);
}

.board-label {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
}

.board-strip strong {
    color: #c9d6ea;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.board-led {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(74, 222, 128, 0.24);
    border-radius: 6px;
    background: rgba(74, 222, 128, 0.06);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

.board-led span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
    animation: led-blink 2.6s ease-in-out infinite;
}

.code {
    margin: 0;
    padding: 22px 22px 20px;
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(5, 9, 17, 0.16), rgba(5, 9, 17, 0.36));
    color: #c6d3e7;
    font-family: var(--font-mono);
    font-size: 0.77rem;
    line-height: 1.88;
    scrollbar-width: thin;
    scrollbar-color: #2b3a52 transparent;
    tab-size: 4;
}

.code code {
    font-family: inherit;
}

.tok-kw {
    color: var(--violet);
}

.tok-num {
    color: var(--amber);
}

.build-log {
    padding: 16px 22px 18px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.95;
}

.build-log p {
    display: flex;
    gap: 10px;
    margin: 0;
    white-space: nowrap;
}

.log-time {
    color: #5a6983;
}

.ok {
    color: var(--green);
}

.prompt-line {
    margin-top: 3px !important;
    align-items: center;
}

.prompt {
    color: var(--cyan);
}

.cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
    animation: blink 1.1s steps(1) infinite;
}

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(13, 21, 37, 0.93);
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: float 7s ease-in-out infinite;
}

.float-card-top {
    top: -58px;
    left: -26px;
}

.float-card-bottom {
    right: -24px;
    bottom: -26px;
    animation-delay: -3.5s;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 9px;
    background: rgba(94, 234, 212, 0.09);
    color: var(--cyan);
}

.float-icon svg {
    width: 17px;
    height: 17px;
}

.float-icon-blue {
    border-color: rgba(116, 169, 255, 0.24);
    background: rgba(116, 169, 255, 0.09);
    color: var(--blue);
}

.float-card strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

.float-card small {
    display: block;
    color: var(--faint);
    font-size: 0.64rem;
    line-height: 1.45;
}

/* Sections */

.section {
    padding-block: clamp(64px, 8vw, 100px);
}

.section-head {
    max-width: 650px;
    margin-bottom: clamp(34px, 4vw, 48px);
}

.section-head .eyebrow,
.workflow-copy .eyebrow,
.cta-copy .eyebrow {
    margin-bottom: 16px;
}

.section-head h2,
.workflow-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(1.95rem, 3.5vw, 2.85rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-wrap: balance;
}

.section-head > p:last-child,
.workflow-copy > p {
    max-width: 36rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 25px 23px 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, rgba(20, 32, 54, 0.58), rgba(10, 17, 30, 0.56));
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at 100% 0%, rgba(94, 234, 212, 0.09), transparent 62%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow: 0 26px 52px -34px rgba(94, 234, 212, 0.55);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(94, 234, 212, 0.18);
    border-radius: 12px;
    background: rgba(94, 234, 212, 0.07);
    color: var(--cyan);
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature-index {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.feature-card:nth-child(2) .feature-icon {
    border-color: rgba(116, 169, 255, 0.2);
    background: rgba(116, 169, 255, 0.07);
    color: var(--blue);
}

.feature-card:nth-child(2)::before {
    background: radial-gradient(320px circle at 100% 0%, rgba(116, 169, 255, 0.1), transparent 62%);
}

.feature-card:nth-child(3) .feature-icon {
    border-color: rgba(179, 155, 255, 0.2);
    background: rgba(179, 155, 255, 0.07);
    color: var(--violet);
}

.feature-card:nth-child(3)::before {
    background: radial-gradient(320px circle at 100% 0%, rgba(179, 155, 255, 0.1), transparent 62%);
}

.feature-card:nth-child(4) .feature-icon {
    border-color: rgba(247, 200, 115, 0.2);
    background: rgba(247, 200, 115, 0.07);
    color: var(--amber);
}

.feature-card:nth-child(4)::before {
    background: radial-gradient(320px circle at 100% 0%, rgba(247, 200, 115, 0.09), transparent 62%);
}

.feature-card h3 {
    margin-bottom: 9px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.8;
}

/* Workflow */

.workflow-section {
    border-top: 1px solid var(--line);
}

.workflow {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 82px);
    align-items: start;
}

.workflow-copy {
    position: sticky;
    top: 116px;
}

.workflow-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--faint);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.note-led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 9px rgba(94, 234, 212, 0.8);
}

.workflow-list {
    position: relative;
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
}

.workflow-list::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 34px;
    left: 21px;
    width: 1px;
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.45), var(--line) 55%, transparent);
}

.workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 30px;
}

.workflow-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--bg);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 6px var(--bg);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.workflow-step:hover .step-marker {
    border-color: rgba(94, 234, 212, 0.5);
    background: rgba(94, 234, 212, 0.07);
    color: #b8fff4;
}

.step-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
}

.step-head h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 600;
}

.step-head span {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
}

.workflow-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.8;
}

/* Preview notice */

.cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: clamp(48px, 6vw, 76px);
    padding: clamp(26px, 4.5vw, 44px);
    overflow: hidden;
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(760px circle at 100% 0%, rgba(116, 169, 255, 0.14), transparent 52%),
        linear-gradient(120deg, rgba(19, 33, 55, 0.9), rgba(8, 15, 28, 0.92));
}

.cta-panel::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(94, 234, 212, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.cta-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.cta-copy > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.cta-badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px dashed rgba(94, 234, 212, 0.4);
    border-radius: 8px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.11em;
    white-space: nowrap;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 26px 34px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    color: var(--faint);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

/* Motion */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--status-accent);
    }
    70% {
        box-shadow: 0 0 0 7px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(94, 234, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
    }
}

@keyframes led-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

/* Responsive */

@media (max-width: 1120px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .float-card-top {
        top: -56px;
        left: -14px;
    }

    .float-card-bottom {
        right: -14px;
    }
}

@media (max-width: 980px) {
    .board-status-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .board-status-facts {
        padding: 16px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .board-status-cache {
        max-width: none;
        padding-top: 12px;
        border-top: 1px dashed var(--line);
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
        padding-block: 72px 84px;
    }

    .hero-copy {
        max-width: 680px;
    }

    .hero-visual {
        width: 100%;
        max-width: 620px;
    }

    .hero-facts {
        max-width: 520px;
    }

    .workflow {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .workflow-copy {
        position: static;
        max-width: 620px;
    }

    .workflow-list {
        max-width: 680px;
    }
}

@media (max-width: 860px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-inner {
        gap: 20px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .header-inner {
        min-height: 68px;
    }

    .board-status-wrap {
        padding-top: 20px;
    }

    .board-status-card {
        padding: 18px 20px;
    }

    .board-status-detail {
        overflow: visible;
        white-space: normal;
    }

    .float-card {
        display: none;
    }

    .hero {
        padding-block: 58px 68px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 9.6vw, 3.4rem);
    }

    .hero-facts {
        margin-top: 38px;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-pill-label {
        display: none;
    }

    .student-id {
        max-width: 14ch;
    }

    .feature-top {
        margin-bottom: 30px;
    }

    .brand-copy small {
        display: none;
    }

    .terminal-bar {
        gap: 10px;
        padding-inline: 14px;
    }

    .board-strip {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-inline: 16px;
    }

    .board-strip > div:nth-child(2) {
        display: none;
    }

    .code {
        padding: 18px 16px;
        font-size: 0.72rem;
    }

    .build-log {
        padding: 14px 16px 16px;
        font-size: 0.64rem;
    }

    .build-log p {
        gap: 8px;
    }

    .hero-facts > div {
        padding-inline: 12px;
    }

    .hero-facts dd {
        font-size: 0.9rem;
    }

    .hero-facts dt {
        font-size: 0.64rem;
    }

    .section-head h2,
    .workflow-copy h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }
}

@media (max-width: 430px) {
    .header-inner {
        gap: 12px;
    }

    .status-pill {
        padding: 7px 10px;
        font-size: 0.64rem;
        letter-spacing: 0.04em;
    }

    .student-pill {
        gap: 6px;
        padding-inline: 8px;
    }

    .student-id {
        max-width: 12ch;
        font-size: 0.62rem;
    }

    .logout-button {
        padding: 7px;
    }

    .logout-button span {
        display: none;
    }

    .board-status-card {
        padding: 16px;
    }

    .board-status-main {
        gap: 11px;
    }

    .board-status-title {
        font-size: 0.96rem;
    }

    .board-status-detail {
        font-size: 0.71rem;
    }

    .board-status-facts {
        gap: 8px;
    }

    .board-status-facts dt {
        font-size: 0.57rem;
    }

    .board-status-facts dd {
        font-size: 0.65rem;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .brand-copy strong {
        font-size: 0.96rem;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-facts {
        gap: 0;
    }

    .hero-facts > div {
        padding-inline: 10px;
    }

    .hero-facts dd {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .terminal-title {
        font-size: 0.64rem;
    }

    .terminal-status {
        font-size: 0.6rem;
    }

    .build-log p {
        white-space: normal;
    }

    .workflow-step {
        gap: 15px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
