:root {
    /* Core design tokens. Edit these values to adjust the site theme globally. */
    --bg: #05070d;
    --bg-soft: #0b1220;
    --panel: rgba(15, 23, 42, 0.58);
    --panel-strong: rgba(15, 23, 42, 0.78);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(226, 232, 240, 0.26);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --faint: #64748b;
    --blue: #38bdf8;
    --cyan: #7dd3fc;
    --violet: #a78bfa;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 78% 12%, rgba(167, 139, 250, 0.22), transparent 32rem),
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.18), transparent 26rem),
        linear-gradient(145deg, #05070d 0%, #08111f 44%, #0c1024 100%);
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

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

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

p {
    color: var(--muted);
}

ul {
    padding-left: 1.2rem;
}

li {
    margin: 0.45rem 0;
    color: var(--muted);
}

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

.narrow {
    width: min(100% - 40px, 820px);
}

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

.skip-link:focus {
    top: 12px;
    left: 12px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #020617;
    background: var(--cyan);
    border-radius: 999px;
}

.site-header {
    /* Header becomes glassy after scrolling, controlled by assets/js/main.js. */
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(5, 7, 13, 0.78);
    border-color: rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
}

.brand-name {
    font-size: 17px;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--subtle);
    font-size: 14px;
    border-radius: 999px;
    transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.nav-link-muted {
    color: var(--muted);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

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

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

.button-primary {
    color: #020617 !important;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 18px 44px rgba(56, 189, 248, 0.24);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.button-secondary:hover {
    border-color: rgba(125, 211, 252, 0.38);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.section {
    padding: 96px 0;
}

.section-tight {
    padding-top: 42px;
}

.hero {
    min-height: auto;
    padding: clamp(76px, 9vh, 110px) 0 86px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-description {
    max-width: 640px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

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

.trust-badges {
    margin-top: 22px;
}

.trust-badges span {
    padding: 8px 12px;
    color: var(--subtle);
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}

.phone-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 500px;
}

.phone-stage::before {
    position: absolute;
    width: 360px;
    height: 360px;
    content: "";
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
    filter: blur(12px);
}

.phone-shell-wrapper {
    --screen-inset-x: 6.7%;
    --screen-inset-y: 6.6%;
    position: relative;
    width: min(40vw, 500px);
    aspect-ratio: 1;
    filter: drop-shadow(0 34px 90px rgba(0, 0, 0, 0.5));
}

.phone-screen-layer {
    position: absolute;
    inset: var(--screen-inset-y) var(--screen-inset-x);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    border-radius: 3.2%;
    padding: clamp(22px, 2.4vw, 34px) clamp(22px, 3vw, 40px) clamp(24px, 2.6vw, 36px);
    background:
        linear-gradient(135deg, rgba(125, 211, 252, 0.09), transparent 36%),
        radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.1), transparent 32%),
        #020617;
}

.phone-screen-layer::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 24%, transparent 80%, rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(125, 211, 252, 0.08), transparent 28%, rgba(2, 6, 23, 0.36));
}

.phone-frame {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.teleprompter-demo {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 4px;
}

.script-lines {
    text-align: center;
    will-change: transform;
}

.script-lines p {
    max-width: 16em;
    margin: 0 auto clamp(10px, 1.8vw, 16px);
    color: var(--text);
    font-size: clamp(14px, 1.45vw, 18px);
    font-weight: 650;
    line-height: 1.62;
}

.script-lines p:nth-child(2n) {
    color: var(--cyan);
}

.script-lines .script-subtitle {
    margin-top: clamp(10px, 1.5vw, 16px);
    color: var(--cyan);
    font-size: clamp(15px, 1.55vw, 21px);
    font-weight: 800;
}

.prompt-controlbar {
    position: relative;
    width: min(76%, 350px);
    margin: 0 auto;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 50px repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    min-height: 58px;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.prompt-tool {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 3px;
    color: var(--subtle);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.tool-icon {
    display: grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.color-wheel {
    width: 17px;
    min-width: 17px;
    border-radius: 50%;
    background: conic-gradient(from 20deg, #7dd3fc, #a78bfa, #f8fafc, #38bdf8, #7dd3fc);
}

.prompt-play {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: #020617;
    cursor: pointer;
    background: linear-gradient(135deg, #c7d2fe, #93c5fd);
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.22);
}

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

.play-icon.is-play {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #020617;
}

.play-icon.is-pause {
    display: none;
    width: 16px;
    height: 21px;
    border-right: 5px solid #020617;
    border-left: 5px solid #020617;
}

.prompt-play.is-playing .is-play {
    display: none;
}

.prompt-play.is-playing .is-pause {
    display: block;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2,
.trust-section h2,
.changelog-preview h2,
.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: 0;
}

.glass-card {
    /* Shared glassmorphism card style for feature, scenario, legal, and changelog blocks. */
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.scenario-card,
.faq-card,
.release-card {
    padding: 26px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.scenario-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.34);
    background: rgba(15, 23, 42, 0.7);
}

.card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    place-items: center;
    color: #020617;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.feature-card h3,
.scenario-card h3,
.faq-card h2,
.release-card h2 {
    margin-bottom: 10px;
    font-size: 21px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.scenario-card {
    min-height: 170px;
    background:
        linear-gradient(145deg, rgba(125, 211, 252, 0.08), transparent 44%),
        var(--panel);
}

.trust-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
    padding: 36px;
}

.trust-section p {
    max-width: 520px;
}

.legal-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

.trust-item {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    margin-bottom: 6px;
}

.trust-item span {
    color: var(--subtle);
    font-size: 14px;
}

.changelog-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 36px;
}

.page-hero {
    padding: 96px 0 30px;
}

.page-hero p:last-child {
    max-width: 760px;
    font-size: 18px;
}

.content-layout {
    display: grid;
    gap: 18px;
    max-width: 900px;
}

.prose {
    padding: 34px;
}

.prose h2 {
    margin: 34px 0 10px;
    font-size: 24px;
}

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

.prose p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.legal-doc {
    background: rgba(15, 23, 42, 0.68);
}

.legal-page {
    padding: 86px 0 40px;
}

.legal-container {
    width: min(100% - 40px, 940px);
    margin: 0 auto;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 18px;
    padding: 0 16px;
    color: var(--muted);
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.legal-back:hover {
    color: var(--text);
    border-color: rgba(125, 211, 252, 0.35);
}

.legal-card {
    padding: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.legal-card.reveal {
    opacity: 1;
    transform: none;
}

.legal-title {
    margin-bottom: 16px;
    color: var(--text);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.2;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.legal-meta span {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

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

.legal-content h2 {
    margin: 34px 0 12px;
    padding-top: 8px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.45;
}

.legal-content p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.95;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 18px;
    padding-left: 1.35rem;
}

.legal-content li {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.legal-page-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.legal-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.legal-contact {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.legal-contact h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.legal-contact p {
    margin: 6px 0;
    color: var(--muted);
}

.legal-contact a {
    color: var(--cyan);
}

.faq-card p {
    margin-bottom: 0;
}

.timeline {
    display: grid;
    gap: 18px;
    max-width: 900px;
}

.release-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--subtle);
}

.release-meta span {
    color: var(--cyan);
    font-weight: 800;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.36);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 32px;
    padding: 42px 0 28px;
}

.footer-brand p,
.footer-contact span,
.footer-bottom p,
.footer-bottom a {
    color: var(--subtle);
    font-size: 14px;
}

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

.footer-links a,
.footer-contact a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--text);
}

.footer-contact {
    display: grid;
    gap: 6px;
    align-content: start;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    padding: 18px 0 34px;
}

.footer-bottom p,
.footer-bottom a {
    margin: 0;
}

.footer-bottom a:hover {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero {
        padding-top: 64px;
    }

    .hero-grid,
    .trust-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 36px;
    }

    .phone-stage {
        min-height: 460px;
    }

    .phone-shell-wrapper {
        width: min(68vw, 480px);
    }

    .card-grid,
    .scenario-grid,
    .trust-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container,
    .narrow {
        width: min(100% - 28px, var(--container));
    }

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

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        right: 14px;
        left: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(5, 7, 13, 0.94);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        justify-content: center;
    }

    .section {
        padding: 68px 0;
    }

    .section-tight {
        padding-top: 32px;
    }

    .hero {
        padding: 46px 0 64px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 46px);
    }

    .hero-description,
    .page-hero p:last-child {
        font-size: 16px;
    }

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

    .phone-stage {
        min-height: 390px;
    }

    .phone-shell-wrapper {
        width: min(86vw, 380px);
    }

    .script-lines p {
        font-size: clamp(13px, 3.8vw, 17px);
    }

    .script-lines .script-subtitle {
        font-size: clamp(14px, 4vw, 18px);
    }

    .phone-screen-layer {
        padding: 22px 18px 20px;
    }

    .prompt-controlbar {
        width: min(82%, 320px);
        grid-template-columns: repeat(3, minmax(0, 1fr)) 44px repeat(3, minmax(0, 1fr));
        min-height: 52px;
        padding: 6px 7px;
        border-radius: 14px;
    }

    .prompt-play {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .prompt-tool {
        font-size: 9px;
    }

    .tool-icon {
        min-width: 14px;
        height: 14px;
        font-size: 13px;
    }

    .card-grid,
    .scenario-grid,
    .trust-list {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .scenario-card,
    .faq-card,
    .release-card,
    .prose,
    .legal-card,
    .trust-section,
    .changelog-preview {
        padding: 22px;
    }

    .legal-container {
        width: min(100% - 28px, 940px);
    }

    .legal-page {
        padding-top: 68px;
    }

    .legal-content h2 {
        font-size: 21px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 15.5px;
        line-height: 1.9;
    }

    .legal-page-actions .button {
        width: 100%;
    }

    .changelog-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .changelog-preview .button {
        width: 100%;
    }

    .page-hero {
        padding-top: 72px;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
