:root {
    color-scheme: dark;
    --bg: #07111f;
    --bg-elevated: rgba(12, 23, 42, 0.72);
    --bg-soft: rgba(13, 25, 44, 0.5);
    --panel: rgba(10, 21, 38, 0.82);
    --panel-strong: rgba(8, 18, 33, 0.92);
    --panel-border: rgba(157, 217, 255, 0.14);
    --text: #f3f8ff;
    --text-muted: rgba(228, 236, 247, 0.72);
    --text-soft: rgba(201, 216, 233, 0.56);
    --heading: #fbfdff;
    --primary: #8af1da;
    --primary-strong: #34d7b2;
    --secondary: #80c8ff;
    --accent: #f4c47a;
    --danger: #ff8c88;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    --glow: radial-gradient(circle at top, rgba(137, 241, 218, 0.16), rgba(137, 241, 218, 0) 52%);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
    --grid-line: rgba(144, 196, 255, 0.08);
    --button-text: #06121e;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f5f9;
    --bg-elevated: rgba(255, 255, 255, 0.78);
    --bg-soft: rgba(255, 255, 255, 0.64);
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --panel-border: rgba(10, 34, 67, 0.08);
    --text: #12253b;
    --text-muted: rgba(18, 37, 59, 0.74);
    --text-soft: rgba(18, 37, 59, 0.56);
    --heading: #09172b;
    --primary: #007a78;
    --primary-strong: #045f60;
    --secondary: #1b60c9;
    --accent: #bf7b14;
    --danger: #d05158;
    --shadow: 0 24px 72px rgba(14, 36, 68, 0.12);
    --glow: radial-gradient(circle at top, rgba(0, 122, 120, 0.14), rgba(0, 122, 120, 0) 50%);
    --grid-line: rgba(10, 34, 67, 0.06);
    --button-text: #f4fbff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 12%, rgba(128, 200, 255, 0.12), transparent 26%),
        radial-gradient(circle at 90% 18%, rgba(138, 241, 218, 0.16), transparent 24%),
        radial-gradient(circle at 50% 85%, rgba(244, 196, 122, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    transition: background 280ms ease, color 280ms ease;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18) 58%, transparent);
}

body::after {
    background: var(--glow);
    opacity: 0.9;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    position: relative;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.container.narrow {
    width: min(calc(100% - 40px), 860px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.8), rgba(7, 17, 31, 0.42));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .site-header {
    background: linear-gradient(180deg, rgba(243, 245, 249, 0.84), rgba(243, 245, 249, 0.62));
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(128, 200, 255, 0.9), rgba(138, 241, 218, 0.85));
    box-shadow: 0 16px 36px rgba(80, 190, 215, 0.22);
    padding: 7px 7px 5px 7px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.08) saturate(1.04);
    transform: translateY(-1px);
}

:root[data-theme="dark"] .brand-mark img {
    filter: brightness(1.28) saturate(1.04);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    color: var(--heading);
    letter-spacing: 0.01em;
}

.brand-text span {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.desktop-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a,
.footer-links a,
.mobile-panel a {
    color: var(--text-muted);
    transition: color 220ms ease;
}

.desktop-nav a,
.button {
    white-space: nowrap;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-panel a:hover {
    color: var(--heading);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), #9de3ff);
    color: var(--button-text);
    box-shadow: 0 18px 32px rgba(66, 198, 185, 0.24);
}

.button.secondary,
.button.ghost {
    border-color: var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--heading);
}

:root[data-theme="light"] .button.secondary,
:root[data-theme="light"] .button.ghost {
    background: rgba(255, 255, 255, 0.6);
}

.button.ghost {
    min-height: 44px;
    padding-inline: 18px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.theme-toggle-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 58px;
    height: 32px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    z-index: 1;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.theme-toggle-icon svg {
    width: 16px;
    height: 16px;
}

.theme-toggle-sun {
    opacity: 0.4;
}

.theme-toggle-moon {
    opacity: 0.4;
}

:root[data-theme="light"] .theme-toggle-sun {
    opacity: 1;
}

:root:not([data-theme="light"]) .theme-toggle-moon {
    opacity: 1;
}

.theme-toggle-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    left: 4px;
    transition: left 240ms ease;
}

:root[data-theme="light"] .theme-toggle-thumb {
    left: 32px;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--heading);
    transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle span:first-child {
    top: 16px;
}

.menu-toggle span:last-child {
    bottom: 16px;
}

.menu-toggle.is-open span:first-child {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-panel {
    display: none;
    padding: 0 20px 20px;
    gap: 16px;
    flex-direction: column;
}

.mobile-panel.is-open {
    display: flex;
}

.hero-section,
.page-hero {
    padding: 52px 0 34px;
}

.hero-shell,
.compact-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: 34px;
    align-items: center;
}

.hero-copy,
.hero-stage,
.highlight-card,
.story-panel,
.feature-card,
.mode-card,
.cta-panel,
.comparison-wrap,
.pricing-card,
.analytics-shell {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-copy {
    padding: 22px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.eyebrow,
.panel-label,
.feature-kicker,
.highlight-label,
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--heading);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.env-badge {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(244, 196, 122, 0.14);
    border: 1px solid rgba(244, 196, 122, 0.26);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Syne", sans-serif;
    color: var(--heading);
    line-height: 1.02;
}

h1 {
    margin-top: 20px;
    font-size: clamp(3rem, 6vw, 5.4rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(2.1rem, 4vw, 3.7rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.hero-lead,
.section-head p {
    margin-top: 18px;
    max-width: 66ch;
    font-size: 1.04rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-actions.left {
    justify-content: flex-start;
}

.hero-footnote {
    margin-top: 18px;
    color: var(--text-soft);
    max-width: 60ch;
    line-height: 1.7;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.highlight-chip {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
}

.highlight-chip strong {
    display: block;
    color: var(--heading);
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.highlight-chip span {
    display: block;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.94rem;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.metric-card,
.proof-bar span,
.visual-card,
.mini-panel {
    background: var(--bg-soft);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
}

.metric-card {
    padding: 16px;
}

.stat-number {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 1.8rem;
    color: var(--heading);
}

.metric-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.6;
}

.hero-stage {
    padding: 22px;
    min-height: 640px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.proof-section {
    padding: 18px 0 0;
}

/* Language flag marquee */
.lang-marquee-section {
    padding: 32px 0 0;
}

.lang-marquee-label {
    text-align: center;
    margin-bottom: 18px;
}

.lang-marquee-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.lang-marquee-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.lang-flag-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: 240px;
    padding: 22px 32px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.lang-flag-item:hover {
    border-color: var(--primary);
    box-shadow: 0 14px 34px rgba(138, 241, 218, 0.14);
    transform: translateY(-2px);
}

.lang-flag-item img {
    width: 64px;
    height: 42px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.lang-flag-item span {
    color: var(--text-muted);
    font-size: 1.12rem;
    font-weight: 600;
    white-space: nowrap;
}

.lang-marquee-track::before,
.lang-marquee-track::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.lang-marquee-track::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.lang-marquee-track::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

.lang-marquee-track:hover .lang-marquee-inner {
    animation-play-state: paused;
}

/* Product showcase image */
.product-showcase {
    margin-top: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--panel-border);
    overflow: hidden;
    background: var(--bg-soft);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.product-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* Screenshot showcases */
.screenshot-showcase {
    margin-top: 34px;
}

.screenshot-row {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.screenshot-row.single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.screenshot-row.dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
}

.screenshot-frame {
    border-radius: var(--radius-lg);
    border: 1px solid var(--panel-border);
    overflow: hidden;
    background: var(--bg-soft);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-frame .screenshot-caption {
    padding: 14px 18px;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.proof-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.proof-bar span {
    display: grid;
    place-items: center;
    min-height: 88px;
    padding: 18px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.section {
    padding: 92px 0;
}

.section-head {
    display: grid;
    gap: 16px;
    margin-bottom: 34px;
}

.story-grid,
.dual-grid,
.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.story-panel,
.highlight-card,
.mode-card,
.cta-panel {
    padding: 30px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.story-panel.spotlight,
.mode-card.premium,
.highlight-card {
    background:
        radial-gradient(circle at top right, rgba(128, 200, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.panel-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.panel-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

.panel-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.panel-list.compact {
    margin-top: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 26px;
    border-radius: var(--radius-lg);
}

.feature-card p,
.story-panel p,
.mode-card p,
.highlight-card p {
    margin-top: 16px;
}

.mode-header {
    display: grid;
    gap: 14px;
}

.analytics-shell {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
}

.visual-column {
    display: grid;
    gap: 18px;
}

.visual-card {
    padding: 20px;
    overflow: hidden;
}

.visual-card h3,
.visual-card h4 {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    color: var(--heading);
    margin-bottom: 12px;
}

.dashboard-stage {
    position: relative;
    display: grid;
    gap: 18px;
    min-height: 100%;
}

.dashboard-frame {
    position: relative;
    border-radius: 28px;
    padding: 22px;
    min-height: 100%;
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(4, 13, 24, 0.34);
    overflow: hidden;
}

:root[data-theme="light"] .dashboard-frame {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.86);
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-kicker,
.chart-note,
.pricing-badge {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
    gap: 16px;
    align-items: start;
}

.dashboard-stack {
    display: grid;
    gap: 16px;
}

.mini-panel {
    padding: 16px;
    min-width: 0;
}

.mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mini-header strong {
    color: var(--heading);
    font-size: 0.98rem;
}

.chart-shell {
    position: relative;
    min-height: 260px;
    padding: 10px;
    border-radius: 20px;
    background:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        rgba(255, 255, 255, 0.02);
    background-size: 54px 54px;
    overflow: hidden;
}

.chart-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: sweep 4.8s linear infinite;
}

.line-chart {
    width: 100%;
    height: 240px;
}

.line-chart path.chart-stroke {
    fill: none;
    stroke: url(#chartGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 540;
    stroke-dashoffset: 540;
    animation: drawLine 1.8s ease forwards;
}

.line-chart path.chart-area {
    fill: url(#chartArea);
    opacity: 0.36;
}

.line-chart circle {
    fill: #f9feff;
    stroke: var(--secondary);
    stroke-width: 4;
    animation: pulseDot 2.8s ease-in-out infinite;
}

.axis-caption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.signal-pill {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.gauge {
    --value: 82;
    position: relative;
    width: min(170px, 100%);
    aspect-ratio: 1;
    margin: 8px auto 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 58%, rgba(255, 255, 255, 0.05) 58%),
        conic-gradient(from 220deg, var(--danger) 0deg, var(--accent) 115deg, var(--primary) calc((var(--value) * 2.4deg) + 10deg), rgba(255, 255, 255, 0.1) 0);
    transition: background 60ms linear;
}

.gauge::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: var(--panel-strong);
    border: 1px solid var(--panel-border);
}

.gauge::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 3px;
    top: calc(50% - 1.5px);
    left: calc(50% - 6px);
    transform-origin: 6px 50%;
    transform: rotate(calc((var(--value) * 1.2deg) - 110deg));
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), var(--heading));
    border-radius: 999px;
    transition: transform 60ms linear;
}

.gauge-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.gauge-center strong {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 2rem;
    color: var(--heading);
}

.gauge-center span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.bars {
    display: grid;
    gap: 12px;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.bar-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fill, 50%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    animation: growBar 1.3s ease both;
}

.workflow-strip {
    display: grid;
    gap: 12px;
}

.workflow-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.workflow-index {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(128, 200, 255, 0.12);
    border: 1px solid var(--panel-border);
    color: var(--heading);
    font-weight: 700;
}

.workflow-copy strong {
    display: block;
    color: var(--heading);
    margin-bottom: 6px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.highlight-card {
    padding: 26px;
    border-radius: var(--radius-lg);
}

.highlight-card p {
    margin-top: 12px;
}

.shared-features-note {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.03);
}

.shared-features-note p {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.94rem;
}

.shared-features-note strong {
    color: var(--heading);
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-col {
    display: grid;
    gap: 12px;
}

.footer-tagline {
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.94rem;
    max-width: 36ch;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-col {
    display: grid;
    gap: 10px;
}

.footer-col strong {
    color: var(--heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-soft);
    font-size: 0.92rem;
    transition: color 220ms ease;
}

.footer-col a:hover {
    color: var(--heading);
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-social img,
.footer-social a {
    width: 20px;
    height: 20px;
    display: inline-flex;
    color: #AAB3BE;
    opacity: 0.9;
}

.footer-social img {
    filter: grayscale(100%) brightness(80%);
}

.footer-meta {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 18px;
}

/* Feature tags */
.tag-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.feature-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    margin-top: 10px;
}

.feature-tag.tag-both {
    background: rgba(138, 241, 218, 0.15);
    color: #8af1da;
    border: 1px solid rgba(138, 241, 218, 0.3);
}

.feature-tag.tag-ext {
    background: rgba(128, 200, 255, 0.15);
    color: #80c8ff;
    border: 1px solid rgba(128, 200, 255, 0.3);
}

.feature-tag.tag-app {
    background: rgba(255, 200, 128, 0.15);
    color: #ffc880;
    border: 1px solid rgba(255, 200, 128, 0.3);
}

.features-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .features-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .features-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal page content */
.legal-content h2 {
    font-size: 1.3rem;
    color: var(--heading);
    margin-top: 2.2rem;
    margin-bottom: 0.6rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--heading);
    margin-top: 1.6rem;
    margin-bottom: 0.4rem;
}

.legal-content p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 0.8rem;
    padding-left: 1.4rem;
}

.legal-content li {
    margin-bottom: 0.35rem;
    line-height: 1.65;
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--panel-border);
    margin: 2rem 0;
}

.legal-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pricing-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: var(--radius-xl);
}

.pricing-card.featured {
    transform: translateY(-8px);
    background:
        radial-gradient(circle at top right, rgba(138, 241, 218, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.pricing-card-head {
    display: grid;
    gap: 8px;
}

.pricing-card h3 {
    font-size: 1.6rem;
}

.price-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.price-sale {
    display: grid;
    gap: 8px;
}

.price-regular {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 1rem;
}

.price-regular span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.price-regular s {
    color: var(--text-muted);
    text-decoration-thickness: 1px;
    text-decoration-color: var(--text-soft);
    font-size: 1.1rem;
    font-weight: 700;
}

.price-row strong {
    font-family: "Syne", sans-serif;
    font-size: 2.7rem;
    color: var(--heading);
    line-height: 0.92;
}

.price-row span {
    color: var(--text-soft);
}

.price-launch-label {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(138, 241, 218, 0.28);
    background: rgba(138, 241, 218, 0.08);
    color: var(--primary);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    line-height: 1.65;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pricing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-soft);
    font-size: 0.86rem;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--panel-border);
    background: var(--bg-soft);
}

.pricing-note p {
    margin: 0;
    flex: 1 1 420px;
    color: var(--text-muted);
    line-height: 1.7;
}

.comparison-wrap {
    padding: 18px;
    border-radius: var(--radius-xl);
    overflow: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 740px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text-muted);
}

.comparison-table th {
    color: var(--heading);
    font-family: "Syne", sans-serif;
    font-size: 1rem;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    position: sticky;
    left: 0;
    background: var(--panel-strong);
}

@media (max-width: 640px) {
    .comparison-table {
        min-width: 520px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: static;
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        white-space: normal;
        font-size: 0.78rem;
        word-break: break-word;
    }

    .pricing-note {
        display: block;
        padding: 16px;
    }

    .pricing-note .panel-label {
        display: inline-block;
        margin-bottom: 8px;
    }

    .pricing-note p {
        flex: none;
    }
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--panel-border);
    background: var(--bg-soft);
    overflow: hidden;
}

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    color: var(--heading);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    inset: calc(50% - 1px) 0 auto 0;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 220ms ease;
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
    transform: rotate(0deg);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
}

.faq-panel p {
    padding: 0 24px 22px;
}

.faq-panel.is-open {
    max-height: 220px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        radial-gradient(circle at top left, rgba(128, 200, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(138, 241, 218, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.site-footer {
    padding: 0 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .brand-text span,
.footer-meta {
    color: var(--text-soft);
}

.footer-meta {
    text-align: right;
}

.compact-hero {
    padding-top: 48px;
}

.highlight-card strong {
    display: block;
    margin-top: 16px;
    font-family: "Syne", sans-serif;
    font-size: 1.6rem;
    color: var(--heading);
}

.notes-grid {
    align-items: stretch;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.desktop-only {
    display: inline-flex;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseDot {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.18);
    }
}

@keyframes sweep {
    to {
        transform: translateX(100%);
    }
}

@keyframes sweepNeedle {
    from {
        transform: rotate(-120deg);
    }
}

@keyframes growBar {
    from {
        width: 0;
    }
}

/* ── Typewriter hero (Typed.js) ─────────────────────────── */
/*
 * .tw-sizer  — invisible ghost of the longest phrase; reserves
 *              the full height so nothing below ever shifts.
 * .tw-live   — absolutely overlays the ghost; Typed.js writes here.
 */
h1 {
    position: relative;
}

.tw-sizer {
    visibility: hidden;
    display: block;
    pointer-events: none;
    user-select: none;
}

.tw-live {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.typed-cursor {
    color: var(--primary);
    font-weight: 300;
}

@media (max-width: 1100px) {
    .hero-shell,
    .compact-hero-grid,
    .analytics-grid,
    .dashboard-grid,
    .feature-grid,
    .highlights-grid,
    .pricing-grid,
    .proof-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .cta-panel,
    .footer-grid-new {
        align-items: start;
    }

    .cta-panel {
        flex-direction: column;
    }

    .footer-grid-new {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-shell,
    .compact-hero-grid,
    .story-grid,
    .dual-grid,
    .notes-grid,
    .feature-grid,
    .highlights-grid,
    .analytics-grid,
    .proof-bar,
    .pricing-grid,
    .metric-strip,
    .footer-grid-new,
    .screenshot-row.dual {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart-shell {
        min-height: 220px;
    }

    .line-chart {
        height: 210px;
    }

    .site-header {
        position: sticky;
    }

    .button {
        width: 100%;
    }

    .hero-actions .button,
    .cta-actions .button {
        width: auto;
    }

    .pricing-note,
    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-bar {
        min-height: 74px;
    }

    .brand-text span {
        display: none;
    }

    h1 {
        font-size: clamp(2.3rem, 10vw, 4rem);
    }

    h2 {
        font-size: clamp(1.9rem, 8vw, 3rem);
    }

    .hero-stage {
        min-height: auto;
        padding: 16px;
    }

    .story-panel,
    .feature-card,
    .mode-card,
    .pricing-card,
    .cta-panel,
    .highlight-card,
    .analytics-shell {
        padding: 22px;
    }

    .faq-trigger,
    .faq-panel p {
        padding-inline: 18px;
    }

    .hero-actions .button,
    .cta-actions .button {
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .dashboard-frame {
        padding: 16px;
    }

    .dashboard-top {
        align-items: start;
        flex-direction: column;
    }

    .chart-shell {
        min-height: 190px;
        padding: 8px;
    }

    .line-chart {
        height: 180px;
    }

    .gauge {
        width: 144px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .lang-marquee-inner {
        animation: none !important;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        transform: none !important;
    }
}