/* ==========================================================================
   Market Twin — Design Refinement Layer
   --------------------------------------------------------------------------
   Loaded AFTER each page's inline <style>, so equal-specificity rules here win.
   Strategy: keep the existing navy brand and markup, raise the execution —
   refined tokens, a single accent, one shadow/radius system, consistent
   vertical rhythm, and component-level polish.

   Every page in the site declares the same custom-property names
   (--navy, --bg-cream, --text-secondary, ...), so redefining them at :root
   propagates the refined palette everywhere without touching page CSS.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    /* Brand navy — slightly deeper and cooler than before for more authority */
    --navy: #0B2350;
    --navy-deep: #05122E;
    --navy-light: #1B3F8C;
    --navy-soft: #E9EFFB;

    /* Navy scale (new) */
    --navy-950: #05122E;
    --navy-900: #0B2350;
    --navy-800: #123069;
    --navy-700: #1B3F8C;
    --navy-100: #E9EFFB;
    --navy-050: #F4F7FE;

    /* Accent — one signal colour, used for emphasis, links, data, rails */
    --accent: #2E63E8;
    --accent-strong: #1D4ED8;
    --accent-soft: #E8EFFE;
    --accent-on-dark: #9DBEFF;

    /* Surfaces */
    --bg-white: #FFFFFF;
    --bg-cream: #F8FAFD;
    --bg-soft: #F1F5FB;

    /* Ink — a touch more contrast for body copy */
    --text-primary: #0C1729;
    --text-secondary: #4A5B72;
    --text-muted: #8595AC;

    /* Lines */
    --border: #E3E9F2;
    --border-soft: #EFF3F9;
    --border-strong: #D3DCEA;

    /* Semantics — desaturated so they sit inside the brand, not beside it */
    --success: #0F9A6A;
    --success-soft: #ECFAF4;
    --success-ink: #08624A;
    --warn: #B7791F;
    --warn-soft: #FDF6E7;
    --warn-ink: #7A4E10;
    --danger: #D0483F;

    /* Elevation — navy-tinted, layered */
    --sh-xs: 0 1px 2px rgba(11, 35, 80, 0.05);
    --sh-sm: 0 1px 2px rgba(11, 35, 80, 0.04), 0 2px 8px -2px rgba(11, 35, 80, 0.06);
    --sh-md: 0 2px 4px -2px rgba(11, 35, 80, 0.06), 0 12px 28px -10px rgba(11, 35, 80, 0.14);
    --sh-lg: 0 4px 8px -4px rgba(11, 35, 80, 0.08), 0 28px 56px -20px rgba(11, 35, 80, 0.22);
    --sh-xl: 0 8px 16px -8px rgba(11, 35, 80, 0.10), 0 48px 90px -32px rgba(11, 35, 80, 0.32);

    /* Radii */
    --r-xs: 8px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-pill: 999px;

    /* Rhythm */
    --section-y: clamp(76px, 8.5vw, 128px);
    --header-gap: clamp(44px, 5vw, 68px);
    --shell: 1200px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. BASE / TYPOGRAPHY
   ========================================================================== */
body {
    letter-spacing: -0.004em;
    color: var(--text-primary);
    background: var(--bg-white);
}

h1, h2, h3, h4 {
    letter-spacing: -0.032em;
    text-wrap: balance;
}

/* Tabular figures wherever numbers carry meaning — keeps stats aligned */
.hero-stat-value,
.problem-stat,
.advantage-stat-num,
.chart-row-value,
.chart-meta-num,
.metric-value,
.pricing-plan-price-amount,
.segment-value,
.big-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
}

::selection { background: rgba(46, 99, 232, 0.16); color: var(--navy); }

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ==========================================================================
   3. NAV
   ========================================================================== */
nav {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: var(--border-soft);
    box-shadow: 0 1px 24px -12px rgba(11, 35, 80, 0.22);
}
.nav-inner {
    max-width: var(--shell);
    padding: 14px 24px;
}
.logo {
    font-weight: 700;
    letter-spacing: -0.03em;
}
.nav-links { gap: 30px; }
.nav-links a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switch {
    gap: 2px;
    padding: 3px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-pill);
}
.lang-switch a {
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.lang-switch a.active {
    background: var(--bg-white);
    color: var(--navy);
    box-shadow: var(--sh-xs);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    border-width: 1px;
    letter-spacing: -0.01em;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
                box-shadow 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: var(--sh-sm);
}
.btn-primary:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(11, 35, 80, 0.45);
}
.btn-secondary {
    background: var(--bg-white);
    border-color: var(--border-strong);
    box-shadow: var(--sh-xs);
}
.btn-secondary:hover {
    border-color: var(--navy);
    box-shadow: var(--sh-sm);
    transform: translateY(-1px);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}
.btn-large { padding: 15px 30px; font-size: 0.98rem; }

/* On dark ground the primary action must be the brightest thing on screen —
   navy-on-navy was the single biggest contrast failure of the old hero. */
body.landing .hero .btn-primary,
.cta .btn-primary {
    background: #FFFFFF;
    color: var(--navy-900);
    border-color: #FFFFFF;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
body.landing .hero .btn-primary:hover,
.cta .btn-primary:hover {
    background: #F2F6FF;
    border-color: #F2F6FF;
    color: var(--navy-900);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
body.landing .hero {
    padding: clamp(132px, 13vw, 168px) 24px 0;
    background:
        body.landing radial-gradient(120% 90% at 82% 8%, body.landing rgba(46, body.landing 99, body.landing 232, body.landing 0.30) 0%, body.landing transparent 58%),
        body.landing radial-gradient(90% 80% at 8% 92%, body.landing rgba(27, body.landing 63, body.landing 140, body.landing 0.34) 0%, body.landing transparent 60%),
        linear-gradient(168deg, #0B2350 0%, #071A3D 52%, #05122E 100%);
}
body.landing .hero::before {
    background-image:
        body.landing radial-gradient(circle at 78% 18%, body.landing rgba(157, body.landing 190, body.landing 255, body.landing 0.10) 0%, body.landing transparent 42%),
        radial-gradient(circle at 12% 78%, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
}
body.landing .hero::after {
    background-image:
        body.landing linear-gradient(rgba(255, body.landing 255, body.landing 255, body.landing 0.035) 1px, body.landing transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 78%);
}

/* Asymmetric two-column shell: argument on the left, proof on the right. */
body.landing .hero-shell {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
body.landing .hero-content {
    max-width: 620px;
    margin: 0;
    text-align: left;
}
body.landing .hero-badge {
    padding: 6px 14px 6px 12px;
    background: rgba(157, 190, 255, 0.10);
    border: 1px solid rgba(157, 190, 255, 0.26);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: rgba(233, 240, 255, 0.92);
    margin-bottom: 24px;
}
body.landing .hero-badge-dot {
    width: 6px; height: 6px;
    background: #4ADE80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16), 0 0 12px rgba(74, 222, 128, 0.9);
}
body.landing .hero h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}
body.landing .hero h1 .highlight {
    background: linear-gradient(96deg, #FFFFFF 0%, #C7DBFF 46%, #9DBEFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.landing .hero-sub {
    font-size: 1.06rem;
    line-height: 1.72;
    color: rgba(226, 234, 250, 0.78);
    max-width: 540px;
    margin: 0 0 32px;
}
body.landing .hero-cta {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

/* Micro-proof line directly under the CTA — the evidence a buyer needs
   before they will click, sourced from figures already on this page. */
body.landing .hero-microproof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 0.82rem;
    color: rgba(214, 226, 248, 0.66);
}
body.landing .hero-microproof span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
body.landing .hero-microproof span::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent-on-dark);
    opacity: 0.85;
}
.hero-microproof b { color: rgba(255, 255, 255, 0.92); font-weight: 600; }

/* Product visual — a browser-framed screenshot, so the first screen proves
   the product exists instead of describing it. */
body.landing .hero-visual {
    position: relative;
    perspective: 1600px;
}
body.landing .hero-frame {
    margin: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #0E1B36;
    border: 1px solid rgba(157, 190, 255, 0.20);
    box-shadow:
        body.landing 0 2px 4px rgba(0, body.landing 0, body.landing 0, body.landing 0.30),
        body.landing 0 40px 80px -28px rgba(0, body.landing 0, body.landing 0, body.landing 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: rotateY(-7deg) rotateX(2.5deg) translateZ(0);
    transform-origin: left center;
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
body.landing .hero-visual:hover .hero-frame {
    transform: rotateY(-3deg) rotateX(1deg);
    box-shadow:
        body.landing 0 2px 4px rgba(0, body.landing 0, body.landing 0, body.landing 0.30),
        0 50px 96px -30px rgba(0, 0, 0, 0.78);
}
body.landing .hero-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.landing .hero-frame-bar i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}
body.landing .hero-frame-bar em {
    margin-left: 10px;
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: rgba(214, 226, 248, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.landing .hero-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stat strip — full width under the fold line, on a hairline rule */
body.landing .hero-stats {
    position: relative;
    z-index: 1;
    max-width: var(--shell);
    margin: clamp(56px, 6vw, 84px) auto 0;
    padding: clamp(28px, 3vw, 38px) 0 clamp(44px, 5vw, 68px);
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(157, 190, 255, 0.16);
}
body.landing .hero-stat-value {
    font-size: clamp(1.7rem, 2.4vw, 2.15rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}
body.landing .hero-stat-label {
    font-size: 0.8rem;
    color: rgba(206, 220, 245, 0.6);
    letter-spacing: 0.01em;
}

@media (max-width: 980px) {
    body.landing .hero { padding-top: clamp(112px, 16vw, 140px); }
    body.landing .hero-shell { grid-template-columns: 1fr; gap: 40px; }
    body.landing .hero-content { max-width: none; text-align: left; }
    body.landing .hero-sub { max-width: none; }
    body.landing .hero-frame { transform: none; }
    body.landing .hero-visual:hover .hero-frame { transform: none; }
}
@media (max-width: 620px) {
    body.landing .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    body.landing .hero-cta { flex-direction: column; align-items: stretch; }
    body.landing .hero-cta .btn { justify-content: center; }
}

/* ==========================================================================
   6. TRUST BAR + CREDENTIALS
   ========================================================================== */
.trust-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
    padding: clamp(40px, 4.5vw, 60px) 24px;
}
.trust-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 26px;
}
.trust-logos {
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 5vw, 64px);
}
.trust-logos img {
    /* resonar ships as white type on a solid plate, so a contrast/blend
       knockout would erase the wordmark. Uniform grayscale at a readable
       opacity is the treatment that works for every mark in the row. */
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.trust-logos img:hover {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
}
.trust-disclaimer {
    max-width: 640px;
    margin: 18px auto 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.6;
    color: var(--text-muted) !important;
}

/* Credential strip — verifiable, third-party facts about the company.
   Distinct from the framework logos above, which are inspiration only. */
.credential-strip {
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-soft);
    padding: 22px 24px;
}
.credential-strip-inner {
    max-width: var(--shell);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 14px;
}
.credential {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-xs);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
a.credential:hover {
    border-color: var(--border-strong);
    box-shadow: var(--sh-sm);
    transform: translateY(-1px);
}
.credential img { height: 22px; width: auto; }
.credential-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 7px;
    background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
    color: #FFFFFF;
    flex-shrink: 0;
}
.credential-mark svg { width: 13px; height: 13px; }
.credential b {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.credential small {
    color: var(--text-muted);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   7. SECTION RHYTHM
   ========================================================================== */
section { padding: var(--section-y) 24px; }
.container { max-width: var(--shell); }

.section-header {
    max-width: 760px;
    margin: 0 auto var(--header-gap);
}

/* Eyebrow: quiet, letterspaced, one accent rule. The old dashed pill read
   as a template component rather than a brand element. */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 18px; height: 1.5px;
    background: currentColor;
    opacity: 0.55;
    border-radius: 2px;
    margin: 0;
}
.section-eyebrow::after { content: none; display: none; }

.section-title {
    font-size: clamp(1.8rem, 3.1vw, 2.55rem);
    line-height: 1.26;
    letter-spacing: -0.036em;
    margin-bottom: 18px;
}
.section-sub {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Dark sections keep the eyebrow legible */
.cta .section-eyebrow { color: var(--accent-on-dark); }

/* ==========================================================================
   8. CARD SYSTEM
   ========================================================================== */
.problem-card,
.feature-card,
.segment-card,
.tech-card,
.pricing-plan,
.pricing-tier-mini,
.market-chart {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.problem-card:hover,
.feature-card:hover,
.segment-card:hover,
.tech-card:hover,
.pricing-plan:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--sh-md);
}

/* Problem cards — numbered, with an accent rail that reads as a series */
.problem-card {
    position: relative;
    padding: 34px 30px 30px;
    overflow: hidden;
}
.problem-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(46, 99, 232, 0));
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}
.problem-card:hover::before { opacity: 1; }
.problem-num {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.problem-stat {
    font-size: clamp(2.4rem, 3.6vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 14px;
}
.problem-stat span { color: var(--text-muted); font-weight: 500; }

/* Feature cards */
.feature-card { padding: 30px 28px; }
.feature-icon {
    background: linear-gradient(140deg, var(--navy-050), var(--accent-soft));
    border: 1px solid rgba(46, 99, 232, 0.14);
    border-radius: var(--r-md);
    color: var(--accent-strong);
}

/* Numbered list in the solution section */
.solution-features li { border-bottom-color: var(--border-soft); }
.feature-num {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: 1px solid rgba(46, 99, 232, 0.16);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Dark stat panel in the solution section */
.solution-visual {
    border-radius: var(--r-xl);
    background:
        radial-gradient(110% 80% at 88% 6%, rgba(46, 99, 232, 0.34) 0%, transparent 58%),
        linear-gradient(165deg, #0B2350 0%, #06173A 100%);
    box-shadow: var(--sh-lg);
    border: 1px solid rgba(157, 190, 255, 0.14);
}
.solution-visual .label {
    letter-spacing: 0.16em;
    color: rgba(206, 220, 245, 0.55);
    font-size: 0.7rem;
}
.solution-visual .big-num {
    background: linear-gradient(100deg, #FFFFFF, #B9D0FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Segment / tech cards */
.segment-card { padding: 28px 26px; }
.segment-value { color: var(--accent-strong); }
.tech-card { padding: 30px 28px; }
.tech-card-num {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* ==========================================================================
   9. COMPARISON TABLE
   ========================================================================== */
.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    background: var(--bg-white);
}
.compare-table { border-collapse: separate; border-spacing: 0; }
.compare-table th,
.compare-table td {
    padding: 17px 22px;
    border-bottom: 1px solid var(--border-soft);
}
.compare-table thead th {
    background: var(--bg-cream);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
/* Own column: a continuous tinted panel, so the eye lands there first */
.compare-table thead th:nth-child(2) {
    background: var(--navy);
    color: #FFFFFF;
    border-bottom-color: var(--navy);
}
.compare-table tbody td:nth-child(2) {
    background: var(--navy-050);
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: inset 1px 0 0 rgba(46, 99, 232, 0.10), inset -1px 0 0 rgba(46, 99, 232, 0.10);
}
.compare-table tbody tr:last-child td:nth-child(2) {
    box-shadow: inset 1px 0 0 rgba(46, 99, 232, 0.10), inset -1px 0 0 rgba(46, 99, 232, 0.10),
                inset 0 -1px 0 rgba(46, 99, 232, 0.10);
}
.compare-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}
.compare-table tbody td:nth-child(3),
.compare-table tbody td:nth-child(4) { color: var(--text-secondary); }
.compare-table tbody tr:hover td { background-color: rgba(46, 99, 232, 0.022); }
.compare-table tbody tr:hover td:nth-child(2) { background-color: #E4ECFD; }
.check { color: var(--accent); font-weight: 700; }

/* Advantage stat row */
.advantage-stat {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    padding: 30px 24px;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.advantage-stat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.advantage-stat-num {
    background: linear-gradient(120deg, var(--navy), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   10. CHARTS
   ========================================================================== */
.market-chart { padding: 34px 32px; box-shadow: var(--sh-sm); }
.chart-title {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 26px;
}
.chart-row { margin-bottom: 22px; }
.chart-row-label { font-size: 0.86rem; color: var(--text-secondary); }
.chart-row-value {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--navy);
}
.chart-bar {
    height: 9px;
    background: var(--bg-soft);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.chart-bar-fill {
    height: 100%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--navy-800) 0%, var(--accent) 100%);
    box-shadow: 0 1px 6px -1px rgba(46, 99, 232, 0.5);
    transition: width 1.1s var(--ease);
}
.chart-meta {
    border-top: 1px solid var(--border-soft);
    padding-top: 22px;
    margin-top: 26px;
}
.chart-meta-num { color: var(--navy); }
.chart-meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* ==========================================================================
   11. PRODUCT SHOWCASE
   ========================================================================== */
.showcase-tabs { gap: 6px; margin-bottom: 36px; }
.showcase-tab {
    padding: 9px 20px;
    border-radius: var(--r-pill);
    font-size: 0.86rem;
    font-weight: 500;
    background: var(--bg-white);
    border-color: var(--border);
    box-shadow: var(--sh-xs);
}
.showcase-tab:hover { border-color: var(--border-strong); color: var(--navy); }
.showcase-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -10px rgba(11, 35, 80, 0.55);
}
.showcase-frame {
    background: linear-gradient(180deg, #EEF3FB, #E4EBF7);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: clamp(16px, 2.4vw, 30px);
    box-shadow: var(--sh-lg);
}
.showcase-image {
    border-radius: var(--r-md);
    border: 1px solid rgba(11, 35, 80, 0.10);
    box-shadow: 0 18px 40px -22px rgba(11, 35, 80, 0.5);
}

/* ==========================================================================
   12. PRICING
   ========================================================================== */
.pricing-tier-strip { gap: 10px; margin: 20px 0 36px; }
.pricing-tier-mini {
    background: var(--bg-cream);
    border-radius: var(--r-md);
    padding: 16px 16px 18px;
}
.pricing-tier-mini-name { color: var(--navy); letter-spacing: -0.02em; }
.pricing-tier-mini-en {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.66rem;
    color: var(--text-muted);
}

/* Notice banners — re-tinted into the brand instead of default alert colours */
.pricing-trial-banner {
    background: var(--success-soft);
    border: 1px solid rgba(15, 154, 106, 0.28);
    border-left: 3px solid var(--success);
    border-radius: var(--r-md);
    color: var(--success-ink);
    padding: 15px 20px;
    box-shadow: var(--sh-xs);
}
.pricing-trial-cta {
    background: var(--success);
    border-radius: var(--r-xs);
    font-weight: 600;
    box-shadow: 0 6px 16px -8px rgba(15, 154, 106, 0.9);
}
.pricing-trial-cta:hover { background: var(--success-ink); }
.pricing-beta-banner {
    background: var(--warn-soft);
    border: 1px solid rgba(183, 121, 31, 0.26);
    border-left: 3px solid var(--warn);
    border-radius: var(--r-md);
    color: var(--warn-ink);
    padding: 15px 20px;
    box-shadow: var(--sh-xs);
}
.pricing-beta-dot { background: var(--warn); }

.pricing-plan { padding: 28px 24px; border-radius: var(--r-lg); }
.pricing-plan.featured {
    border-color: var(--navy);
    border-width: 1px;
    box-shadow: var(--sh-md), 0 0 0 1px var(--navy);
}
.pricing-plan.featured:hover { box-shadow: var(--sh-lg), 0 0 0 1px var(--navy); }
.pricing-plan.featured::before {
    background: var(--navy);
    letter-spacing: 0.08em;
    padding: 5px 14px;
    box-shadow: 0 6px 16px -8px rgba(11, 35, 80, 0.9);
}
.pricing-plan-name {
    color: var(--accent-strong);
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}
.pricing-plan-price-amount { font-size: 1.7rem; }
.pricing-plan-cta {
    border-radius: var(--r-xs);
    border-color: var(--border-strong);
    padding: 12px;
}
.pricing-plan-cta:hover { background: var(--navy-050); border-color: var(--navy); }
.pricing-plan-features li::before { color: var(--accent); }

/* ==========================================================================
   13. TESTIMONIALS / METRICS
   ========================================================================== */
.metrics-row {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.metric-value {
    background: linear-gradient(120deg, var(--navy), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.metric-label {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.testimonial {
    position: relative;
    padding: 32px 30px;
    border-radius: var(--r-lg);
    background: var(--bg-cream);
    border: 1px solid var(--border-soft);
}
.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 10px; right: 22px;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--accent);
    opacity: 0.14;
}
.testimonial-text { color: var(--text-primary); }

/* ==========================================================================
   14. CTA + FOOTER
   ========================================================================== */
.cta {
    background:
        radial-gradient(100% 90% at 50% 0%, rgba(46, 99, 232, 0.30) 0%, transparent 62%),
        linear-gradient(170deg, #0B2350 0%, #05122E 100%);
    padding: clamp(84px, 9vw, 128px) 24px;
    border-top: 1px solid rgba(157, 190, 255, 0.10);
}
.cta h2 {
    font-size: clamp(1.9rem, 3.3vw, 2.7rem);
    letter-spacing: -0.038em;
    color: #FFFFFF;
}
.cta p { color: rgba(226, 234, 250, 0.74); }
.cta-info { border-top: 1px solid rgba(157, 190, 255, 0.14); }
.cta-info-item .label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(206, 220, 245, 0.5);
}
.cta-info-item .value { color: #FFFFFF; font-weight: 600; }

footer { background: var(--navy-950); }
.footer-biz,
.footer-legal,
.footer-legal a,
.footer-bottom > span {
    font-size: 0.78rem;
    line-height: 1.75;
    color: rgba(206, 220, 245, 0.44);
}
.footer-legal a { transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: rgba(255, 255, 255, 0.85); }
.footer-biz { letter-spacing: -0.005em; }

/* ==========================================================================
   15. MOTION
   The hidden state is scoped to html.mt-motion, which the enhancement script
   sets itself — so with JS disabled nothing is ever hidden.
   ========================================================================== */
html.mt-motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
html.mt-motion .reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.mt-motion .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    body.landing .hero-frame { transform: none !important; }
}

/* ==========================================================================
   16. SECTION SEAMS
   Adjacent sections that share a background were stacking two full padding
   blocks (~256px of nothing). Collapse the seam and mark it with a hairline
   so the page reads as chapters rather than drifting apart.
   ========================================================================== */
.solution,
.advantage,
.tech {
    padding-bottom: clamp(52px, 5.5vw, 80px);
}
.solution + .product-showcase,
.advantage + .pricing,
.tech + .testimonials {
    padding-top: clamp(52px, 5.5vw, 80px);
    border-top: 1px solid var(--border-soft);
}
.product-showcase { padding-bottom: var(--section-y); }

/* ==========================================================================
   17. NAV OVER A DARK HERO
   Pages whose dark hero sits flush under the fixed nav opt in with
   body.nav-on-dark: the bar rides on the hero until the first scroll instead
   of cutting a pale band across the top. Pages that start their hero below
   the nav simply do not carry the class and keep the solid bar.
   ========================================================================== */
body.nav-on-dark nav:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}
body.nav-on-dark nav:not(.scrolled) .logo,
body.nav-on-dark nav:not(.scrolled) .logo-mark.navy {
    color: #FFFFFF;
}
body.nav-on-dark nav:not(.scrolled) .nav-links a {
    color: rgba(226, 234, 250, 0.78);
}
body.nav-on-dark nav:not(.scrolled) .nav-links a:hover { color: #FFFFFF; }
body.nav-on-dark nav:not(.scrolled) .lang-switch {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}
body.nav-on-dark nav:not(.scrolled) .lang-switch a { color: rgba(226, 234, 250, 0.62); }
body.nav-on-dark nav:not(.scrolled) .lang-switch a.active {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    box-shadow: none;
}
body.nav-on-dark nav:not(.scrolled) .btn-primary {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.26);
    color: #FFFFFF;
    box-shadow: none;
}
body.nav-on-dark nav:not(.scrolled) .btn-primary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   18. CASE STUDY HERO
   ========================================================================== */
.case-hero {
    background:
        radial-gradient(110% 90% at 78% 4%, rgba(46, 99, 232, 0.28) 0%, transparent 60%),
        linear-gradient(168deg, #0B2350 0%, #05122E 100%);
}

/* ==========================================================================
   19. MARKET SECTION
   ========================================================================== */
.market-text h3 {
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    letter-spacing: -0.03em;
}
.market-text p { color: var(--text-secondary); line-height: 1.8; }
.segment-card h4 { letter-spacing: -0.025em; }

/* Keep hyphenated compounds from splitting across lines in headlines */
.nowrap { white-space: nowrap; }

/* The English credential labels are longer than the Korean ones; tighten the
   chips so the strip still resolves to a single row at the shell width. */
@media (max-width: 1280px) {
    .credential { font-size: 0.78rem; padding: 8px 14px 8px 10px; gap: 8px; }
    .credential-strip-inner { gap: 10px; }
}
