:root {
    --bg: #f0f4f8;
    --bg-deep: #e4ecf4;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.62);
    --surface-line: rgba(0, 40, 100, 0.1);
    --line-soft: rgba(0, 40, 100, 0.06);
    --text: #1a2b4a;
    --text-soft: rgba(26, 43, 74, 0.7);
    --text-dim: rgba(26, 43, 74, 0.46);
    --paper: #ffffff;
    --paper-ink: #1a2b4a;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --accent-strong: #3b82f6;
    --cool: #0ea5e9;
    --cool-soft: rgba(14, 165, 233, 0.1);
    --shadow-soft: 0 26px 60px rgba(0, 30, 80, 0.08);
    --shadow-frame: 0 44px 120px rgba(0, 30, 80, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1180px, calc(100vw - 48px));
    --font-display:
        "Be Vietnam Pro", "Iowan Old Style", "Palatino Linotype",
        "Book Antiqua", "Baskerville", Georgia, serif;
    --font-body:
        "Be Vietnam Pro", "Avenir Next", "Segoe UI Variable", "Segoe UI",
        sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Code", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(37, 99, 235, 0.08),
            transparent 26%
        ),
        radial-gradient(
            circle at 84% 18%,
            rgba(14, 165, 233, 0.08),
            transparent 28%
        ),
        linear-gradient(180deg, #e8f0fe 0%, #f0f4f8 42%, #f5f7fa 100%);
    background-size: auto;
    line-height: 1.6;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

body::before {
    display: none;
}

body::after {
    display: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.background-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(28px);
    z-index: -2;
}

.background-orb--warm {
    left: -120px;
    bottom: 10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.1),
        transparent 70%
    );
}

.background-orb--cool {
    right: -120px;
    top: 24%;
    width: 360px;
    height: 360px;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.1),
        transparent 70%
    );
}

.background-grid {
    display: none;
}

/* ─── Header ────────────────────────────────────────────── */

.site-header,
.section,
.site-footer {
    width: var(--container);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    color: #e2e8f0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: linear-gradient(
        180deg,
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0.06)
    );
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-mark__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.35);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-strong, #0f172a);
}

.brand-copy small {
    color: var(--text-dim);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.site-nav a {
    position: relative;
    padding-block: 8px;
    transition: color 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.6),
        transparent
    );
    transform: scaleX(0);
    opacity: 0;
    transition:
        transform 200ms ease,
        opacity 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Hamburger */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: background 180ms ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 280ms ease,
        opacity 280ms ease;
    transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Shared ────────────────────────────────────────────── */

.section {
    position: relative;
    padding: 86px 0;
}

.section-line {
    width: min(1220px, calc(100vw - 24px));
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(37, 99, 235, 0.15) 30%,
        rgba(14, 165, 233, 0.2) 50%,
        rgba(37, 99, 235, 0.15) 70%,
        transparent 95%
    );
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

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

.button--primary {
    color: #ffffff;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--secondary,
.button--ghost {
    color: var(--text);
    border-color: rgba(0, 40, 100, 0.14);
    background: rgba(255, 255, 255, 0.6);
}

/* ─── Hero ──────────────────────────────────────────────── */

.hero {
    position: relative;
    width: var(--container);
    min-height: auto;
    overflow: hidden;
    background: linear-gradient(
        160deg,
        #0a0e27 0%,
        #111640 30%,
        #0c1a3d 60%,
        #0d0f2b 100%
    );
    padding: 0;
    margin: 0;
    margin-inline: auto;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    top: -15%;
    left: -10%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.35),
        transparent 70%
    );
    animation: float 18s ease-in-out infinite;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    right: -5%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.3),
        transparent 70%
    );
    animation: float 22s ease-in-out infinite reverse;
}

.hero__orb--3 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: 20%;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.2),
        transparent 70%
    );
    animation: float 16s ease-in-out infinite 3s;
}

.hero__grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 28px 20px;
    min-height: auto;
}

.hero-copy {
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.hero-eyebrow__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.25),
        rgba(139, 92, 246, 0.25)
    );
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-accent {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #38bdf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 42ch;
    margin: 18px 0 0;
    color: rgba(148, 163, 184, 0.9);
    font-size: 1.06rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button--hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 14px;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow:
        0 12px 32px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.button--hero:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 44px rgba(37, 99, 235, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 600ms ease;
    pointer-events: none;
}

.button--hero:hover::after {
    left: 120%;
}

.button--ghost-hero {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition:
        background 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.button--ghost-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* Hero showcase */
.hero-showcase {
    position: relative;
    max-width: 100%;
}

.hero-showcase__frame {
    position: relative;
    perspective: 1200px;
    max-width: 100%;
}

/* Floating badges */
.hero-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: badgeFloat 6s ease-in-out infinite;
}

.hero-badge strong {
    font-size: 0.92rem;
}

.hero-badge--1 {
    top: 8%;
    right: -8%;
    animation-delay: 0s;
}
.hero-badge--2 {
    bottom: 22%;
    right: -12%;
    animation-delay: 2s;
}
.hero-badge--3 {
    top: 35%;
    left: -10%;
    animation-delay: 4s;
}

.hero-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

.hero-badge__icon--green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}
.hero-badge__icon--blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.hero-badge__icon--purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

@keyframes badgeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero stats bar */
.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    margin-bottom: 32px;
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-stat span {
    display: block;
    margin-top: 6px;
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.78rem;
}

.hero-stat__divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* Product panel in dark hero context */
.hero .product-panel {
    background:
        linear-gradient(rgba(15, 20, 40, 0.92), rgba(15, 20, 40, 0.92))
            padding-box,
        linear-gradient(
                135deg,
                rgba(59, 130, 246, 0.4),
                rgba(139, 92, 246, 0.3),
                rgba(14, 165, 233, 0.3)
            )
            border-box;
    border: 1px solid transparent;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    transform: rotateY(-3deg) rotateX(2deg);
    transition:
        transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 600ms ease;
}

.hero .product-panel:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hero .product-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #0ea5e9);
    border-radius: 28px 28px 0 0;
}

.hero .product-panel__header h2 {
    color: #f0f4f8;
}
.hero .product-panel__eyebrow {
    color: rgba(148, 163, 184, 0.7);
}
.hero .live-state {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
.hero .live-state::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.hero .product-tab {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(148, 163, 184, 0.6);
    background: transparent;
}
.hero .product-tab--active {
    color: #fff;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}
.hero .product-metrics {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
.hero .product-metrics article + article {
    border-color: rgba(255, 255, 255, 0.08);
}
.hero .product-metrics strong {
    color: #f0f4f8;
}
.hero .product-metrics span {
    color: rgba(148, 163, 184, 0.7);
}
.hero .signal-card {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}
.hero .signal-card__row p {
    color: rgba(240, 244, 248, 0.85);
}
.hero .signal-card__row span {
    color: rgba(148, 163, 184, 0.6);
}
.hero .signal-meter {
    background: rgba(255, 255, 255, 0.08);
}

.product-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95))
            padding-box,
        linear-gradient(
                135deg,
                rgba(37, 99, 235, 0.25),
                rgba(14, 165, 233, 0.2),
                rgba(139, 92, 246, 0.15)
            )
            border-box;
    box-shadow: 0 24px 64px rgba(0, 30, 80, 0.1);
    padding: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.product-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9, #8b5cf6);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-panel__header,
.signal-card__row,
.signal-card__meta,
.cta-actions,
.site-footer__bottom,
.site-footer__links {
    display: flex;
    align-items: center;
}

.product-panel__header {
    justify-content: space-between;
    gap: 18px;
}

.product-panel__eyebrow {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.product-panel__header h2 {
    margin: 8px 0 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.live-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(37, 99, 235, 0.06);
    color: var(--text);
    font-size: 0.82rem;
}

.live-state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 2.6s infinite;
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.product-tab {
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    color: var(--text-dim);
    font-size: 0.78rem;
    background: transparent;
}

.product-tab--active {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.product-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(240, 244, 248, 0.6);
}

.product-metrics article {
    padding: 18px 14px;
}

.product-metrics article + article {
    border-left: 1px solid rgba(0, 40, 100, 0.08);
}

.product-metrics strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.product-metrics span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.signal-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.signal-card {
    position: relative;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 40, 100, 0.06);
    background: rgba(240, 244, 248, 0.5);
}

.signal-card::before {
    display: none;
}

.signal-card__row,
.signal-card__meta {
    justify-content: space-between;
    gap: 16px;
}

.signal-card__row p,
.signal-card__row span,
.signal-card__meta small {
    margin: 0;
}

.signal-card__row p {
    color: var(--text);
    font-weight: 600;
}

.signal-card__row span {
    color: var(--text-dim);
    font-size: 0.84rem;
}

.signal-card__meta {
    margin-top: 10px;
}

.signal-card__meta small {
    color: var(--text-dim);
    font-size: 0.78rem;
}

.signal-meter {
    width: 100%;
    height: 7px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 40, 100, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.signal-meter__fill {
    position: relative;
    display: block;
    width: var(--fill);
    height: 100%;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1000ms cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible .signal-meter__fill {
    transform: scaleX(1);
}

.signal-meter__fill::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -12px;
    bottom: -1px;
    width: 30px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.34),
        rgba(255, 255, 255, 0)
    );
    transform: skewX(-20deg);
}

.signal-meter__fill--warm {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.signal-meter__fill--cool {
    background: linear-gradient(90deg, #0ea5e9, #67e8f9);
}

.signal-meter__fill--soft {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

.event-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.event-strip span {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(37, 99, 235, 0.04);
    color: var(--text-soft);
    font-size: 0.78rem;
}

/* ─── Social Proof ──────────────────────────────────────── */

.social-proof {
    padding: 48px 0 64px;
    position: relative;
}

.social-proof::before {
    content: "";
    position: absolute;
    inset: -20px -9999px;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.03),
        rgba(14, 165, 233, 0.02),
        transparent
    );
    pointer-events: none;
    z-index: -1;
}

.social-proof__logos {
    text-align: center;
}

.social-proof__label {
    margin: 0 0 28px;
    color: var(--text-dim);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 48px;
}

.logo-placeholder {
    color: rgba(26, 43, 74, 0.3);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 20px;
    border: 1px dashed rgba(0, 40, 100, 0.12);
    border-radius: 12px;
    transition:
        color 200ms ease,
        border-color 200ms ease;
}

.logo-placeholder:hover {
    color: rgba(26, 43, 74, 0.5);
    border-color: rgba(0, 40, 100, 0.2);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 42px;
}

.testimonial-card {
    padding: 28px 26px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 40, 100, 0.08);
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #2563eb, #8b5cf6) 1;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.06);
}

.testimonial-card blockquote {
    margin: 0;
    position: relative;
}

.testimonial-card blockquote::before {
    content: "\201C";
    position: absolute;
    top: -14px;
    left: -4px;
    font-size: 3.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.35;
    pointer-events: none;
}

.testimonial-card blockquote p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.72;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 40, 100, 0.08);
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.12),
        rgba(14, 165, 233, 0.12)
    );
    border: 1px solid rgba(0, 40, 100, 0.1);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.testimonial-author strong {
    display: block;
    font-size: 0.92rem;
}

.testimonial-author span {
    display: block;
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ─── Workflow Pipeline ─────────────────────────────────── */

.workflow {
    margin-top: 48px;
    padding: 36px 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 40, 100, 0.06);
    box-shadow: 0 8px 32px rgba(0, 30, 80, 0.05);
    position: relative;
    overflow: visible;
}

/* SVG connectors between nodes */
.workflow__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.workflow__connector {
    fill: none;
    stroke: url(#wf-grad);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.25;
}

.workflow__beam {
    fill: none;
    stroke: url(#wf-grad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 40 200;
    filter: url(#wf-glow);
    animation: beam-flow 3s linear infinite;
}

@keyframes beam-seg {
    0% {
        stroke-dashoffset: 300;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.workflow__steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.workflow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.workflow__node {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 2px solid;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 30, 80, 0.08);
    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 300ms ease;
}

.workflow__node:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.14);
}

.workflow__node--blue {
    border-color: #2563eb;
    color: #2563eb;
}
.workflow__node--cyan {
    border-color: #0ea5e9;
    color: #0ea5e9;
}
.workflow__node--purple {
    border-color: #8b5cf6;
    color: #8b5cf6;
}
.workflow__node--green {
    border-color: #22c55e;
    color: #22c55e;
}
.workflow__node--orange {
    border-color: #f59e0b;
    color: #f59e0b;
}

.workflow__step strong {
    font-size: 0.88rem;
    color: var(--text);
}
.workflow__step span {
    font-size: 0.76rem;
    color: var(--text-dim);
    line-height: 1.4;
    max-width: 14ch;
}

/* Principle row */
.principle-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.principle-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.06);
    position: relative;
    overflow: hidden;
}

.principle-card__visual {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.principle-card__ring {
    width: 64px;
    height: 64px;
}

.principle-ring-fill {
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 0 214;
    transition: stroke-dasharray 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.reveal.is-visible .principle-card:nth-child(1) .principle-ring-fill {
    stroke-dasharray: 160 214;
}
.reveal.is-visible .principle-card:nth-child(2) .principle-ring-fill {
    stroke-dasharray: 140 214;
}
.reveal.is-visible .principle-card:nth-child(3) .principle-ring-fill {
    stroke-dasharray: 120 214;
}

.principle-card__number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dim);
}

.principle-card h3 {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.24;
}
.principle-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Remove old principle-card top bars */
.principle-card::before {
    display: none;
}

/* ─── Hub Architecture ──────────────────────────────────── */

.hub {
    position: relative;
    width: 100%;
    max-width: 920px;
    height: 600px;
    margin: 48px auto 0;
}

.hub__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.hub__center-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.15),
        transparent 70%
    );
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hub__center-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    animation: spin-slow 20s linear infinite;
    background: conic-gradient(
        from 0deg,
        rgba(37, 99, 235, 0.3),
        transparent,
        rgba(139, 92, 246, 0.3),
        transparent,
        rgba(14, 165, 233, 0.3),
        transparent
    );
    mask-image: radial-gradient(
        circle,
        transparent 50%,
        black 52%,
        black 98%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        circle,
        transparent 50%,
        black 52%,
        black 98%,
        transparent 100%
    );
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.hub__center-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
    color: #fff;
    position: relative;
}

.hub__center-core strong {
    font-size: 1rem;
    letter-spacing: 0.04em;
}
.hub__center-core span {
    font-size: 0.6rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hub__spoke {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hub__spoke--1 {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
}
.hub__spoke--2 {
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    flex-direction: row;
}
.hub__spoke--3 {
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}
.hub__spoke--4 {
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

.hub__line {
    width: 2px;
    height: 60px;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.3),
        rgba(37, 99, 235, 0.08)
    );
}
.hub__spoke--2 .hub__line,
.hub__spoke--4 .hub__line {
    width: 90px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(37, 99, 235, 0.08),
        rgba(37, 99, 235, 0.3)
    );
}

.hub__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 40, 100, 0.08);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.07);
    max-width: 180px;
    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 300ms ease;
}

.hub__node:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 30, 80, 0.12);
}
.hub__node--blue {
    color: #2563eb;
}
.hub__node--green {
    color: #16a34a;
}
.hub__node--cyan {
    color: #0ea5e9;
}
.hub__node--red {
    color: #e11d48;
}
.hub__node strong {
    font-size: 0.88rem;
    color: var(--text);
}
.hub__node span {
    font-size: 0.76rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.hub__orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hub__particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}
.hub__particle--1 {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    animation: orbit 8s linear infinite;
}
.hub__particle--2 {
    background: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    animation: orbit 12s linear infinite reverse;
}
.hub__particle--3 {
    background: #0ea5e9;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
    animation: orbit 10s linear infinite 3s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(180px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(180px) rotate(-360deg);
    }
}

/* ─── Sections ──────────────────────────────────────────── */

.section-heading {
    max-width: 760px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #1a2b4a 0%, #1e40af 60%, #0ea5e9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 42px;
    align-items: start;
    margin-top: 34px;
}

.editorial-copy {
    max-width: 48ch;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.78;
}

.editorial-copy p {
    margin: 0;
}

.editorial-copy p + p {
    margin-top: 18px;
}

.principle-stack {
    display: grid;
    gap: 16px;
}

.principle-card,
.pillar-card,
.role-board,
.cta-panel {
    position: relative;
    overflow: hidden;
}

.principle-card {
    padding: 22px 22px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.06);
}

.principle-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 22px 22px 0 0;
}

.principle-card:nth-child(1)::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.principle-card:nth-child(2)::before {
    background: linear-gradient(90deg, #0ea5e9, #67e8f9);
}

.principle-card:nth-child(3)::before {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

.pillar-card::before,
.role-row::before {
    display: none;
}

.principle-card__index {
    display: block;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
}

.principle-card h3 {
    margin: 12px 0 0;
    font-size: 1.16rem;
    line-height: 1.24;
}

.principle-card p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.62;
}

/* ─── Platform Pillars ──────────────────────────────────── */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.pillar-card {
    min-height: 164px;
    padding: 22px 22px 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.06);
}

.pillar-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 40, 100, 0.06);
}

.pillar-card__icon--core {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
}

.pillar-card__icon--live {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.pillar-card__icon--role {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
}

.pillar-card__icon--vn {
    color: #e11d48;
    background: rgba(225, 29, 72, 0.08);
}

.pillar-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding-inline: 12px;
    border-radius: 999px;
    background: rgba(0, 40, 100, 0.05);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

.pillar-card p {
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.64;
}

/* ─── Roles — 2x2 Card Grid ─────────────────────────────── */

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.role-card {
    padding: 28px 26px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.06);
    position: relative;
    overflow: hidden;
    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 380ms ease,
        border-color 380ms ease;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 30, 80, 0.12);
}

/* Top accent bar per card */
.role-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.role-card--blue::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.role-card--green::before {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}
.role-card--cyan::before {
    background: linear-gradient(90deg, #0ea5e9, #67e8f9);
}
.role-card--red::before {
    background: linear-gradient(90deg, #e11d48, #fb7185);
}

.role-card--blue:hover {
    border-color: rgba(37, 99, 235, 0.2);
}
.role-card--green:hover {
    border-color: rgba(22, 163, 74, 0.2);
}
.role-card--cyan:hover {
    border-color: rgba(14, 165, 233, 0.2);
}
.role-card--red:hover {
    border-color: rgba(225, 29, 72, 0.2);
}

.role-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 40, 100, 0.06);
}

.role-card--blue .role-card__icon {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}
.role-card--green .role-card__icon {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}
.role-card--cyan .role-card__icon {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
}
.role-card--red .role-card__icon {
    color: #e11d48;
    background: rgba(225, 29, 72, 0.08);
}

.role-card__icon svg {
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.role-card:hover .role-card__icon svg {
    transform: scale(1.12);
}

.role-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.role-card p {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.role-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.role-card__tags span {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.role-card--blue .role-card__tags span {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}
.role-card--green .role-card__tags span {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
}
.role-card--cyan .role-card__tags span {
    background: rgba(14, 165, 233, 0.08);
    color: #0ea5e9;
}
.role-card--red .role-card__tags span {
    background: rgba(225, 29, 72, 0.08);
    color: #e11d48;
}

/* ─── CTA + Demo Form ──────────────────────────────────── */

.cta {
    padding-top: 94px;
    padding-bottom: 70px;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
    gap: 34px;
    align-items: end;
    min-height: 320px;
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(
            circle at 34% 60%,
            rgba(59, 130, 246, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(139, 92, 246, 0.1),
            transparent 24%
        ),
        linear-gradient(135deg, #1e3a5f, #1e40af 44%, #312e81);
    background-size:
        200% 200%,
        200% 200%,
        100% 100%;
    animation: gradientShift 12s ease infinite;
    color: #f0f4f8;
    box-shadow:
        0 24px 64px rgba(30, 64, 175, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-copy {
    max-width: 560px;
}

.cta-panel .eyebrow {
    color: rgba(240, 244, 248, 0.6);
}

.cta-panel .eyebrow::before {
    opacity: 0.5;
}

.cta-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.cta-copy > p:last-of-type {
    max-width: 54ch;
    margin: 18px 0 0;
    color: rgba(240, 244, 248, 0.82);
    line-height: 1.7;
}

.cta-actions {
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.demo-form {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.demo-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-form__input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #f0f4f8;
    font-size: 0.92rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        background 240ms ease;
    appearance: none;
}

.demo-form__input::placeholder {
    color: rgba(240, 244, 248, 0.5);
}

.demo-form__input:focus {
    outline: none;
    border-color: #93c5fd;
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 0 0 3px rgba(96, 165, 250, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.demo-form__input option {
    background: #1e3a5f;
    color: #f0f4f8;
}

.demo-form__submit {
    width: 100%;
    margin-top: 4px;
    font-size: 0.96rem;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    color: #1e40af;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-points {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-points li {
    position: relative;
    padding-left: 18px;
    color: rgba(240, 244, 248, 0.86);
    font-size: 0.94rem;
    line-height: 1.64;
}

.cta-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* ─── Footer ────────────────────────────────────────────── */

.site-footer {
    padding: 0 0 34px;
    border-top: none;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 -9999px;
    background: linear-gradient(180deg, #0f172a, #0c1222);
    z-index: -1;
}

.site-footer,
.site-footer a {
    color: rgba(148, 163, 184, 0.8);
}

.site-footer .brand-copy strong {
    color: #e2e8f0;
}

.site-footer .brand-copy small {
    color: rgba(148, 163, 184, 0.7);
}

.site-footer .brand-mark {
    border-color: rgba(96, 165, 250, 0.3);
    background: linear-gradient(
        180deg,
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0.06)
    );
}

.site-footer__main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
    padding: 40px 0 32px;
}

.site-footer__brand .brand {
    margin-bottom: 14px;
}

.site-footer__tagline {
    margin: 14px 0 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.92rem;
    max-width: 36ch;
    line-height: 1.55;
}

.site-footer__contact,
.site-footer__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__contact strong,
.site-footer__social strong {
    color: #e2e8f0;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.site-footer__contact a {
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.92rem;
    transition: color 180ms ease;
}

.site-footer__contact a:hover {
    color: #60a5fa;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(148, 163, 184, 0.8);
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.social-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}

.site-footer__bottom {
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(100, 116, 139, 0.7);
    font-size: 0.86rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__links {
    gap: 22px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: rgba(100, 116, 139, 0.7);
    transition: color 180ms ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: #60a5fa;
}

/* ─── Animations ────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 680ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ─── Hover & Interaction Effects ───────────────────────── */

/* Cards lift + glow on hover */
.principle-card,
.pillar-card,
.testimonial-card {
    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 380ms ease;
}

.principle-card:hover,
.pillar-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 30, 80, 0.12);
    border-color: rgba(37, 99, 235, 0.18);
}

/* Pillar card icon scale on card hover */
.pillar-card__icon {
    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-card__icon {
    transform: scale(1.12);
}

/* Role rows slide-in indicator */
.role-row {
    transition:
        background 280ms ease,
        padding-left 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.role-row:hover {
    background: rgba(37, 99, 235, 0.04);
    padding-left: 24px;
}

.role-row__icon {
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.role-row:hover .role-row__icon {
    transform: scale(1.1);
}

/* Product panel + dashboard hover */
.product-panel {
    transition:
        transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 30, 80, 0.14);
}

/* Signal cards subtle hover */
.signal-card {
    transition:
        background 240ms ease,
        transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-card:hover {
    background: rgba(37, 99, 235, 0.04);
    transform: translateX(4px);
}

/* Product tabs interactive feel */
.product-tab {
    transition:
        background 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
    cursor: pointer;
}

.product-tab:hover:not(.product-tab--active) {
    background: rgba(37, 99, 235, 0.06);
    color: var(--text);
    border-color: rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

/* Button press effect */
.button:active {
    transform: translateY(1px) scale(0.98);
}

.button--primary {
    position: relative;
    overflow: hidden;
    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.button--primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 600ms ease;
    pointer-events: none;
}

.button--primary:hover::after {
    left: 120%;
}

.button--primary:hover {
    box-shadow:
        0 18px 40px rgba(37, 99, 235, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button--secondary:hover,
.button--ghost:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.18);
}

/* Demo form submit glow */
.demo-form__submit {
    transition:
        transform 180ms ease,
        box-shadow 280ms ease,
        background 180ms ease;
}

.demo-form__submit:hover {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Social links pop */
.social-link {
    transition:
        color 200ms ease,
        background 200ms ease,
        border-color 200ms ease,
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.08);
}

/* Nav link shimmer underline */
.site-nav a::after {
    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 280ms ease;
}

/* Logo bar items */
.logo-placeholder {
    transition:
        color 200ms ease,
        border-color 200ms ease,
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        background 200ms ease;
}

.logo-placeholder:hover {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.03);
}

/* Event strip chips */
.event-strip span {
    transition:
        background 200ms ease,
        color 200ms ease,
        transform 200ms ease;
    cursor: default;
}

.event-strip span:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
    transform: translateY(-1px);
}

/* Header glassmorphism on scroll */
.site-header {
    transition:
        box-shadow 300ms ease,
        background 300ms ease,
        border-color 300ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 40px rgba(0, 30, 80, 0.1);
    border-color: rgba(0, 40, 100, 0.1);
    color: var(--text);
}

.site-header.is-scrolled .site-nav {
    color: var(--text-soft);
}
.site-header.is-scrolled .button--ghost {
    color: var(--text);
    border-color: rgba(0, 40, 100, 0.14);
    background: rgba(255, 255, 255, 0.6);
}

/* CTA panel shimmer border */
.cta-panel {
    transition:
        transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-panel:hover {
    transform: translateY(-3px);
    box-shadow:
        0 30px 72px rgba(30, 64, 175, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* CTA points bullet pulse on hover */
.cta-points li {
    transition: padding-left 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-points li:hover {
    padding-left: 24px;
}

.cta-points li::before {
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-points li:hover::before {
    transform: scale(1.4);
}

/* ─── Stagger animations for grid children ──────────────── */

.pillar-grid .pillar-card:nth-child(1) {
    --reveal-delay: 0ms;
}
.pillar-grid .pillar-card:nth-child(2) {
    --reveal-delay: 80ms;
}
.pillar-grid .pillar-card:nth-child(3) {
    --reveal-delay: 160ms;
}
.pillar-grid .pillar-card:nth-child(4) {
    --reveal-delay: 240ms;
}

/* Hero stat counter animations handled by JS */

/* ─── Floating gradient background animation ────────────── */

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

@keyframes gradientShift {
    0%,
    100% {
        background-position:
            0% 50%,
            100% 50%,
            0 0;
    }
    50% {
        background-position:
            100% 50%,
            0% 50%,
            0 0;
    }
}

.background-orb--warm {
    animation: float 20s ease-in-out infinite;
}

.background-orb--cool {
    animation: float 24s ease-in-out infinite reverse;
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 1120px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 112px;
        min-height: auto;
    }

    .hero-copy {
        max-width: 640px;
        margin: 0 auto;
    }
    .hero-lead {
        margin-inline: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-badge {
        display: none;
    }
    .hero .product-panel {
        transform: none;
        max-width: 580px;
        margin: 0 auto;
    }

    .principle-row {
        grid-template-columns: 1fr;
    }
    .hub {
        height: auto;
        min-height: 500px;
    }
    .hub__spoke {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
    .hub {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .hub__spoke {
        flex-direction: row !important;
    }
    .hub__line {
        display: none;
    }
    .hub__orbit {
        display: none;
    }
    .hub__center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .editorial-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

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

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .workflow__steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .workflow__track {
        display: none;
    }

    .site-header {
        width: min(calc(100vw - 24px), 100%);
        gap: 14px;
        flex-wrap: wrap;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0 4px;
        order: 10;
    }

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

    .site-nav a {
        width: 100%;
        text-align: center;
        padding: 10px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: rgba(0, 40, 100, 0.04);
    }

    .site-nav a::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 84px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0;
        margin-top: -30px;
        padding: 16px 20px;
    }

    .hero-stat__divider:nth-child(4) {
        display: none;
    }
    .hero-stat:nth-child(5) {
        display: none;
    }

    .pillar-grid,
    .product-metrics,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .product-metrics article + article {
        border-left: 0;
        border-top: 1px solid rgba(0, 40, 100, 0.08);
    }

    .demo-form__row {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100vw - 24px, 100%);
    }

    .site-header {
        padding: 12px 14px;
    }

    .brand-copy small {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .hero-copy h1,
    .section-heading h2,
    .cta-copy h2 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .product-panel,
    .pillar-card,
    .principle-card,
    .cta-panel {
        padding-inline: 18px;
    }

    .product-tabs,
    .event-strip {
        gap: 8px;
    }

    .logo-bar {
        gap: 16px 24px;
    }

    .logo-placeholder {
        font-size: 0.88rem;
        padding: 8px 14px;
    }

    .workflow__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .workflow__step:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat {
        flex: 1 1 40%;
    }

    .hero-stat__divider {
        display: none;
    }

    .social-proof {
        padding: 32px 0 40px;
    }

    .testimonial-grid {
        margin-top: 28px;
    }

    .cta-panel {
        min-height: auto;
        padding: 28px 18px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .site-footer__links {
        justify-content: center;
        gap: 16px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .metric-tile {
        opacity: 1;
        transform: none;
    }
}

.section-heading__lead {
    max-width: 62ch;
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 1rem;
}

.insights-shell {
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.72)
        ),
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.04),
            rgba(14, 165, 233, 0.04)
        );
    box-shadow: var(--shadow-soft);
}

.insights-toolbar,
.insights-toolbar__copy,
.insights-filters,
.featured-story__meta,
.featured-story__stats,
.story-card__meta,
.story-card__footer,
.story-detail__meta,
.story-detail__author,
.story-detail__tags {
    display: flex;
    align-items: center;
}

.insights-toolbar {
    justify-content: space-between;
    gap: 20px;
}

.insights-toolbar__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.insights-toolbar__copy strong {
    font-size: 1.08rem;
    line-height: 1.4;
}

.insights-toolbar__eyebrow {
    color: var(--text-dim);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.insights-filters {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.insights-filter {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 40, 100, 0.1);
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.insights-filter:hover,
.insights-filter:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
}

.insights-filter.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 52%, #0ea5e9);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.cms-status {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    font-size: 0.96rem;
}

.cms-status--loading {
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.72);
}

.cms-status--error {
    color: #8b1e3f;
    border-color: rgba(190, 24, 93, 0.18);
    background: rgba(255, 241, 242, 0.92);
}

.cms-status--empty {
    color: var(--text-soft);
    background: rgba(240, 244, 248, 0.72);
}

.insights-content {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.featured-story__button,
.story-card {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.featured-story__button {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 44px rgba(0, 30, 80, 0.08);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.featured-story__button:hover,
.featured-story__button:focus-visible,
.story-card:hover,
.story-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 26px 56px rgba(0, 30, 80, 0.1);
}

.featured-story__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 28px;
}

.featured-story__body h3,
.story-card__body h3,
.story-detail__header h2 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.featured-story__body h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.06;
}

.featured-story__body p,
.story-card__body p,
.story-detail__excerpt {
    margin: 0;
    color: var(--text-soft);
}

.featured-story__meta,
.featured-story__stats,
.story-card__meta,
.story-card__footer,
.story-detail__meta,
.story-detail__tags {
    flex-wrap: wrap;
    gap: 10px;
}

.featured-story__stats,
.story-card__footer {
    justify-content: space-between;
    gap: 14px;
    color: var(--text-dim);
    font-size: 0.86rem;
}

.featured-story__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
}

.featured-story__cta::after {
    content: "→";
    transition: transform 180ms ease;
}

.featured-story__button:hover .featured-story__cta::after,
.featured-story__button:focus-visible .featured-story__cta::after {
    transform: translateX(4px);
}

.story-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(240, 244, 248, 0.84);
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.story-pill--post {
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.9);
}

.story-pill--news {
    color: #0f766e;
    background: rgba(204, 251, 241, 0.84);
}

.story-pill--blog {
    color: #7c3aed;
    background: rgba(237, 233, 254, 0.9);
}

.story-pill--quiet {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.78);
}

.story-cover {
    position: relative;
    height: 140px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.12),
        rgba(14, 165, 233, 0.12)
    );
}

.story-cover--large {
    height: 100%;
    min-height: 160px;
    max-height: 220px;
    border-radius: 0;
}

.story-detail .story-cover,
.story-detail .story-cover--large {
    height: auto;
    min-height: 180px;
    max-height: 260px;
}

.story-cover img,
.story-detail .story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-cover__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.32),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.95),
            rgba(14, 165, 233, 0.9)
        );
}

.story-cover__placeholder span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.story-card {
    display: grid;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 32px rgba(0, 30, 80, 0.06);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.story-card .story-cover {
    min-height: 180px;
    border-radius: 0;
}

.story-card__body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.story-card__body h3 {
    font-size: 1.28rem;
    line-height: 1.18;
}

.story-card__body p {
    min-height: 5.2em;
    font-size: 0.94rem;
}

.insights-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.insights-load-more {
    min-width: 240px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: 1px solid var(--accent);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.insights-load-more:hover,
.insights-load-more:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
    background: #1d4ed8;
    color: #fff;
}

.story-drawer-open {
    overflow: hidden;
}

.story-drawer[hidden] {
    display: none;
}

.story-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
}

.story-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 24, 48, 0.48);
    backdrop-filter: blur(10px);
}

.story-drawer__panel {
    position: relative;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 34px 80px rgba(0, 20, 60, 0.22);
}

.story-drawer__body {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 32px;
}

.story-drawer__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(0, 20, 60, 0.1);
}

.story-detail {
    display: grid;
    gap: 28px;
}

.story-detail .story-cover {
    min-height: 320px;
    border-radius: 24px;
}

.story-detail__header {
    display: grid;
    gap: 18px;
    padding-right: 52px;
}

.story-detail__header h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.02;
}

.story-detail__excerpt {
    max-width: 70ch;
    font-size: 1.02rem;
    line-height: 1.75;
}

.story-detail__author {
    gap: 14px;
}

.story-detail__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.story-detail__avatar--fallback {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--cool));
}

.story-detail__author-copy {
    display: grid;
    gap: 4px;
}

.story-detail__author-copy strong {
    font-size: 1rem;
}

.story-detail__author-copy span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.story-rich-text {
    display: grid;
    gap: 16px;
    color: var(--paper-ink);
}

.story-rich-text h1,
.story-rich-text h2,
.story-rich-text h3,
.story-detail__author-bio h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.story-rich-text h1 {
    font-size: 2rem;
}

.story-rich-text h2 {
    font-size: 1.56rem;
}

.story-rich-text h3 {
    font-size: 1.26rem;
}

.story-rich-text p,
.story-detail__author-bio p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.82;
}

.story-rich-text ul,
.story-rich-text ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
    display: grid;
    gap: 8px;
}

.story-rich-text blockquote {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid rgba(37, 99, 235, 0.5);
    border-radius: 0 18px 18px 0;
    color: var(--text);
    font-style: italic;
    background: rgba(219, 234, 254, 0.52);
}

.story-rich-text code {
    padding: 2px 7px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(15, 23, 42, 0.08);
}

.story-detail__footer {
    display: grid;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 40, 100, 0.08);
}

.story-detail__canonical {
    color: var(--accent);
    font-weight: 700;
}

.story-detail__author-bio {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(0, 40, 100, 0.08);
    background: rgba(240, 244, 248, 0.74);
}

@media (max-width: 1120px) {
    .featured-story__button {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-story__button {
        grid-template-columns: 1fr;
    }
    .featured-story__button .story-cover--large {
        max-height: 180px;
    }
}

@media (max-width: 820px) {
    .insights-shell,
    .story-drawer__body {
        padding: 20px;
    }

    .insights-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .insights-filters {
        justify-content: flex-start;
    }

    .story-drawer {
        padding: 12px;
    }

    .story-drawer__panel,
    .story-drawer__body {
        max-height: calc(100vh - 24px);
    }

    .story-detail .story-cover {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .insights-shell {
        padding: 18px;
        border-radius: 24px;
    }

    .insights-filter {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .featured-story__body,
    .story-card__body {
        padding: 18px;
    }

    .featured-story__body h3,
    .story-detail__header h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .story-drawer__close {
        top: 12px;
        right: 12px;
    }

    .story-detail__header {
        padding-right: 40px;
    }

    .story-detail .story-cover {
        min-height: 200px;
    }
}

/* ═══════════════════════════════════════════════
   AI ASSISTANT SECTION
   ═══════════════════════════════════════════════ */

/* ── Section backdrop ── */
.ai-section {
    position: relative;
    overflow: hidden;
}

.ai-section__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.ai-orb--1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
    top: -10%;
    left: -5%;
    animation: ai-float-1 8s ease-in-out infinite alternate;
}

.ai-orb--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 70%);
    bottom: -8%;
    right: -3%;
    animation: ai-float-2 10s ease-in-out infinite alternate;
}

.ai-orb--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: ai-float-3 7s ease-in-out infinite alternate;
}

@keyframes ai-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}
@keyframes ai-float-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-25px, -15px) scale(1.06); }
}
@keyframes ai-float-3 {
    0% { transform: translateX(-50%) translate(0, 0) scale(1); }
    100% { transform: translateX(-50%) translate(15px, -20px) scale(1.1); }
}

/* ── Grid ── */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: var(--container);
    margin-inline: auto;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

/* ── Glow wrapper ── */
.ai-chat-glow-wrapper {
    position: relative;
}

.ai-chat-glow-wrapper::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 6px);
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.35),
        rgba(124, 58, 237, 0.25),
        rgba(14, 165, 233, 0.35));
    filter: blur(16px);
    animation: ai-glow-pulse 3s ease-in-out infinite alternate;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ai-chat-glow-wrapper.is-glowing::before {
    opacity: 1;
}

@keyframes ai-glow-pulse {
    0% { opacity: 0.4; transform: scale(0.98); }
    100% { opacity: 0.75; transform: scale(1.02); }
}

/* ── Chat Mockup ── */
.ai-chat-mockup {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 44px 120px rgba(0, 30, 80, 0.12),
        0 12px 36px rgba(0, 30, 80, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ── Header with window chrome ── */
.ai-chat-mockup__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #6d28d9);
    background-size: 200% 200%;
    animation: ai-header-shimmer 6s ease-in-out infinite alternate;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

@keyframes ai-header-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.ai-chat-dots {
    display: flex;
    gap: 6px;
    margin-right: 6px;
}

.ai-chat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ai-chat-dot:nth-child(1) { background: #ff5f57; }
.ai-chat-dot:nth-child(2) { background: #febc2e; }
.ai-chat-dot:nth-child(3) { background: #28c840; }

.ai-chat-mockup__title {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Chat body ── */
.ai-chat-mockup__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
}

/* ── Chat messages ── */
.ai-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-msg.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ai-chat-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.ai-chat-msg--bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 1px 4px rgba(0, 30, 80, 0.04);
}

.ai-chat-msg--tool {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 10px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.ai-tool-icon { flex-shrink: 0; }
.ai-tool-label { flex: 1; }

.ai-tool-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ai-spin 0.6s linear infinite;
    display: none;
    flex-shrink: 0;
}

.ai-tool-spinner.is-spinning {
    display: inline-block;
}

.ai-tool-check {
    display: none;
    flex-shrink: 0;
}

.ai-tool-check.is-done {
    display: inline-block;
}

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

/* ── Input area ── */
.ai-chat-mockup__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.8125rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.5);
}

.ai-input-text {
    display: flex;
    align-items: center;
}

.ai-input-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    animation: ai-blink 1s step-end infinite;
    vertical-align: text-bottom;
    border-radius: 1px;
}

@keyframes ai-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Feature cards ── */
.ai-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 3px rgba(0, 30, 80, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.ai-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 30, 80, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.ai-feature-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.ai-feature-item:hover::after {
    left: 100%;
}

.ai-feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ai-feature-item:hover .ai-feature-icon {
    transform: scale(1.08);
}

.ai-feature-icon--blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06));
    color: #2563eb;
}
.ai-feature-icon--green {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(22, 163, 74, 0.06));
    color: #16a34a;
}
.ai-feature-icon--purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.06));
    color: #7c3aed;
}
.ai-feature-icon--cyan {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.06));
    color: #0ea5e9;
}
.ai-feature-icon--orange {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(234, 88, 12, 0.06));
    color: #ea580c;
}

.ai-feature-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.ai-feature-item p {
    font-size: 0.8125rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ── AI Tag on Product Tab ── */
.product-tab--ai {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
    color: #7c3aed;
    font-weight: 600;
}

/* ── AI Tag on Role Cards ── */
.role-card__tag--ai {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    color: #fff !important;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ai-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ai-chat-glow-wrapper::before {
        filter: blur(10px);
    }

    .ai-orb {
        filter: blur(60px);
        opacity: 0.7;
    }

    .ai-feature-item {
        padding: 14px 16px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .ai-chat-msg {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .ai-chat-glow-wrapper::before {
        animation: none;
        opacity: 0.5;
    }
    .ai-tool-spinner {
        animation: none;
    }
    .ai-orb {
        animation: none;
    }
    .ai-chat-mockup__header {
        animation: none;
    }
    .ai-input-cursor {
        animation: none;
        opacity: 1;
    }
}

/* ─────────────────────────── Accessibility ─────────────────────────── */

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 12px;
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.7);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─────────────────────────── Hero eyebrow ─────────────────────────── */

.hero-eyebrow__badge {
    white-space: nowrap;
}

/* ─────────────────────────── Demo form ─────────────────────────── */

.demo-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.demo-form__notice {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.65);
}

.demo-form__notice a {
    color: rgba(226, 232, 240, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.demo-form__notice a:hover {
    color: #fff;
}

.demo-form__status {
    margin: 6px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
}

.demo-form__status[data-kind="success"] {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.demo-form__status[data-kind="error"] {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* ─────────────────────────── Product panel demo badge ─────────────────────────── */

.product-panel {
    position: relative;
}

.product-panel__demo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

/* ─────────────────────────── Mobile menu fixes ─────────────────────────── */

@media (max-width: 768px) {
    .brand-copy strong {
        color: var(--text-strong, #0f172a);
        font-weight: 700;
    }

    .brand-copy small {
        display: none; /* secondary tagline takes too much space on mobile */
    }

    .site-nav {
        /* Override any oval/rounded shape with a clean drawer panel */
        border-radius: 0 !important;
    }

    .site-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding: 16px;
    }

    .site-nav.is-open .site-nav__cta {
        margin-top: 8px;
        display: inline-flex;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Show nav CTA only inside mobile drawer; hide on desktop (header already has one) */
.site-nav__cta {
    display: none !important;
}

@media (max-width: 768px) {
    .site-nav.is-open .site-nav__cta {
        display: inline-flex !important;
    }
}

/* Mobile: when drawer open, header should be a clean panel, not an oval */
@media (max-width: 820px) {
    .site-header {
        border-radius: 18px;
    }
    .site-header:has(.site-nav.is-open) {
        border-radius: 18px;
    }
}

/* Honour the HTML `hidden` attribute even when CSS sets display */
[hidden] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   v2 REDESIGN — premium charcoal navy + champagne gold
   ═══════════════════════════════════════════════════════════════
   Goal: more editorial, more confident, less stock-SaaS.
   Strategy: override tokens + serif headings + new sections
   (pricing, FAQ) + lighter section rhythm.
*/
:root {
    /* warm neutral page surface (replaces cool blue-gray) */
    --bg: #f6f4ee;
    --bg-deep: #efebe1;
    --paper: #ffffff;
    --paper-ink: #15233f;

    /* ink — deep charcoal navy, warmer than slate */
    --text: #14223d;
    --text-soft: rgba(20, 34, 61, 0.72);
    --text-dim: rgba(20, 34, 61, 0.5);

    /* primary — keep blue but pull deeper */
    --accent: #1d3a8a;
    --accent-strong: #2454c5;
    --accent-soft: rgba(29, 58, 138, 0.08);

    /* champagne gold — single luxury accent */
    --gold: #b8893d;
    --gold-strong: #9a6f28;
    --gold-soft: rgba(184, 137, 61, 0.12);

    /* surfaces */
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.7);
    --surface-line: rgba(20, 34, 61, 0.08);
    --line-soft: rgba(20, 34, 61, 0.05);

    --shadow-soft: 0 24px 48px rgba(20, 34, 61, 0.08);
    --shadow-frame: 0 36px 100px rgba(20, 34, 61, 0.12);

    --font-display:
        "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
        "Baskerville", Georgia, serif;
}

/* warmer page background */
body {
    background:
        radial-gradient(circle at 18% 12%, rgba(184, 137, 61, 0.06), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(29, 58, 138, 0.05), transparent 32%),
        linear-gradient(180deg, #f6f4ee 0%, #f3efe5 50%, #efebe1 100%);
}

/* serif H1/H2 — premium editorial feel */
h1,
.hero-copy h1,
.section-heading h2,
.featured-story__body h3,
.story-detail__header h2 {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
    font-weight: 500;
    line-height: 1.04;
}

/* fix the gradient-text H2 — keep the gradient but along charcoal→gold */
.section-heading h2 {
    background: linear-gradient(135deg, #14223d 0%, #2454c5 55%, #b8893d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* eyebrow gets a small gold rule */
.eyebrow {
    color: var(--gold-strong) !important;
    letter-spacing: 0.18em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.78rem !important;
}

/* primary buttons inherit deeper navy */
.button--primary,
.button--hero,
.insights-load-more {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(29, 58, 138, 0.25);
}
.button--primary:hover,
.button--hero:hover,
.insights-load-more:hover {
    background: var(--accent-strong);
    box-shadow: 0 18px 36px rgba(29, 58, 138, 0.32);
}

/* ── Trust strip (factual, not fake metrics) ──────────────── */
.trust-strip {
    margin: 0 auto;
    padding: 28px 24px;
    max-width: 1180px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    border-top: 1px solid var(--surface-line);
    border-bottom: 1px solid var(--surface-line);
}
.trust-strip__label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-soft);
    font-style: italic;
    line-height: 1.4;
    max-width: 240px;
}
.trust-strip__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    font-size: 0.86rem;
    color: var(--text);
    font-weight: 500;
}
.trust-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
@media (max-width: 720px) {
    .trust-strip {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── Pricing snippet ──────────────────────────────────────── */
.pricing {
    padding: 80px 24px;
}
.pricing__inner {
    max-width: 1180px;
    margin: 0 auto;
}
.pricing__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.pricing-card {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 24px;
    background: var(--paper);
    border: 1px solid var(--surface-line);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pricing-card--featured {
    border-color: var(--gold);
    box-shadow: 0 32px 80px rgba(184, 137, 61, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(184, 137, 61, 0.06), transparent 50%),
        var(--paper);
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pricing-card__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0;
    color: var(--text);
}
.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--text);
}
.pricing-card__price strong {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.pricing-card__price span {
    color: var(--text-dim);
    font-size: 0.92rem;
}
.pricing-card__copy {
    color: var(--text-soft);
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.pricing-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.pricing-card__list li {
    position: relative;
    padding-left: 24px;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.5;
}
.pricing-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-strong);
    font-weight: 700;
}
.pricing-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}
.pricing-card__cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.pricing-card--featured .pricing-card__cta {
    background: var(--gold);
}
.pricing-card--featured .pricing-card__cta:hover {
    background: var(--gold-strong);
}
.pricing__footnote {
    margin-top: 22px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
    padding: 80px 24px;
}
.faq__inner {
    max-width: 880px;
    margin: 0 auto;
}
.faq__head {
    text-align: center;
    margin-bottom: 36px;
}
.faq__list {
    display: grid;
    gap: 12px;
}
.faq-item {
    border: 1px solid var(--surface-line);
    border-radius: 18px;
    background: var(--paper);
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.faq-item[open] {
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(184, 137, 61, 0.1);
}
.faq-item__q {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    color: var(--text);
    font-size: 1.02rem;
}
.faq-item__q::-webkit-details-marker {
    display: none;
}
.faq-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 200ms ease, background 200ms ease, color 200ms ease;
    flex-shrink: 0;
}
.faq-item[open] .faq-item__icon {
    transform: rotate(45deg);
    background: var(--gold-soft);
    color: var(--gold-strong);
}
.faq-item__a {
    padding: 0 24px 22px;
    color: var(--text-soft);
    line-height: 1.7;
}
.faq-item__a p {
    margin: 0 0 10px;
}
.faq-item__a p:last-child {
    margin-bottom: 0;
}

/* ── CMS section polish: more breathing room, simpler header ──── */
.insights {
    padding-top: 96px;
    padding-bottom: 96px;
}
.insights-shell {
    background: var(--paper);
    border-color: var(--surface-line);
    box-shadow: var(--shadow-soft);
}
.insights-toolbar .eyebrow {
    margin-bottom: 6px;
}

/* featured card: dark inset for hierarchy */
.featured-story__button {
    background: var(--paper);
    border-color: var(--surface-line);
}
.featured-story__body h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

/* story pills: less SaaS-y */
.story-pill--news {
    color: var(--gold-strong);
    background: var(--gold-soft);
}
.story-pill--blog {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Hero copy: serif H1, slightly tighter lead */
.hero-copy h1 {
    letter-spacing: -0.025em;
    font-weight: 500;
}
.hero-accent {
    color: var(--gold);
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

/* ═══════════════════════════════════════════════════════════════
   v3 — nav dropdowns, hero warm unification, pricing yearly toggle
*/

/* ── Warm-up the hero so it reads as same family as the page ── */
.hero {
    background: linear-gradient(
        165deg,
        #14223d 0%,
        #1a2942 35%,
        #1f2f4a 70%,
        #14223d 100%
    );
}
.hero__orb--1 {
    background: radial-gradient(
        circle,
        rgba(184, 137, 61, 0.22),
        transparent 70%
    );
}
.hero__orb--2 {
    background: radial-gradient(
        circle,
        rgba(36, 84, 197, 0.22),
        transparent 70%
    );
}
.hero__orb--3 {
    background: radial-gradient(
        circle,
        rgba(184, 137, 61, 0.16),
        transparent 70%
    );
}
/* Soft gradient bridge from dark hero into cream page below */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(246, 244, 238, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Nav dropdowns ─────────────────────────────────────────── */
.site-nav {
    gap: 22px;
}
.nav-group {
    position: relative;
}
.nav-group__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-family: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 180ms ease;
}
.nav-group__trigger::after {
    content: "▾";
    font-size: 0.65rem;
    color: var(--text-dim);
    transition: transform 180ms ease;
}
.nav-group:hover .nav-group__trigger,
.nav-group:focus-within .nav-group__trigger,
.nav-group__trigger[aria-expanded="true"] {
    color: var(--text);
}
.nav-group:hover .nav-group__trigger::after,
.nav-group:focus-within .nav-group__trigger::after,
.nav-group__trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--gold-strong);
}
.nav-group__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 280px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--surface-line);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(20, 34, 61, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 0s linear 180ms;
    display: grid;
    gap: 4px;
    z-index: 50;
}
.nav-group:hover .nav-group__panel,
.nav-group:focus-within .nav-group__panel,
.nav-group__panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}
/* hover bridge so menu doesn't close in the gap */
.nav-group__panel::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.nav-link {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: background 160ms ease;
}
.nav-link:hover,
.nav-link:focus-visible {
    background: var(--accent-soft);
}
.nav-link__mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-link:hover .nav-link__mark {
    background: var(--gold-soft);
    color: var(--gold-strong);
}
.nav-link > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-link__title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.2;
}
.nav-link__desc {
    display: block;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 940px) {
    /* Mobile: collapse dropdowns into the existing hamburger flyout */
    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav-group {
        position: static;
    }
    .nav-group__trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
    }
    .nav-group__panel {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border-color: var(--line-soft);
        background: rgba(255, 255, 255, 0.6);
        margin-top: 4px;
        margin-bottom: 8px;
        transition: none;
    }
    .nav-group__panel::before {
        display: none;
    }
}

/* ── Pricing yearly toggle ─────────────────────────────────── */
.pricing__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: rgba(20, 34, 61, 0.06);
    border: 1px solid var(--surface-line);
}
.pricing__toggle button {
    appearance: none;
    background: none;
    border: 0;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: background 160ms ease, color 160ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pricing__toggle button.is-active {
    background: var(--paper);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(20, 34, 61, 0.08);
}
.pricing__toggle .save-pill {
    background: var(--gold-soft);
    color: var(--gold-strong);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.pricing__head {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pricing-card__price[data-period="yearly"] .pricing-card__price-period {
    color: var(--gold-strong);
}
.pricing-card__price-strike {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-top: 2px;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════════════════
   v4 — fix header/hero clash, hub responsive 2x2, CTA tone
*/

/* ── Header over the dark hero: glass-dark + light text ─────── */
.site-header:not(.is-scrolled) {
    background: rgba(20, 34, 61, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    color: rgba(241, 234, 220, 0.92);
}
.site-header:not(.is-scrolled) .brand-copy strong {
    color: #f1eadc;
}
.site-header:not(.is-scrolled) .brand-copy small {
    color: rgba(241, 234, 220, 0.55);
}
.site-header:not(.is-scrolled) .brand-mark {
    border-color: rgba(184, 137, 61, 0.45);
    background: linear-gradient(180deg, rgba(184, 137, 61, 0.25), rgba(184, 137, 61, 0.06));
    box-shadow: 0 0 0 4px rgba(184, 137, 61, 0.12);
}
.site-header:not(.is-scrolled) .brand-mark__dot {
    background: linear-gradient(135deg, #d8a44a, #b8893d);
    box-shadow: 0 0 14px rgba(184, 137, 61, 0.55);
}
.site-header:not(.is-scrolled) .site-nav,
.site-header:not(.is-scrolled) .site-nav a,
.site-header:not(.is-scrolled) .nav-group__trigger {
    color: rgba(241, 234, 220, 0.82);
}
.site-header:not(.is-scrolled) .site-nav a:hover,
.site-header:not(.is-scrolled) .nav-group__trigger:hover,
.site-header:not(.is-scrolled) .nav-group:hover .nav-group__trigger {
    color: #f1eadc;
}
.site-header:not(.is-scrolled) .nav-group__trigger::after {
    color: rgba(241, 234, 220, 0.55);
}
.site-header:not(.is-scrolled) .nav-group:hover .nav-group__trigger::after {
    color: var(--gold);
}
.site-header:not(.is-scrolled) .button--primary,
.site-header:not(.is-scrolled) .header-cta,
.site-header:not(.is-scrolled) .button--ghost {
    background: var(--gold);
    border-color: var(--gold);
    color: #14223d;
    box-shadow: 0 8px 22px rgba(184, 137, 61, 0.32);
}
.site-header:not(.is-scrolled) .button--primary:hover,
.site-header:not(.is-scrolled) .header-cta:hover,
.site-header:not(.is-scrolled) .button--ghost:hover {
    background: var(--gold-strong);
    border-color: var(--gold-strong);
    color: #14223d;
}

/* Smoother scroll-state transition */
.site-header {
    transition:
        background 280ms ease,
        border-color 280ms ease,
        color 280ms ease,
        box-shadow 280ms ease;
}

/* ── Hub: 2x2 grid in mid range, single column on small ─────── */
@media (max-width: 1120px) and (min-width: 721px) {
    .hub {
        height: auto;
        max-width: 720px;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        align-items: stretch;
        padding-top: 12px;
    }
    /* hide decorative center on grid layout — node cards explain themselves */
    .hub__center,
    .hub__orbit {
        display: none !important;
    }
    .hub__spoke {
        position: static !important;
        transform: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    .hub__line {
        display: none !important;
    }
    .hub__node {
        max-width: none !important;
        width: 100%;
    }
}

/* Below 721, keep the existing 1-column stack which already exists at 1120px */

/* ── CTA panel: re-tone to warm charcoal navy + gold ────────── */
.cta-panel {
    border-color: rgba(184, 137, 61, 0.25);
    background:
        radial-gradient(
            circle at 80% 18%,
            rgba(184, 137, 61, 0.18),
            transparent 36%
        ),
        radial-gradient(
            circle at 14% 82%,
            rgba(36, 84, 197, 0.18),
            transparent 38%
        ),
        linear-gradient(155deg, #14223d 0%, #1c2c4a 50%, #14223d 100%);
    color: #f1eadc;
    box-shadow:
        0 28px 72px rgba(20, 34, 61, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cta-panel .eyebrow {
    color: var(--gold) !important;
}
.cta-copy h2 {
    background: linear-gradient(135deg, #f1eadc 0%, #d8a44a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-copy > p:last-of-type {
    color: rgba(241, 234, 220, 0.78);
}
.cta-points li {
    color: rgba(241, 234, 220, 0.92);
}
.cta-points li::before {
    color: var(--gold);
}
/* Demo form on dark bg: keep inputs readable */
.demo-form input,
.demo-form select,
.demo-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f1eadc;
}
.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: rgba(241, 234, 220, 0.5);
}
.demo-form button[type="submit"],
.cta-actions .button--primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #14223d;
    box-shadow: 0 12px 32px rgba(184, 137, 61, 0.32);
}
.demo-form button[type="submit"]:hover,
.cta-actions .button--primary:hover {
    background: var(--gold-strong);
    color: #14223d;
}

/* ═══════════════════════════════════════════════════════════════
   v5 — header lift + cream gap, darker platform section bg
*/

/* Lift header up + add a clean cream gap between header pill and hero */
.site-header {
    top: 10px;
    margin-top: 10px;
    padding: 12px 18px;
}
.hero {
    margin-top: 24px;
    border-radius: 28px;
    overflow: hidden;
}
/* The hero already had `overflow: hidden`, but we now also round the corners
   to make the cream margin around it read as a proper inset stage. */

@media (max-width: 820px) {
    .hero {
        margin-top: 16px;
        border-radius: 22px;
    }

    .hero__content {
        padding: 104px 20px 16px;
    }
}

/* ── Platform section ("Kiến trúc nền tảng") — darker stage so the hub
   diagram (white nodes, glowing center) doesn't wash out on cream. */
.platform {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(36, 84, 197, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(184, 137, 61, 0.1),
            transparent 50%
        ),
        linear-gradient(180deg, #182843 0%, #1f3052 50%, #182843 100%);
    border-radius: 32px;
    padding-left: 32px;
    padding-right: 32px;
    margin: 32px auto;
    max-width: var(--container);
    width: var(--container);
    color: #f1eadc;
}
/* On the dark platform stage, the heading gradient text needs adjustment */
.platform .section-heading h2 {
    background: linear-gradient(135deg, #f1eadc 0%, #d8a44a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.platform .section-heading .eyebrow {
    color: var(--gold) !important;
}
/* Lighten the hub center ring/glow against the dark stage */
.platform .hub__center-glow {
    background: radial-gradient(
        circle,
        rgba(184, 137, 61, 0.32),
        transparent 70%
    );
}
.platform .hub__center-ring {
    background: conic-gradient(
        from 0deg,
        rgba(216, 164, 74, 0.5),
        transparent,
        rgba(241, 234, 220, 0.35),
        transparent,
        rgba(216, 164, 74, 0.45),
        transparent
    );
    border-color: rgba(216, 164, 74, 0.3);
}
.platform .hub__center-core {
    background: linear-gradient(135deg, #b8893d, #d8a44a);
    box-shadow: 0 12px 40px rgba(184, 137, 61, 0.45);
}
/* Spoke connector lines — make visible on dark */
.platform .hub__line {
    background: linear-gradient(
        180deg,
        rgba(216, 164, 74, 0.55),
        rgba(216, 164, 74, 0.15)
    );
}
.platform .hub__spoke--2 .hub__line,
.platform .hub__spoke--4 .hub__line {
    background: linear-gradient(
        90deg,
        rgba(216, 164, 74, 0.15),
        rgba(216, 164, 74, 0.55)
    );
}
/* Node cards — keep white but with stronger shadow + subtle warm glow */
.platform .hub__node {
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(216, 164, 74, 0.15);
}
.platform .hub__node:hover {
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(216, 164, 74, 0.35);
}
.platform .hub__node strong {
    color: var(--text);
}
.platform .hub__node span {
    color: var(--text-soft);
}

/* Hide the section-line directly after the dark platform stage so it
   doesn't visually orphan against the cream page. (We can't target the
   line *before* without :has, but the after-line is the bigger eye-sore.)
   IMPORTANT: do NOT use ".section-line + .platform" — that selects the
   .platform element itself and would wipe its background. */
.platform + .section-line {
    background: transparent;
}

/* ─── Header auth links (Đăng nhập / Đăng ký → app.eduso.pro) ─────────── */

/* Desktop: text-only "Đăng nhập" sits in the header next to .header-cta */
.header-auth {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.header-auth:hover {
    background: rgba(15, 23, 42, 0.06);
}

/* When header is on the dark hero (not scrolled), match the cream nav text */
.site-header:not(.is-scrolled) .header-auth {
    color: rgba(241, 234, 220, 0.85);
}
.site-header:not(.is-scrolled) .header-auth:hover {
    color: #f1eadc;
    background: rgba(241, 234, 220, 0.1);
}

/* "Đăng ký" reuses .header-cta + .button--ghost styles already defined.
   Make it visually distinct from "Đặt lịch demo" by removing the gold
   fill on hero and using a transparent outline instead. */
.site-header:not(.is-scrolled) .header-cta--signup {
    background: transparent;
    border-color: rgba(241, 234, 220, 0.5);
    color: rgba(241, 234, 220, 0.92);
    box-shadow: none;
}
.site-header:not(.is-scrolled) .header-cta--signup:hover {
    background: rgba(241, 234, 220, 0.1);
    border-color: #f1eadc;
    color: #f1eadc;
}
.site-header.is-scrolled .header-cta--signup {
    background: transparent;
}

/* Hide on mobile — drawer surfaces .site-nav__auth instead */
@media (max-width: 768px) {
    .header-auth,
    .header-cta--signup {
        display: none;
    }
}

/* Mobile drawer: auth links inside the open nav */
.site-nav__auth {
    display: none !important;
}
@media (max-width: 768px) {
    .site-nav.is-open .site-nav__auth {
        display: inline-flex !important;
        justify-content: center;
        padding: 12px 20px;
        border-radius: 999px;
        font-weight: 600;
        text-decoration: none;
        transition:
            background 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease;
    }
    .site-nav.is-open .site-nav__auth--login {
        color: var(--text);
        background: rgba(15, 23, 42, 0.04);
    }
    .site-nav.is-open .site-nav__auth--login:hover {
        background: rgba(15, 23, 42, 0.08);
    }
    .site-nav.is-open .site-nav__auth--signup {
        color: var(--accent, #1e40af);
        border: 1px solid currentColor;
    }
    .site-nav.is-open .site-nav__auth--signup:hover {
        background: var(--accent, #1e40af);
        color: #fff;
    }
}
