:root {
    --bg: #f7f9fc;
    --ink: #111827;
    --muted: #5f6b7a;
    --line: #d9e1ec;
    --panel: #ffffff;
    --panel-strong: #eef4ff;
    --navy: #0b2341;
    --navy-deep: #07182e;
    --navy-2: #123d6a;
    --blue: #1976d2;
    --blue-strong: #2563eb;
    --blue-hover: #1565c0;
    --cyan: #38bdf8;
    --green: #10b981;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
    --radius: 18px;
    --media-radius: 14px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 4px;
}

p,
h1,
h2,
h3,
strong {
    margin: 0;
}

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

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.site-shell {
    width: min(var(--shell), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
    background: rgba(11, 35, 65, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
}

.brand img,
.footer-brand img {
    width: 182px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #dce5f3;
    font-size: 0.95rem;
    font-weight: 650;
}

.site-nav a {
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav a:hover {
    color: #ffffff;
}

.nav-cta {
    padding: 10px 16px;
    border: 1px solid rgba(25, 118, 210, 0.92);
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(25, 118, 210, 0.24);
}

.nav-cta:hover {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 74px;
    background:
        radial-gradient(circle at 74% 28%, rgba(56, 189, 248, 0.36), transparent 34%),
        radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.24), transparent 30%),
        linear-gradient(135deg, #0e2a47 0%, #123d6a 52%, #1e60a8 100%);
    color: #ffffff;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.28) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 610px;
    min-width: 0;
    padding-top: 4px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-section .eyebrow,
.section-dark .eyebrow,
.education-panel .eyebrow,
.final-cta .eyebrow {
    color: #93c5fd;
}

h1,
h2 {
    letter-spacing: 0;
    line-height: 1.04;
}

h1 {
    font-size: clamp(2.1rem, 3.1vw, 2.85rem);
    max-width: 780px;
    overflow-wrap: break-word;
}

h1 span {
    display: block;
}

.hero-headline-accent {
    margin-top: 6px;
    background: linear-gradient(90deg, #bfdbfe 0%, var(--cyan) 52%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
    font-size: 1.1rem;
    line-height: 1.25;
}

.hero-lede {
    margin-top: 24px;
    color: #cbd5e1;
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    max-width: 640px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    background: var(--blue-strong);
    color: #ffffff;
    box-shadow:
        0 18px 44px rgba(37, 99, 235, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-actions .button-primary {
    min-width: 220px;
    min-height: 58px;
    padding: 0 30px;
    font-size: 1.05rem;
    box-shadow:
        0 18px 46px rgba(25, 118, 210, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.38);
}

.button-secondary {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.section-light .button-secondary,
.section-tint .button-secondary {
    color: var(--ink);
    background: #ffffff;
}

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 7px 14px 14px;
    border: 2px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.28),
        0 0 72px rgba(56, 189, 248, 0.22);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 10% 4%;
    z-index: 0;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(96, 165, 250, 0.28));
    filter: blur(46px);
}

.hero-visual picture,
.feature-image,
.wide-image {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-window-chrome {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    height: 20px;
    padding: 0 8px;
}

.hero-window-chrome .window-controls {
    gap: 7px;
    padding-top: 2px;
}

.hero-window-chrome .window-controls span {
    width: 8px;
    height: 8px;
}

.hero-window {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--media-radius);
    background: rgba(248, 250, 252, 0.94);
}

.hero-visual img,
.feature-image img,
.wide-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-window img {
    display: block;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.section {
    padding: 84px 0;
}

.section-light {
    background: #ffffff;
}

.section-tint {
    background:
        radial-gradient(circle at 8% 18%, rgba(16, 185, 129, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef7f4 100%);
}

.output-section {
    background:
        radial-gradient(circle at 84% 16%, rgba(56, 189, 248, 0.1), transparent 32%),
        radial-gradient(circle at 18% 24%, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.output-panel {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
}

.output-copy {
    min-width: 0;
}

.output-copy h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.output-copy > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.08rem;
}

.output-cards {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.output-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 18px;
    border: 1px solid #dce7f4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.output-card-featured {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
}

.output-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-strong);
    grid-row: span 2;
}

.output-card-featured .output-card-icon {
    background: var(--blue-strong);
    color: #ffffff;
}

.output-card h3 {
    font-size: 0.98rem;
    line-height: 1.3;
}

.output-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.output-media {
    overflow: hidden;
    --motion-poster: url("../video/homepage/export-project-poster.webp");
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: var(--media-radius);
    background: rgba(255, 255, 255, 0.68);
    box-shadow:
        0 26px 72px rgba(16, 24, 40, 0.15),
        0 0 52px rgba(37, 99, 235, 0.14);
}

.output-media img,
.output-media video {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.section-dark {
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.18), transparent 30%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #ffffff;
}

.simulation-section {
    padding: 96px 0;
}

.simulation-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 42px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.16), transparent 34%),
        rgba(7, 24, 46, 0.42);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.simulation-media {
    overflow: hidden;
    --motion-poster: url("../video/homepage/safe-simulation-poster.webp");
    border: 1px solid rgba(147, 197, 253, 0.44);
    border-radius: var(--media-radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 86px rgba(0, 0, 0, 0.3),
        0 0 70px rgba(56, 189, 248, 0.2);
}

.simulation-media img,
.simulation-media video {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.simulation-copy {
    min-width: 0;
}

.simulation-copy h2 {
    color: #ffffff;
    font-size: clamp(2rem, 2.7vw, 2.65rem);
    line-height: 1.04;
}

.simulation-copy > p {
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 1.08rem;
}

.simulation-cards {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.simulation-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.simulation-card-featured {
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.15), rgba(255, 255, 255, 0.07));
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.12);
}

.simulation-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(147, 197, 253, 0.14);
    color: #93c5fd;
    grid-row: span 2;
}

.simulation-card-featured .simulation-card-icon {
    background: var(--cyan);
    color: var(--navy-deep);
}

.simulation-card h3 {
    color: #ffffff;
}

.simulation-card p {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.5;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 58px;
    align-items: center;
}

#features {
    padding-top: 70px;
    padding-bottom: 86px;
    background:
        radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
}

.split-reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.split-reverse .section-copy {
    order: 2;
}

.section-copy p,
.section-heading p,
.final-cta p,
.site-footer p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-copy,
.section-heading,
.final-cta-inner {
    min-width: 0;
}

.section-copy > p {
    margin-top: 18px;
}

.how-heading {
    max-width: 640px;
    margin-bottom: -17px;
    position: relative;
    z-index: 2;
}

.how-heading .eyebrow {
    margin-bottom: 0;
    padding: 9px 14px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.section-copy h2 {
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.08;
}

.workflow-panel {
    position: relative;
    overflow: hidden;
    width: min(1120px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    align-items: center;
    padding: 58px 46px 42px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.09);
}

.workflow-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 0;
    border-radius: 22px;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.028) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 64%);
    pointer-events: none;
}

.workflow-panel > * {
    position: relative;
    z-index: 1;
}

.workflow-copy {
    min-width: 0;
}

.step-heading {
    max-width: 430px;
    text-align: left;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.11);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.step-heading h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.04;
}

.step-heading p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.06rem;
}

.workflow-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    --motion-poster: url("../video/homepage/autowire-poster.webp");
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: var(--media-radius);
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 26px 72px rgba(16, 24, 40, 0.17),
        0 0 52px rgba(56, 189, 248, 0.18);
}

.workflow-image img,
.workflow-image video {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.workflow-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
}

.simulation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 20px;
}

.simulation-link {
    display: inline-flex;
    color: #93c5fd;
    font-weight: 800;
}

.simulation-link:hover {
    color: #ffffff;
}

.workflow-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid #e3eaf3;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.workflow-card-featured {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.workflow-card-featured .workflow-card-icon {
    background: var(--blue-strong);
    color: #ffffff;
}

.workflow-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-strong);
    grid-row: span 2;
}

.workflow-card h3 {
    font-size: 0.98rem;
    line-height: 1.3;
}

.workflow-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.step-eyebrow {
    gap: 10px;
}

.step-eyebrow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.11);
    color: var(--blue);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.section-dark .step-eyebrow span,
.education-panel .step-eyebrow span,
.final-cta .step-eyebrow span {
    background: rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
}

.section-dark .section-heading p,
.education-panel .section-heading p,
.final-cta p {
    color: #cbd5e1;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: #243044;
    font-weight: 620;
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 28%, transparent 30%),
        linear-gradient(135deg, var(--green), var(--cyan));
}

.section-heading {
    max-width: 790px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading p {
    margin-top: 18px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.feature-card {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.section-light .feature-card,
.section-tint .feature-card {
    background: var(--panel);
}

.feature-card p {
    margin-top: 10px;
    color: #cfdae8;
    font-size: 0.97rem;
}

.section-light .feature-card p,
.section-tint .feature-card p {
    color: var(--muted);
}

.wide-image {
    margin-top: 42px;
}

.custom-parts-section {
    background:
        radial-gradient(circle at 16% 18%, rgba(102, 126, 234, 0.16), transparent 30%),
        radial-gradient(circle at 86% 24%, rgba(124, 58, 237, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f3f4ff 100%);
}

.custom-parts-panel {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    gap: 46px;
    align-items: center;
}

.custom-parts-copy {
    min-width: 0;
}

.custom-parts-copy h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.custom-parts-copy > p:not(.eyebrow) {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.08rem;
}

.custom-parts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
}

.custom-part-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dde8f5;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.custom-part-card h3 {
    font-size: 0.98rem;
    line-height: 1.3;
}

.custom-part-card p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.custom-part-card-featured {
    border-color: rgba(102, 126, 234, 0.42);
    background: linear-gradient(180deg, #ffffff 0%, #f1f2ff 100%);
    box-shadow: 0 16px 42px rgba(102, 126, 234, 0.16);
}

.custom-part-card-soon {
    border-style: dashed;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.coming-soon-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.custom-parts-media {
    position: relative;
    min-width: 0;
    padding: 7px 14px 14px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(14px);
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.16),
        0 0 54px rgba(56, 189, 248, 0.14);
}

.custom-parts-media::before {
    content: "";
    position: absolute;
    inset: 9% 3%;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(96, 165, 250, 0.18));
    filter: blur(42px);
}

.custom-window-chrome {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    height: 20px;
    padding: 0 8px;
}

.custom-window-chrome .window-controls {
    gap: 7px;
    padding-top: 2px;
}

.custom-window-chrome .window-controls span {
    width: 8px;
    height: 8px;
}

.app-window-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--media-radius);
    background: rgba(248, 250, 252, 0.94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.app-window-bar {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    background: #ffffff;
}

.window-controls {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
}

.window-controls span:nth-child(1) {
    background: #7c3aed;
}

.window-controls span:nth-child(2) {
    background: #db2777;
}

.window-controls span:nth-child(3) {
    background: #1976d2;
}

.custom-parts-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3456 / 2168;
    object-fit: cover;
}

.education-section {
    background: #f4f7fb;
}

.education-panel {
    padding: 56px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(168, 85, 247, 0.28), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(99, 102, 241, 0.24), transparent 30%),
        linear-gradient(135deg, #2d1b69 0%, #1e1b4b 56%, #0f172a 100%);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.education-panel .feature-card {
    display: grid;
    justify-items: center;
    text-align: center;
}

.education-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(147, 197, 253, 0.14);
    color: #bfdbfe;
}

.education-panel .feature-card p {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}

.final-cta {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 34%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.14) 100%),
        linear-gradient(135deg, #1e3a8a 0%, #4c1d95 58%, #6d28d9 100%);
    color: #ffffff;
    text-align: center;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
    pointer-events: none;
}

.final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 36%),
        linear-gradient(300deg, rgba(96, 165, 250, 0.16), transparent 42%);
    pointer-events: none;
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.final-cta-inner > p:not(.cta-proof) {
    margin-top: 14px;
}

.final-cta .hero-actions {
    justify-content: center;
}

.final-cta .button {
    min-width: 210px;
}

.final-cta .button-primary {
    background: #ffffff;
    color: var(--blue-strong);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.25),
        0 0 30px rgba(124, 58, 237, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.final-cta .button-primary:hover {
    background: #f8fafc;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.cta-proof {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-footer {
    padding: 56px 0 28px;
    background: #0b1120;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(120px, 0.52fr));
    gap: 34px;
}

.footer-brand img {
    width: 138px;
}

.site-footer p {
    max-width: 420px;
    margin-top: 16px;
    color: #9aa7ba;
}

.site-footer nav {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.site-footer a:hover {
    color: #ffffff;
}

.button:focus-visible,
.nav-cta:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.75);
    outline-offset: 4px;
}

.legal-page {
    background: #f7f9fc;
}

.legal-hero {
    padding: 86px 0 58px;
    background:
        radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.2), transparent 32%),
        linear-gradient(135deg, #0e2a47 0%, #123d6a 58%, #1e60a8 100%);
    color: #ffffff;
}

.legal-hero .eyebrow {
    color: #bfdbfe;
}

.legal-hero h1 {
    color: #ffffff;
}

.legal-hero p {
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.legal-content-section {
    background: #f7f9fc;
}

.legal-content {
    max-width: 860px;
    padding: 48px;
    border: 1px solid #dce7f6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
}

.legal-content h2 {
    margin-top: 34px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 24px;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
}

.legal-content p,
.legal-content ul {
    margin-top: 12px;
}

.legal-content .legal-callout {
    padding: 18px 20px;
    border-left: 4px solid var(--blue-strong);
    border-radius: 10px;
    background: #eef4ff;
    color: var(--ink);
    font-weight: 700;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li + li {
    margin-top: 10px;
}

.legal-content a {
    color: var(--blue-strong);
    font-weight: 700;
}

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

    .workflow-image,
    .simulation-media,
    .output-media {
        aspect-ratio: 3 / 2;
        background-image: var(--motion-poster);
        background-position: center;
        background-size: cover;
    }

    .workflow-image video,
    .simulation-media video,
    .output-media video {
        display: none;
    }

    .button,
    .workflow-card,
    .starter-card,
    .example-card {
        transition: none;
    }
}

.copyright {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 74px;
        display: none;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        background: rgba(13, 19, 36, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
        gap: 14px;
    }

    .hero-grid,
    .split-section,
    .split-reverse,
    .workflow-panel,
    .simulation-panel,
    .output-panel,
    .custom-parts-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .split-reverse .section-copy {
        order: 0;
    }

    .hero-section {
        padding-top: 76px;
    }

    .hero-copy {
        max-width: none;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .custom-parts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-cards {
        grid-template-columns: 1fr;
    }

    .simulation-copy {
        order: -1;
    }

    .output-copy {
        order: -1;
    }

    .custom-parts-copy {
        order: -1;
    }
}

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

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

    .brand img,
    .footer-brand img {
        width: 154px;
    }

    .site-nav {
        top: 66px;
        left: 14px;
        right: 14px;
    }

    .hero-section,
    .section,
    .final-cta {
        padding: 64px 0;
    }

    h1 {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-copy,
    .hero-lede,
    .section-heading,
    .hero-visual,
    .workflow-panel,
    .simulation-panel,
    .output-panel,
    .custom-parts-panel,
    .education-panel,
    .workflow-image,
    .simulation-media,
    .output-media,
    .custom-parts-media,
    .app-window-frame {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .hero-visual picture,
    .hero-visual img,
    .workflow-image video,
    .simulation-media video,
    .output-media video,
    .custom-parts-media img {
        max-width: 100%;
    }

    .step-heading {
        max-width: 100%;
        text-align: center;
    }

    .step-title {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-title h2 {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .hero-lede,
    .section-heading p,
    .workflow-card h3 {
        overflow-wrap: break-word;
    }

    .hero-grid,
    .split-section {
        gap: 34px;
    }

    .hero-actions,
    .button {
        max-width: 100%;
        width: 100%;
    }

    .hero-actions .button-primary {
        min-width: 0;
        padding: 0 18px;
        text-align: center;
        white-space: normal;
    }

    .workflow-panel {
        width: calc(100% - 28px);
        padding: 48px 18px 30px;
        border-radius: 24px;
        gap: 32px;
    }

    .workflow-panel::before {
        inset: 12px;
        border-radius: 18px;
    }

    .workflow-image {
        margin-right: 0;
    }

    .workflow-card {
        padding: 16px;
    }

    .workflow-cards {
        margin-top: 24px;
        gap: 14px;
    }

    .step-heading p:not(.eyebrow) {
        margin-top: 20px;
    }

    .simulation-panel {
        width: calc(100% - 28px);
        margin-inline: auto;
        padding: 20px;
        border-radius: 24px;
        gap: 26px;
    }

    .simulation-copy {
        text-align: center;
    }

    .simulation-links {
        justify-content: center;
    }

    .simulation-copy h2 {
        white-space: normal;
    }

    .output-panel {
        width: calc(100% - 28px);
        margin-inline: auto;
        gap: 28px;
    }

    .output-copy {
        text-align: center;
    }

    .custom-parts-panel {
        width: calc(100% - 28px);
        margin-inline: auto;
        gap: 28px;
    }

    .custom-parts-copy {
        text-align: center;
    }

    .education-panel {
        width: calc(100% - 28px);
        margin-inline: auto;
        padding: 34px 20px;
        border-radius: 20px;
    }

    .legal-hero {
        padding: 64px 0 42px;
    }

    .legal-content {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .feature-card {
        padding: 20px;
    }

    .custom-parts-grid {
        grid-template-columns: 1fr;
    }
}
