:root {
    --bg: #fff9f1;
    --surface: #fff;
    --border: #111111;
    --muted: #3d3f4f;
    --accent: #0c0d11;
    --accent-light: #f7efe0;
    --card-border: 2px dashed var(--border);
    --radius: 8px;
    --shadow: 0 25px 55px rgba(11, 7, 0, 0.12);
}

.theme-default {
    --bg: #fff9f1;
    --surface: #fff;
    --border: #111111;
    --muted: #3d3f4f;
    --accent: #0c0d11;
    --accent-light: #f7efe0;
    --card-border: 2px dashed var(--border);
    --shadow: 0 25px 55px rgba(11, 7, 0, 0.12);
}

.theme-silver {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --border: #1f232d;
    --muted: #5b5d65;
    --accent: #0b101a;
    --accent-light: #ffffff;
    --card-border: 2px dashed rgba(15, 16, 19, 0.6);
    --shadow: 0 20px 45px rgba(18, 20, 27, 0.12);
}

.theme-dark {
    --bg: #05060b;
    --surface: #0f111a;
    --border: #d5f2ff;
    --muted: #94a3c4;
    --accent: #e0f2ff;
    --accent-light: #0f121e;
    --card-border: 2px dashed rgba(213, 242, 255, 0.6);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.theme-terminal {
    --bg: #010800;
    --surface: #021104;
    --border: #00ff90;
    --muted: #49d694;
    --accent: #00ff90;
    --accent-light: #022611;
    --card-border: 2px dashed rgba(0, 255, 144, 0.6);
    --shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
}

.theme-mac90s {
    --bg: #e5e7f4;
    --surface: #f8f7ff;
    --border: #5b5bdd;
    --muted: #61608f;
    --accent: #2f2fa2;
    --accent-light: #ffffff;
    --card-border: 2px dashed rgba(47, 47, 162, 0.65);
    --shadow: 0 20px 45px rgba(96, 94, 168, 0.25);
}

.theme-sunset {
    --bg: #fff1f5;
    --surface: #fff;
    --border: #2f1b3d;
    --muted: #6e4a69;
    --accent: #231123;
    --accent-light: #ffe4ef;
    --card-border: 2px dashed rgba(111, 74, 105, 0.6);
    --shadow: 0 20px 45px rgba(35, 17, 35, 0.15);
}

.theme-cyberpunk {
    --bg: #050014;
    --surface: #14002b;
    --border: #ff5dd9;
    --muted: #b5a7ff;
    --accent: #9fffe8;
    --accent-light: #240045;
    --card-border: 2px dashed rgba(255, 93, 217, 0.7);
    --shadow: 0 30px 60px rgba(255, 0, 153, 0.25);
}

.theme-highcontrast {
    --bg: #fefefe;
    --surface: #ffffff;
    --border: #0b0b0b;
    --muted: #4a4a4a;
    --accent: #050505;
    --accent-light: #f4f4f4;
    --card-border: 2px dashed rgba(11, 11, 11, 0.65);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.theme-neonsea {
    --bg: #e4fbff;
    --surface: #ffffff;
    --border: #013a63;
    --muted: #265a73;
    --accent: #012030;
    --accent-light: #d0f0ff;
    --card-border: 2px dashed rgba(1, 58, 99, 0.65);
    --shadow: 0 22px 50px rgba(1, 32, 48, 0.18);
}

.theme-orchid {
    --bg: #f8f4ff;
    --surface: #ffffff;
    --border: #5b1a8d;
    --muted: #7a4da3;
    --accent: #1b0433;
    --accent-light: #f9ecff;
    --card-border: 2px dashed rgba(91, 26, 141, 0.6);
    --shadow: 0 20px 45px rgba(27, 4, 51, 0.2);
}

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

body {
    margin: 0;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    background: var(--bg);
    color: var(--accent);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

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

a:hover,
a:focus-visible {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

code {
    font-family: "IBM Plex Mono", "Courier New", monospace;
}

pre {
    margin: 0;
    background: var(--accent-light);
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

ul {
    padding-left: 1.25rem;
    margin: 0 0 1.5rem;
}

ul li {
    margin-bottom: 0.4rem;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 2.5rem 0;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border: 2px solid var(--border);
    background: var(--accent);
    color: var(--surface);
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 150ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
}

.button--ghost {
    background: transparent;
    color: var(--accent);
}

.button--light {
    background: var(--surface);
    color: var(--accent);
}

.ticker {
    border-bottom: var(--card-border);
    background: var(--accent-light);
    font-size: 0.9rem;
    overflow: hidden;
}

.ticker__viewport {
    overflow: hidden;
    padding: 0.6rem 0;
}

.ticker__track {
    display: flex;
    gap: 2.5rem;
    min-width: max-content;
    white-space: nowrap;
    animation: ticker-scroll 26s linear infinite;
}

.ticker__track span {
    flex: 0 0 auto;
}

.site-header {
    border-bottom: var(--card-border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.1rem 0;
    gap: .5rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 1.3rem;
}

.logo-ascii {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.55rem;
    white-space: pre;
    line-height: 1;
    letter-spacing: -0.1em;
    display: block;
}

.logo-ascii span {
    display: block;
}

.logo-ascii:hover,
.logo-ascii:focus-visible {
    text-decoration: none;
}

.primary-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.hero {
    padding-bottom: 0;
}

.hero__stack {
    display: grid;
    gap: 1.75rem;
}

.hero__copy {
    display: grid;
    gap: 1rem;
}

.hero__cta {
    justify-self: start;
}

.hero__visual {
    margin-top: 3rem;
    --frame-padding-block: 0.75rem;
    --frame-padding-inline: 0.75rem;
    --frame-shadow: var(--shadow);
    text-align: center;
}

.hero__visual img {
    margin: 0 auto;
}

.hero__cta {
    margin-top: 0.5rem;
    display: inline-flex;
}

.play-pill {
    display: inline-flex;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid--four {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    --frame-padding-block: 1.5rem;
    --frame-padding-inline: 1.5rem;
}

.frame {
    --frame-padding-block: 1.5rem;
    --frame-padding-inline: 1.5rem;
    --frame-padding-top: var(--frame-padding-block);
    --frame-padding-bottom: var(--frame-padding-block);
    --frame-chrome-offset: 0rem;
    --frame-shadow: none;
    position: relative;
    padding-top: calc(var(--frame-padding-top) + var(--frame-chrome-offset));
    padding-right: var(--frame-padding-inline);
    padding-bottom: var(--frame-padding-bottom);
    padding-left: var(--frame-padding-inline);
    border: var(--card-border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--frame-shadow);
    overflow: hidden;
}

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

.frame--media {
    --frame-padding-block: 0;
    --frame-padding-inline: 0;
    --frame-padding-top: 0;
    --frame-padding-bottom: 0;
}

.workflow__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.workflow__media {
    --frame-padding-block: 0;
    --frame-padding-inline: 0;
    --frame-padding-top: 0;
    --frame-padding-bottom: 0;
}

.workflow__media img {
    width: 100%;
    height: auto;
}

.insights__list {
    --frame-padding-block: 2rem;
    --frame-padding-inline: 2rem;
}

.cta {
    background: var(--accent-light);
}

.cta__card {
    --frame-padding-block: 2.5rem;
    --frame-padding-inline: 2.5rem;
    text-align: center;
    display: grid;
    gap: 1rem;
}

.cta__card .button {
    justify-self: center;
}

.faq__list {
    display: grid;
    gap: 1.5rem;
}

.faq__item {
    --frame-padding-block: 1.5rem;
    --frame-padding-inline: 1.5rem;
}

.site-footer {
    border-top: var(--card-border);
    background: var(--surface);
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.frames-browser .frame {
    --frame-shadow: var(--shadow);
    --frame-chrome-offset: 1.85rem;
    border: 2px solid var(--border);
}

.frames-browser .frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    height: 1.85rem;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--surface) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
}

.frames-browser .frame::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 0.85rem;
    width: 64px;
    height: 16px;
    color: var(--border);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2764%27%20height%3D%2716%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27square%27%20stroke-linejoin%3D%27miter%27%3E%3Crect%20x%3D%270.5%27%20y%3D%270.5%27%20width%3D%2715%27%20height%3D%2715%27%20rx%3D%271.5%27%2F%3E%3Crect%20x%3D%2722.5%27%20y%3D%270.5%27%20width%3D%2715%27%20height%3D%2715%27%20rx%3D%271.5%27%2F%3E%3Crect%20x%3D%2744.5%27%20y%3D%270.5%27%20width%3D%2715%27%20height%3D%2715%27%20rx%3D%271.5%27%2F%3E%3Cpath%20d%3D%27M3.5%2011.5h9%27%2F%3E%3Crect%20x%3D%2725.5%27%20y%3D%275.5%27%20width%3D%279%27%20height%3D%279%27%2F%3E%3Cpath%20d%3D%27M47.5%205.5l9%209m0-9l-9%209%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

.frames-polaroid .frame {
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface) 70%);
    --frame-shadow: 0 25px 35px rgba(0, 0, 0, 0.15);
    --frame-padding-bottom: calc(var(--frame-padding-block, 1.5rem) + 1.3rem);
}

.frames-polaroid .frame::after {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0.85rem;
    height: 2px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    opacity: 0.7;
    pointer-events: none;
}

.frames-blueprint .frame {
    background-color: var(--surface);
    border: 2px solid rgba(0, 0, 0, 0.12);
    color: var(--accent);
    --frame-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    background-size: 28px 28px, 28px 28px, auto;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.frames-blueprint .frame a {
    color: var(--accent);
}

.frames-glass .frame {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(18px);
    --frame-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.frames-terminal .frame {
    border: 2px solid var(--accent);
    background: var(--accent-light);
    --frame-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 18px 45px rgba(0, 0, 0, 0.45);
}

.frames-terminal .frame code {
    background: rgba(0, 0, 0, 0.2);
}

.frames-cutout .frame {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--surface);
    --frame-shadow: 16px 22px 35px rgba(0, 0, 0, 0.15);
}

.frames-cutout .frame::before,
.frames-cutout .frame::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 16px;
    background: var(--accent-light);
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
}

.frames-cutout .frame::before {
    top: 0.75rem;
    left: 1.25rem;
    transform: rotate(-6deg);
}

.frames-cutout .frame::after {
    bottom: 0.75rem;
    right: 1.25rem;
    transform: rotate(5deg);
}

@media (min-width: 48rem) {
    .hero__stack {
        gap: 2rem;
    }
    .workflow__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 64rem) {
    .section {
        padding: 3.5rem 0;
    }

    .hero__stack {
        grid-template-rows: auto auto;
    }

    .hero__visual {
        margin-top: 3rem;
    }

    .primary-nav {
        gap: 2rem;
    }

    .card-grid--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .faq__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
        transform: none;
    }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
