:root {
    --bg: #080914;
    --surface: rgba(17, 20, 34, 0.84);
    --surface-2: rgba(22, 27, 46, 0.88);
    --surface-3: #20263a;
    --line: rgba(160, 205, 255, 0.18);
    --text: #fffaf6;
    --muted: #b7c0d7;
    --soft: #f0eefb;
    --mint: #30f4d0;
    --pink: #ff4f91;
    --blue: #72a7ff;
    --gold: #ffd45f;
    --coral: #ff6b4a;
    --violet: #a77dff;
    --shadow: rgba(0, 0, 0, 0.44);
}

* {
    box-sizing: border-box;
}

html {
    background:
        linear-gradient(115deg, rgba(48, 244, 208, 0.09), transparent 24%),
        linear-gradient(245deg, rgba(255, 107, 74, 0.1), transparent 26%),
        linear-gradient(180deg, #0b0d1c 0%, #080914 42%, #050611 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(160, 205, 255, 0.16);
    background: rgba(8, 9, 20, 0.82);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1240px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 950;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(48, 244, 208, 0.3);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(48, 244, 208, 0.13), rgba(167, 125, 255, 0.13));
    color: var(--mint);
    font-size: 17px;
    font-weight: 950;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
    color: var(--text);
    background: rgba(114, 167, 255, 0.14);
}

.nav-cta,
.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--coral), var(--gold));
    color: #090914;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(255, 107, 74, 0.24);
}

.nav-cta {
    padding: 0 14px;
    white-space: nowrap;
}

.button {
    padding: 0 18px;
}

.button.secondary {
    border: 1px solid rgba(114, 167, 255, 0.28);
    background: rgba(114, 167, 255, 0.08);
    color: var(--text);
    box-shadow: none;
}

.button.ghost {
    border: 1px solid rgba(48, 244, 208, 0.28);
    background: rgba(48, 244, 208, 0.08);
    color: var(--mint);
    box-shadow: none;
}

.hero,
.section {
    border-bottom: 1px solid var(--line);
}

.hero {
    background:
        linear-gradient(135deg, rgba(12, 20, 36, 0.88), rgba(9, 9, 20, 0.72) 48%, rgba(20, 11, 28, 0.86)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px);
}

.section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

.hero-inner,
.section-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-inner {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 44px;
    padding: 52px 0 68px;
}

.hero-inner.app-hero {
    min-height: min(780px, calc(100vh - 68px));
    grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.92fr);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 1000;
}

h1 span,
h2 span {
    background: linear-gradient(90deg, var(--pink), var(--coral), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 19px;
    line-height: 1.55;
    font-weight: 650;
}

.hero-copy.compact {
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(48, 244, 208, 0.26);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--mint);
    background: rgba(48, 244, 208, 0.08);
    font-size: 12px;
    font-weight: 850;
}

.video-frame {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    justify-self: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 28px 70px var(--shadow), 0 0 0 1px rgba(255, 107, 74, 0.12);
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-console {
    border: 1px solid rgba(160, 205, 255, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(48, 244, 208, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(255, 107, 74, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(24, 28, 48, 0.94), rgba(9, 10, 22, 0.97));
    box-shadow: 0 28px 80px var(--shadow), 0 0 60px rgba(48, 244, 208, 0.08);
    overflow: hidden;
}

.console-topbar {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(160, 205, 255, 0.16);
    padding: 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

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

.window-dots span {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: var(--mint);
}

.window-dots span:nth-child(2) {
    background: var(--gold);
}

.window-dots span:nth-child(3) {
    background: var(--pink);
}

.console-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.mode-stack {
    display: grid;
    gap: 10px;
}

.mode-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(160, 205, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    padding: 12px;
}

.mode-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(48, 244, 208, 0.18), rgba(114, 167, 255, 0.12));
    color: var(--mint);
    font-weight: 950;
}

.mode-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.mode-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.mode-state {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metric-box {
    border: 1px solid rgba(160, 205, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 14px;
}

.metric-box strong {
    display: block;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}

.metric-box span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.section-inner {
    padding: 72px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.kicker {
    margin: 0 0 9px;
    color: var(--mint);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    font-weight: 1000;
}

.lead {
    margin: 14px 0 0;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 620;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 14px;
}

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

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

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.feature-matrix,
.template-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
    gap: 22px;
    align-items: start;
}

.card,
.answer-card,
.step-card,
.surface-panel {
    border: 1px solid rgba(160, 205, 255, 0.16);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.card,
.step-card,
.surface-panel {
    padding: 20px;
}

.card strong,
.step-card strong {
    display: block;
    color: var(--mint);
    font-size: 13px;
    text-transform: uppercase;
}

.card h3,
.step-card h3,
.answer-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.card p,
.step-card p,
.answer-card p,
.body-copy p,
.body-copy li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.62;
    font-weight: 560;
}

.card p,
.step-card p,
.answer-card p {
    margin: 0;
}

.answer-card {
    padding: 22px;
}

.answer-card h3 {
    margin-top: 0;
}

.feature-card {
    min-height: 210px;
}

.feature-card strong,
.template-card strong,
.news-card strong {
    color: var(--gold);
}

.template-card,
.news-card {
    display: grid;
    gap: 10px;
    background:
        linear-gradient(150deg, rgba(114, 167, 255, 0.055), transparent 42%),
        var(--surface);
}

.template-preview {
    aspect-ratio: 9 / 12;
    border: 1px solid rgba(160, 205, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(48, 244, 208, 0.2), transparent 34%),
        linear-gradient(315deg, rgba(255, 107, 74, 0.2), transparent 36%),
        var(--surface-3);
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 34px;
    font-weight: 1000;
}

.template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-meta span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(160, 205, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.workflow-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.language-stack {
    grid-template-columns: 1fr;
    margin-top: 20px;
}

.workflow-step {
    border: 1px solid rgba(160, 205, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    padding: 16px;
}

.workflow-step strong {
    color: var(--mint);
    font-size: 12px;
    text-transform: uppercase;
}

.workflow-step p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.keyword-cloud a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(160, 205, 255, 0.16);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.source-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.article-card {
    display: grid;
    gap: 10px;
    min-height: 100%;
}

.article-card a {
    color: var(--text);
    text-decoration: none;
}

.article-card a:hover {
    color: var(--mint);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.article-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 9px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.article-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.article-links a {
    color: var(--mint);
    font-weight: 760;
    text-decoration: none;
}

.body-copy {
    max-width: 820px;
}

.body-copy h2 {
    margin-top: 42px;
}

.body-copy h3 {
    margin: 26px 0 8px;
    font-size: 22px;
}

.body-copy p {
    margin: 12px 0 0;
}

.body-copy ul,
.body-copy ol {
    margin: 14px 0 0;
    padding-left: 22px;
}

.comparison {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.comparison th,
.comparison td {
    border-bottom: 1px solid var(--line);
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.comparison th {
    color: var(--text);
    background: var(--surface-2);
    font-size: 13px;
    text-transform: uppercase;
}

.comparison td {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 18px;
}

.faq summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 850;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--mint);
    font-size: 20px;
    font-weight: 950;
}

.faq details[open] summary::after {
    content: "-";
}

.faq p {
    margin: 0;
    padding: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.cta-band {
    background: var(--surface-2);
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.cta-panel h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.site-footer {
    padding: 28px 0;
    color: var(--muted);
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
    text-decoration: none;
}

@media (max-width: 860px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-cta {
        width: 100%;
    }

    .hero-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 38px;
    }

    .hero-inner.app-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.02;
    }

    .hero-copy {
        font-size: 17px;
    }

    .video-frame {
        width: min(100%, 330px);
    }

    .grid-3,
    .grid-2,
    .article-grid,
    .feature-matrix,
    .template-category-grid,
    .workflow-row,
    .news-layout,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .cta-panel .button {
        width: 100%;
    }

    .comparison {
        display: block;
        overflow-x: auto;
    }

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

@media (max-width: 520px) {
    .hero-inner,
    .section-inner {
        width: min(100% - 28px, 1120px);
    }

    h1 {
        font-size: 42px;
    }

    .hero-copy,
    .lead {
        font-size: 16px;
    }

    .section-inner {
        padding: 56px 0;
    }
}
