/* ============================================
   ASN BetaNuc SX-514 — Awwwards-Quality Styles
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --color-bg: #f8fafc;
    --color-bg-dark: #0a0d1a;
    --color-bg-darker: #060810;
    --color-surface: #ffffff;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #3b82f6;
    --color-accent-glow: rgba(37, 99, 235, 0.2);
    --color-accent-subtle: rgba(37, 99, 235, 0.06);
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.15);
    --color-red: #f87171;

    --nav-glass-bg: rgba(248, 250, 252, 0.72);
    --nav-glass-bg-mobile: rgba(248, 250, 252, 0.95);

    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-light: #e2e8f0;
    --color-text-light-secondary: rgba(255, 255, 255, 0.6);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-bg-dark: rgba(255, 255, 255, 0.04);
    --glass-bg-dark-hover: rgba(255, 255, 255, 0.07);
    --glass-border-dark: rgba(255, 255, 255, 0.08);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --transition: 0.5s var(--ease);
    --transition-fast: 0.3s var(--ease);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Base size tuned for the 45–58 age target: 17.5px on desktop for easier reading */
    font-size: 17.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain texture removed — was blocking content in some renderers */

body.loading {
    overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ---------- Container ---------- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- Typography ---------- */
.section__label {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 18px;
}
.section__label--light {
    color: var(--color-accent-light);
}
.section__label--gradient {
    color: rgba(255, 255, 255, 0.7);
}

.section__title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 20px;
}
.section__title--light {
    color: #fff;
}

.section__desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

.section__header {
    margin-bottom: clamp(56px, 6vw, 88px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--color-accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 8px 32px var(--color-accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn--glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
}
.btn--glass:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.btn--nav {
    background: var(--color-accent);
    color: #fff;
    padding: 10px 22px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px var(--color-accent-glow);
}
.btn--nav:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn--large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- Glass Cards ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transition: all var(--transition);
}
.glass-card:hover {
    background: var(--glass-bg-hover);
    box-shadow:
        0 16px 56px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transform: translateY(-6px);
}

.glass-card--dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}
.glass-card--dark:hover {
    background: var(--glass-bg-dark-hover);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* ---------- Loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__content {
    text-align: center;
}

.loader__logo {
    margin-bottom: 40px;
}
.loader__logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    margin: 0 auto 6px;
}
.loader__logo-sub {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-top: 4px;
}

.loader__bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 16px;
}
.loader__progress {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.15s linear;
}

.loader__text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* ---------- Navigation ----------
   Two visual states:
   1. On hero (not scrolled): translucent DARK glass bar over the video canvas.
      Subtle enough not to fight the hero copy, distinct enough to read as
      a navigation surface, not floating text.
   2. Scrolled: flipped to LIGHT glass (matches light sections below), with
      stronger blur, thin inner top highlight, and a subtle bottom hairline
      so the bar "detaches" visibly from the page underneath.
-------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition:
        background 0.35s var(--ease),
        backdrop-filter 0.35s var(--ease),
        border-color 0.35s var(--ease),
        box-shadow 0.35s var(--ease),
        transform 0.35s var(--ease),
        opacity 0.35s var(--ease),
        padding 0.35s var(--ease);
    transform: translateY(-100%);
    opacity: 0;
    /* Always-on glass — applied to both states. Colours differ per state. */
    background: rgba(10, 13, 26, 0.42);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.20);
}
.nav.visible {
    transform: translateY(0);
    opacity: 1;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 10px 0;
}
/* On the hero (not scrolled), invert the logo for dark/light video backgrounds */
.nav.visible:not(.scrolled) .nav__logo-img {
    filter: brightness(0) invert(1);
}
.nav.visible:not(.scrolled) .nav__logo-sub {
    color: rgba(255, 255, 255, 0.7);
}
.nav.visible:not(.scrolled) .nav__logo-divider {
    background: rgba(255, 255, 255, 0.3);
}

.nav__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav__logo-img {
    height: 28px;
    width: auto;
}
.nav__logo-divider {
    width: 1px;
    height: 20px;
    background: var(--color-text-muted);
    opacity: 0.3;
}
.nav__logo-sub {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav__link:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
}
/* On dark-glass (hero) state, flip link color to near-white for legibility */
.nav.visible:not(.scrolled) .nav__link {
    color: rgba(255, 255, 255, 0.82);
}
.nav.visible:not(.scrolled) .nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition-fast);
}
/* Dark-state hamburger */
.nav.visible:not(.scrolled) .nav__hamburger span {
    background: #fff;
}

/* ---------- Hero / Video Scroll ---------- */
.hero {
    position: relative;
    background: var(--color-bg-dark);
}

.hero__scroll-spacer {
    height: 360vh;
    position: relative;
}

.hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: #0a0d1a;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
}

/* ─── Hero decorative layers ─── */
/* Floating molecular "particles" — small glowing dots that drift around the
   viewport. Purely decorative, no interactivity. 8 particles at different
   positions/sizes/speeds so the effect never looks mechanical. */
.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.hero__particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.85) 0%, rgba(59, 130, 246, 0.4) 40%, transparent 75%);
    filter: blur(0.5px);
    opacity: 0;
    animation: hero-particle-fade 1.2s ease-out 1.2s forwards,
               hero-particle-drift var(--dur, 28s) ease-in-out var(--delay, 0s) infinite;
}
.hero__particle--1 { top: 14%; left:  8%; width: 10px; height: 10px; --dur: 32s; --delay: 0s; }
.hero__particle--2 { top: 28%; left: 78%; width: 14px; height: 14px; --dur: 40s; --delay: -5s; background: radial-gradient(circle, rgba(196, 181, 253, 0.85) 0%, rgba(124, 58, 237, 0.4) 40%, transparent 75%); }
.hero__particle--3 { top: 62%; left: 12%; width:  8px; height:  8px; --dur: 26s; --delay: -2s; }
.hero__particle--4 { top: 78%; left: 70%; width: 12px; height: 12px; --dur: 36s; --delay: -8s; }
.hero__particle--5 { top: 20%; left: 55%; width:  6px; height:  6px; --dur: 30s; --delay: -12s; }
.hero__particle--6 { top: 50%; left: 88%; width:  9px; height:  9px; --dur: 34s; --delay: -6s; background: radial-gradient(circle, rgba(196, 181, 253, 0.85) 0%, rgba(124, 58, 237, 0.4) 40%, transparent 75%); }
.hero__particle--7 { top: 85%; left: 30%; width:  7px; height:  7px; --dur: 28s; --delay: -10s; }
.hero__particle--8 { top:  8%; left: 40%; width:  5px; height:  5px; --dur: 22s; --delay: -3s; }

@keyframes hero-particle-fade {
    to { opacity: 0.65; }
}
@keyframes hero-particle-drift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.65; }
    25%  { transform: translate(30px, -40px) scale(1.1); opacity: 0.5; }
    50%  { transform: translate(-20px, -80px) scale(0.9); opacity: 0.75; }
    75%  { transform: translate(-50px, -40px) scale(1.05); opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.65; }
}

/* ─── Corner UI frame marks — sci-fi / scientific-instrument aesthetic ─── */
.hero__frame {
    position: absolute;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: hero-frame-fade 1s ease-out 1.8s forwards;
}
.hero__frame::before,
.hero__frame::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0));
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.3);
}
.hero__frame::before { width: 100%; height: 1.5px; }
.hero__frame::after  { width: 1.5px; height: 100%; background: linear-gradient(180deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0)); }
.hero__frame--tl { top: 80px;    left: 32px;  }
.hero__frame--tl::before { top: 0;    left: 0; }
.hero__frame--tl::after  { top: 0;    left: 0; }
.hero__frame--tr { top: 80px;    right: 32px; }
.hero__frame--tr::before { top: 0;    right: 0; background: linear-gradient(-90deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0)); }
.hero__frame--tr::after  { top: 0;    right: 0; }
.hero__frame--bl { bottom: 80px; left: 32px;  }
.hero__frame--bl::before { bottom: 0; left: 0; }
.hero__frame--bl::after  { bottom: 0; left: 0; background: linear-gradient(0deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0)); }
.hero__frame--br { bottom: 80px; right: 32px; }
.hero__frame--br::before { bottom: 0; right: 0; background: linear-gradient(-90deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0)); }
.hero__frame--br::after  { bottom: 0; right: 0; background: linear-gradient(0deg, rgba(147, 197, 253, 0.6), rgba(147, 197, 253, 0)); }

@keyframes hero-frame-fade {
    to { opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero__particle {
        animation: hero-particle-fade 0.4s ease-out forwards;
    }
    .hero__frame {
        animation: hero-frame-fade 0.4s ease-out forwards;
    }
}

/* Hide decorations on narrow screens — too cluttered on phones, canvas is already busy */
@media (max-width: 640px) {
    .hero__frame { display: none; }
    .hero__particle--5,
    .hero__particle--6,
    .hero__particle--7,
    .hero__particle--8 { display: none; }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
    z-index: 5; /* Above decorative particles + corner frames */
}
.hero__overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hero__overlay--intro {
    align-items: flex-start;
    padding-top: 15vh;
}

.hero__badge {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
}

.hero__overlay--main {
    align-items: center;
    padding: 0 clamp(20px, 4vw, 48px);
}

.hero__content {
    max-width: 800px;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.hero__title-line {
    display: block;
}
.hero__title-line--accent {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__actions .btn--glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.hero__actions .btn--glass:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: pulseDown 2s ease-in-out infinite;
    transition: opacity 0.4s ease;
}
.hero__scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
    animation: none;
}

@keyframes pulseDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(96px, 10vw, 168px) 0;
    position: relative;
}
.section--light {
    background: var(--color-bg);
    position: relative;
}

/* ========== Richly layered light sections (Product / Applications / Compliance) ==========
   Base layers on .section--light#id:
     - Dot pattern at 28px (reads as graph paper, fits industrial theme)
     - Hex molecular lattice overlay at 5% opacity (polymer-science motif)
     - Vertical base gradient (near-white → pale blue-white)
   ::before holds the drifting aurora-blob mesh (different blob positions per section).
   ::after holds a section-specific decorative SVG — each illustrates the section's
   content (product = molecule diagram, applications = process nodes, compliance = shield).
   ======================================================================================= */

.section--light#applications,
.section--light#product,
.section--light#compliance {
    background:
        /* Dot grid — graph paper feel */
        radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1.5px) 0 0 / 28px 28px,
        /* Hex molecular lattice */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='86' height='96' viewBox='0 0 86 96'><polygon points='43,2 83,24 83,70 43,94 3,70 3,24' fill='none' stroke='%232563eb' stroke-opacity='0.06' stroke-width='1'/></svg>") 0 0 / 86px 96px,
        /* Base */
        linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
    overflow: hidden;
}

/* ---- Animated aurora blob meshes (per-section positions) ---- */
.section--light#product::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 42% 32% at 12% 8%, rgba(37, 99, 235, 0.14), transparent 65%),
        radial-gradient(ellipse 38% 28% at 85% 15%, rgba(124, 58, 237, 0.12), transparent 65%),
        radial-gradient(ellipse 45% 35% at 30% 75%, rgba(59, 130, 246, 0.12), transparent 65%),
        radial-gradient(ellipse 36% 30% at 95% 90%, rgba(124, 58, 237, 0.10), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: aurora-drift-a 24s ease-in-out infinite alternate;
    filter: blur(1px);
}
.section--light#applications::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 38% 30% at 90% 8%, rgba(37, 99, 235, 0.14), transparent 65%),
        radial-gradient(ellipse 45% 35% at 8% 25%, rgba(124, 58, 237, 0.10), transparent 65%),
        radial-gradient(ellipse 40% 32% at 85% 70%, rgba(59, 130, 246, 0.12), transparent 65%),
        radial-gradient(ellipse 32% 28% at 15% 95%, rgba(124, 58, 237, 0.12), transparent 65%),
        radial-gradient(ellipse 28% 22% at 50% 45%, rgba(37, 99, 235, 0.06), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: aurora-drift-b 28s ease-in-out infinite alternate;
    filter: blur(1px);
}
.section--light#compliance::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 40% 30% at 50% 5%, rgba(37, 99, 235, 0.12), transparent 65%),
        radial-gradient(ellipse 36% 28% at 8% 40%, rgba(124, 58, 237, 0.10), transparent 65%),
        radial-gradient(ellipse 42% 32% at 92% 60%, rgba(59, 130, 246, 0.14), transparent 65%),
        radial-gradient(ellipse 38% 30% at 50% 95%, rgba(124, 58, 237, 0.10), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: aurora-drift-a 26s ease-in-out infinite alternate;
    filter: blur(1px);
}

/* ---- Section-specific decorative SVGs (positioned anchors) ---- */
/* Product: big atomic molecule */
.section--light#product::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -60px;
    width: 480px;
    height: 480px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%232563eb' stroke-opacity='0.20' stroke-width='1.5'><ellipse cx='200' cy='200' rx='170' ry='60' transform='rotate(0 200 200)'/><ellipse cx='200' cy='200' rx='170' ry='60' transform='rotate(60 200 200)'/><ellipse cx='200' cy='200' rx='170' ry='60' transform='rotate(120 200 200)'/></g><circle cx='200' cy='200' r='12' fill='%232563eb' fill-opacity='0.25'/><circle cx='30' cy='200' r='8' fill='%237c3aed' fill-opacity='0.28'/><circle cx='370' cy='200' r='8' fill='%237c3aed' fill-opacity='0.28'/><circle cx='115' cy='52' r='8' fill='%232563eb' fill-opacity='0.28'/><circle cx='285' cy='348' r='8' fill='%232563eb' fill-opacity='0.28'/><circle cx='115' cy='348' r='8' fill='%237c3aed' fill-opacity='0.28'/><circle cx='285' cy='52' r='8' fill='%237c3aed' fill-opacity='0.28'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
/* Applications: process network diagram */
.section--light#applications::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 520px;
    height: 520px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g stroke='%232563eb' stroke-opacity='0.18' stroke-width='1.5' fill='none'><path d='M60 100 L180 80 L300 140 L360 240 L280 320 L140 340 L40 260 L80 160 Z'/><line x1='180' y1='80' x2='140' y2='340'/><line x1='300' y1='140' x2='40' y2='260'/><line x1='60' y1='100' x2='280' y2='320'/></g><g fill='%232563eb'><circle cx='60' cy='100' r='7' fill-opacity='0.28'/><circle cx='180' cy='80' r='7' fill-opacity='0.3'/><circle cx='300' cy='140' r='7' fill-opacity='0.28'/><circle cx='360' cy='240' r='7' fill-opacity='0.28'/><circle cx='280' cy='320' r='7' fill-opacity='0.3'/><circle cx='140' cy='340' r='7' fill-opacity='0.28'/><circle cx='40' cy='260' r='7' fill-opacity='0.28'/><circle cx='80' cy='160' r='7' fill-opacity='0.3'/></g></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
/* Compliance: certified shield */
.section--light#compliance::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 420px;
    height: 420px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g stroke='%232563eb' stroke-opacity='0.22' stroke-width='2' fill='none'><path d='M200 40 L340 90 L340 220 Q340 310 200 360 Q60 310 60 220 L60 90 Z'/><path d='M200 80 L310 120 L310 220 Q310 290 200 330 Q90 290 90 220 L90 120 Z' stroke-opacity='0.14'/><path d='M140 200 L180 240 L260 160' stroke='%237c3aed' stroke-opacity='0.28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></g></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.section--light#applications > .container,
.section--light#product > .container,
.section--light#compliance > .container {
    position: relative;
    z-index: 1;
}

/* Aurora drift keyframes — very gentle translate so pattern "breathes" */
@keyframes aurora-drift-a {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, -20px) scale(1.05); }
}
@keyframes aurora-drift-b {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, 15px) scale(1.04); }
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .section--soft::before,
    .section--light#product::before,
    .section--light#applications::before,
    .section--light#compliance::before {
        animation: none;
    }
}
.section--dark {
    background:
        /* Subtle hex molecular lattice for polymer-science theme consistency */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='86' height='96' viewBox='0 0 86 96'><polygon points='43,2 83,24 83,70 43,94 3,70 3,24' fill='none' stroke='%2393c5fd' stroke-opacity='0.04' stroke-width='1'/></svg>") 0 0 / 86px 96px,
        /* Base gradient */
        linear-gradient(180deg, var(--color-bg-dark) 0%, #0a0d1a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section--dark::before {
    /* Soft blue glow accent in one corner */
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.section--dark > .container {
    position: relative;
    z-index: 1;
}
.section--dark .section__desc {
    color: var(--color-text-light-secondary);
}
.section--accent {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}
.section--gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #7c3aed 50%, #a855f7 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.section--gradient::before,
.section--gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.35;
}
.section--gradient::before {
    top: -120px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
}
.section--gradient::after {
    bottom: -140px;
    right: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #c084fc 0%, transparent 70%);
}
.section--gradient > .container {
    position: relative;
    z-index: 1;
}
/* subtle grid pattern overlay on gradient section */
.section--gradient .tech-hub__layout {
    position: relative;
}
.section--gradient .tech-hub__layout::before {
    content: '';
    position: absolute;
    inset: -40px -20px;
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.section--gradient .tech-hub__layout > * {
    position: relative;
    z-index: 1;
}

/* ---------- Stats ---------- */
.stats {
    background: var(--color-bg-dark);
    color: #fff;
    padding: clamp(96px, 10vw, 168px) 0;
    position: relative;
    margin-top: -1px;
}

/* Header block (eyebrow + title + lead) — the lead-in to the whole section */
.stats__header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.stats__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 26px;
    padding: 9px 20px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: var(--radius-full);
}
.stats__title {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 28px;
}
.stats__lead {
    font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
    margin: 0 auto 14px;
    max-width: 680px;
}
.stats__lead strong { color: #fff; font-weight: 700; }
/* The first lead (tagline) gets a slightly bolder treatment so it reads as
   the primary statement, with the secondary lead acting as supporting copy. */
.stats__lead:first-of-type {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin-bottom: 16px;
}
.stats__lead--secondary {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    color: rgba(255, 255, 255, 0.7);
}
.stats__lead em {
    font-style: normal;
    color: var(--color-accent-light);
    font-weight: 600;
}
/* Inline CTA below the lead block — distinct from the bottom CTA banner */
.stats__lead-cta {
    display: inline-flex;
    margin-top: 24px;
}

/* CTA banner at the bottom of the Stats section */
.stats__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 40px);
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--radius-lg);
    margin-top: clamp(48px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%),
        #2563eb;
    color: #fff;
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.28);
}
.stats__cta-text h3 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.stats__cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    max-width: 620px;
    margin-bottom: 4px;
}
.stats__cta-text p:last-child { margin-bottom: 0; }
.stats__cta-text strong { color: #fff; font-weight: 700; }
/* Tagline line ("The New Wave — …") between heading and final body line */
.stats__cta-tag {
    font-size: 1.0625rem !important;
    color: #fff !important;
    margin-bottom: 4px;
}
.stats__cta-tag strong {
    background: linear-gradient(90deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* The new "Order your free samples..." CTA is a long button label.
   Allow it to wrap on narrow screens instead of overflowing the banner. */
.stats__cta-actions .btn--large {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 340px;
}
.stats__cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.stats__cta-actions .btn--primary {
    background: #fff;
    color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.stats__cta-actions .btn--primary:hover {
    background: #f1f5f9;
    color: var(--color-accent-hover);
}
.stats__cta-actions .btn--glass {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.stats__cta-actions .btn--glass:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Tiered stats grids ───
   Hero row: 3 animated headline numbers (Impact, Elongation, HDT).
   Secondary row: 3 qualitative / context stats with lighter treatment.
   Tiering via size + border treatment encodes priority visually. */
.stats__grid {
    display: grid;
    gap: clamp(16px, 1.6vw, 24px);
}
.stats__grid--hero {
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(56px, 6vw, 84px);
}
.stats__grid--secondary {
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(16px, 1.6vw, 24px);
}

/* ─── Cards ─── */
.stats__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 36px);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}
/* Soft accent halo behind the hero cards */
.stats__card--hero::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -40%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    pointer-events: none;
    opacity: 0.8;
}
.stats__card--hero {
    border-color: rgba(59, 130, 246, 0.22);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.02));
}
.stats__card--sec {
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

/* ─── Values ─── */
.stats__value {
    display: block;
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: 6px;
}
/* Secondary cards use a smaller, calmer number treatment */
.stats__card--sec .stats__value {
    font-size: clamp(1.875rem, 2.6vw, 2.625rem);
    -webkit-text-fill-color: var(--color-accent-light);
    color: var(--color-accent-light);
    background: none;
}
/* Static values (ranges, "+++") — tighten spacing and allow wrap */
.stats__value--static {
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.stats__value-unit {
    font-size: 0.65em;
    font-weight: 700;
    opacity: 0.75;
    margin-left: 2px;
}

.stats__label {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
    margin-top: 2px;
}
.stats__card--sec .stats__label {
    font-size: 1rem;
    font-weight: 600;
}

.stats__detail {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    letter-spacing: 0.005em;
    line-height: 1.45;
}

/* ---------- Product Overview ---------- */
.product__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product__card {
    padding: clamp(32px, 3vw, 48px);
}

.product__icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 24px;
}
.product__icon svg {
    width: 100%;
    height: 100%;
}

.product__card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.product__card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------- Grade Profile ---------- */
.grade__layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.grade__tagline {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: var(--color-text-light-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.grade__compatibility {
    margin-bottom: 40px;
}
.grade__compatibility h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}

.grade__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.grade__tag {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-accent-light);
    border-radius: var(--radius-full);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.grade__note {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.grade__dos-donts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.grade__dos-donts h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.grade__do h4 { color: var(--color-green); }
.grade__dont h4 { color: var(--color-red); }

.grade__dos-donts ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.grade__dos-donts li {
    font-size: 0.9375rem;
    color: var(--color-text-light-secondary);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}
.grade__dos-donts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.grade__do li::before { background: var(--color-green); }
.grade__dont li::before { background: var(--color-red); }

/* Grade Card (sticky specs) */
.grade__card {
    padding: clamp(28px, 3vw, 40px);
    position: sticky;
    top: 100px;
}

.grade__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border-dark);
}
.grade__card-badge {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.grade__card-version {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
}

.grade__specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
}
.grade__spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.grade__spec-row:last-child { border-bottom: none; }
.grade__spec-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}
.grade__spec-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-align: right;
}
.grade__spec-value--accent {
    color: var(--color-accent-light);
}

.grade__card-cta {
    padding-top: 8px;
}
.grade__card-note {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}
.grade__card-note a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.35);
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}
.grade__card-note a:hover {
    color: #fff;
}

/* (Sales Punchline styles removed — section deleted during 2026-04-23 content consolidation.
   Those benefits are now covered by #stats + #product overviews.) */

/* ---------- Applications ---------- */
.apps__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.apps__card {
    padding: clamp(32px, 3vw, 48px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* Corner accent gradient wash — subtle, only visible on hover */
.apps__card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}
.apps__card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10), 0 6px 16px rgba(37, 99, 235, 0.10);
}
.apps__card:hover::after { opacity: 1; }

.apps__number {
    /* Bigger gradient-filled number — mirrors the hero-stats treatment
       from the Promise section so the whole site feels like one system */
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    position: absolute;
    top: 20px;
    right: 28px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.22) 0%, rgba(124, 58, 237, 0.14) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-accent-subtle);
    transition: background 0.35s var(--ease);
}
.apps__card:hover .apps__number {
    background: linear-gradient(180deg, var(--color-accent) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apps__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    padding-right: 60px;
}

.apps__desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.apps__benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.apps__benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}
.apps__benefit-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    border-radius: 50%;
}

.apps__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.apps__tags span {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-full);
    color: var(--color-accent);
    letter-spacing: 0.01em;
}
.apps__card:hover .apps__tags span {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
}

/* "Click to Learn More" on each app card */
.apps__learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    padding: 10px 18px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.apps__learn-more:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateX(4px);
}
.apps__learn-more svg {
    transition: transform var(--transition-fast);
}
.apps__learn-more:hover svg {
    transform: translateX(2px);
}

/* ---------- Compliance ---------- */
.compliance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.compliance__card {
    padding: clamp(32px, 3vw, 48px);
    text-align: center;
}

.compliance__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px 20px;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
}
.compliance__flag {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    padding: 3px 10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-xs);
}
.compliance__standard {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}

.compliance__card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.compliance__card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.compliance__tested {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Technical Hub ---------- */
.tech-hub__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}
.tech-hub__layout .section__title {
    margin-bottom: 20px;
}

.tech-hub__desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 28px;
}

.tech-hub__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}
.tech-hub__list li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}
.tech-hub__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.tech-hub__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    position: relative;
}

.tech-hub__molecule {
    position: relative;
    width: 280px;
    height: 280px;
}

.tech-hub__nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.tech-hub__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: orbit-spin linear infinite;
}
.tech-hub__orbit::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.tech-hub__orbit--1 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation-duration: 8s;
}
.tech-hub__orbit--2 {
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
    animation-duration: 12s;
    animation-direction: reverse;
    border-style: dashed;
}
.tech-hub__orbit--3 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    animation-duration: 18s;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Magical Synergy reveal ----------
   The "wow moment" between Compliance and Tech Hub. A bold formula display
   that primes curiosity, plus a glowing "Click to know the secret" CTA that
   opens the existing app-modal with the synergy template. */
.synergy {
    background:
        radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(124, 58, 237, 0.18), transparent 70%),
        radial-gradient(ellipse 900px 400px at 50% 100%, rgba(37, 99, 235, 0.14), transparent 70%),
        linear-gradient(180deg, #0a0d1a 0%, var(--color-bg-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.synergy::before {
    /* Soft starfield-like dots — feels "magical" without being kitsch */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(196, 181, 253, 0.6) 0, rgba(196, 181, 253, 0) 1.5px),
        radial-gradient(circle at 88% 18%, rgba(147, 197, 253, 0.6) 0, rgba(147, 197, 253, 0) 1.5px),
        radial-gradient(circle at 24% 78%, rgba(147, 197, 253, 0.6) 0, rgba(147, 197, 253, 0) 1.5px),
        radial-gradient(circle at 76% 82%, rgba(196, 181, 253, 0.6) 0, rgba(196, 181, 253, 0) 1.5px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 1px);
    pointer-events: none;
    z-index: 0;
}
.synergy > .container { position: relative; z-index: 1; }

.synergy__inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}
.synergy__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 28px;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.32);
    border-radius: var(--radius-full);
}
.synergy__title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 28px;
}
/* The formula bar — pills + plus signs centered on a single line */
.synergy__formula {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
    font-size: clamp(1rem, 2vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.synergy__pill {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.synergy__pill--accent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(124, 58, 237, 0.5));
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow:
        0 0 0 4px rgba(124, 58, 237, 0.18),
        0 8px 32px rgba(124, 58, 237, 0.32);
    animation: synergy-pulse 2.6s ease-in-out infinite;
}
@keyframes synergy-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18), 0 8px 32px rgba(124, 58, 237, 0.32); }
    50%      { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.28), 0 12px 40px rgba(124, 58, 237, 0.45); }
}
.synergy__plus {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}
.synergy__lead {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 36px;
}
.synergy__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 34px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(124, 58, 237, 0.18));
    border: 1px solid rgba(196, 181, 253, 0.4);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    overflow: hidden;
}
.synergy__cta-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(124, 58, 237, 0.3));
    filter: blur(14px);
    z-index: -1;
    opacity: 0.7;
    animation: synergy-glow 3.4s ease-in-out infinite;
}
@keyframes synergy-glow {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.9; }
}
.synergy__cta-arrows {
    color: #c4b5fd;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    opacity: 0.85;
}
.synergy__cta-label {
    color: #fff;
}
.synergy__cta:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 181, 253, 0.7);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
}

/* Synergy modal-specific styles inside the appmodal */
.appdetail--synergy .appdetail__hook {
    margin-top: 14px;
    padding: 18px 20px;
    background: rgba(124, 58, 237, 0.08);
    border-left: 3px solid #a78bfa;
    border-radius: 0 12px 12px 0;
    font-size: 1.0625rem;
    color: var(--color-text);
}
.synergy__benefits {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.synergy__benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.synergy__benefit-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.synergy__benefit > div { flex: 1; }
.synergy__benefit strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--color-text);
    margin-bottom: 6px;
}
.synergy__benefit p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
}
.synergy__bottom-line {
    margin: 24px 0;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.18);
}
.synergy__bottom-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}
.synergy__bottom-line p {
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}
.synergy__followup {
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 8px;
}

@media (max-width: 640px) {
    .synergy__formula { gap: 8px; }
    .synergy__pill { padding: 8px 14px; font-size: 0.875rem; }
    .synergy__cta {
        flex-direction: column;
        gap: 4px;
        padding: 14px 22px;
        font-size: 0.875rem;
    }
    .synergy__cta-arrows { display: none; }
}

/* ---------- Compounders / Masterbatch callout ----------
   A premium B2B pitch section sandwiched between Tech Hub and Sample.
   Visually distinct from the surrounding sections: dark backdrop with a
   gradient-bordered glass card centered in the viewport. The card uses
   accent gradient on the headline mark to make the "BetaNuc" word pop. */
.compounders {
    background:
        radial-gradient(ellipse 1100px 500px at 50% 0%, rgba(37, 99, 235, 0.16), transparent 70%),
        radial-gradient(ellipse 800px 400px at 50% 100%, rgba(124, 58, 237, 0.12), transparent 70%),
        linear-gradient(180deg, var(--color-bg-dark) 0%, #0a0d1a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Hex molecular lattice tied into the polymer-science theme. */
.compounders::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='86' height='96' viewBox='0 0 86 96'><polygon points='43,2 83,24 83,70 43,94 3,70 3,24' fill='none' stroke='%2393c5fd' stroke-opacity='0.06' stroke-width='1'/></svg>") 0 0 / 86px 96px;
    pointer-events: none;
    z-index: 0;
}
.compounders > .container { position: relative; z-index: 1; }

.compounders__card {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
/* Subtle accent ring on the top edge */
.compounders__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(59, 130, 246, 0.6) 50%, transparent 90%);
}
.compounders__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 20px;
    padding: 8px 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: var(--radius-full);
}
.compounders__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 18px;
}
.compounders__title-mark {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.compounders__lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    color: #fff;
    font-weight: 500;
    margin-bottom: 14px;
}
.compounders__sub {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 32px;
}
.compounders__cta {
    margin-bottom: 12px;
    /* Long label can wrap on mobile rather than overflow */
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}
.compounders__hint {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.52);
}
@media (max-width: 640px) {
    .compounders__card {
        padding: 32px 22px;
    }
    .compounders__cta {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Sample Form ---------- */
.sample__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.sample__desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-light-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.sample__direct {
    margin-bottom: 32px;
}
.sample__direct h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.sample__contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--color-text-light-secondary);
}
.sample__contact-row svg {
    color: var(--color-accent-light);
    flex-shrink: 0;
}
.sample__contact-row a {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.sample__contact-row a:hover {
    color: var(--color-accent-light);
}

.sample__hq h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.sample__hq p {
    font-size: 0.875rem;
    color: var(--color-text-light-secondary);
    line-height: 1.7;
}

.sample__form-wrapper {
    padding: clamp(32px, 4vw, 48px);
}

.sample__form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.sample__form-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.form__group {
    margin-bottom: 20px;
}
.form__group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light-secondary);
    margin-bottom: 10px;
}
.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}
.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--color-text-muted);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--color-accent);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form__group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form__group select option {
    background: var(--color-bg-dark);
    color: #fff;
}
.form__group textarea {
    resize: vertical;
    min-height: 80px;
}

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

.sample__form .btn {
    margin-top: 8px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-darker);
    padding: clamp(60px, 8vw, 100px) 0 40px;
    color: #fff;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(40px, 5vw, 60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__logo {
    margin-bottom: 16px;
}
.footer__logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer__col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.footer__col a {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-text-light-secondary);
    padding: 5px 0;
    transition: color var(--transition-fast);
    position: relative;
}
.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__bottom p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer__hq {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #7c3aed 100%);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ---------- Selection Style ---------- */
::selection {
    background: var(--color-accent);
    color: #fff;
}

/* ---------- Focus Styles ---------- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Button press effect ---------- */
.btn:active {
    transform: translateY(0) scale(0.98);
}

/* ---------- Smooth link underlines ---------- */
.footer__col a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-light);
    transition: width var(--transition-fast);
}
.footer__col a:hover::after {
    width: 100%;
}

/* ---------- Stats card glow on hover ---------- */
.stats__card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255,255,255,0.1);
}
.stats__card--sec:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---------- App card number hover ---------- */
.apps__card:hover .apps__number {
    color: var(--color-accent-glow);
    transition: color var(--transition);
}

/* ---------- Compliance card hover glow ---------- */
.compliance__card:hover .compliance__badge {
    box-shadow: 0 0 20px var(--color-accent-glow);
    transition: box-shadow var(--transition);
}

/* ---------- Compliance star + note ---------- */
.compliance__card {
    position: relative;
}
.compliance__star {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    line-height: 1;
    opacity: 0.85;
}
.compliance__note {
    margin: clamp(28px, 3vw, 40px) auto 0;
    max-width: 780px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 22px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.compliance__note > span:first-child {
    color: var(--color-accent);
    font-weight: 800;
    letter-spacing: 0.08em;
}
.compliance__note a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    text-underline-offset: 3px;
}
.compliance__note a:hover { color: var(--color-accent-hover); }

/* ---------- Nav external link (About Us) ---------- */
.nav__link--external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-weight: 600;
}
.nav__link--external:hover {
    color: var(--color-accent-hover);
    background: rgba(37, 99, 235, 0.06);
}
.nav.visible:not(.scrolled) .nav__link--external {
    color: #fff;
}
.nav.visible:not(.scrolled) .nav__link--external svg {
    opacity: 0.8;
}

/* ---------- Case Studies & White Papers ---------- */
/* ========== Elaborate light-section canvas (shared foundation) ==========
   Every light/soft section in the mid-site now stacks the same visual layers,
   but each section can re-position blobs and add its own decorative motif.

   Layers, bottom up:
     1. Base vertical gradient (off-white → cool blue-white)
     2. Polymer-industry hex molecular lattice (inline SVG, 5% opacity)
     3. Blueprint dot grid at 40px (data-style reference)
     4. Five drifting radial-gradient "aurora" blobs (animated via ::before)
     5. Section-specific decorative SVG (positioned via ::after)
   ======================================================================== */

.section--soft {
    background:
        /* Blueprint grid — subtle axes */
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        /* Hex molecular lattice — fits the polymer-science theme */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='86' height='96' viewBox='0 0 86 96'><polygon points='43,2 83,24 83,70 43,94 3,70 3,24' fill='none' stroke='%232563eb' stroke-opacity='0.07' stroke-width='1'/></svg>") 0 0 / 86px 96px,
        /* Base vertical gradient */
        linear-gradient(180deg, #f6f9fd 0%, #e9eef5 100%);
    position: relative;
    overflow: hidden;
}
.section--soft::before {
    /* Five-blob aurora mesh — drifts slowly for a subtle sense of life.
       Positioned via background-position so we can animate it. */
    content: '';
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 45% 30% at 10% 5%, rgba(37, 99, 235, 0.16), transparent 65%),
        radial-gradient(ellipse 38% 28% at 88% 22%, rgba(124, 58, 237, 0.14), transparent 65%),
        radial-gradient(ellipse 42% 32% at 20% 60%, rgba(59, 130, 246, 0.12), transparent 65%),
        radial-gradient(ellipse 36% 28% at 92% 85%, rgba(124, 58, 237, 0.14), transparent 65%),
        radial-gradient(ellipse 30% 25% at 50% 50%, rgba(37, 99, 235, 0.08), transparent 65%);
    pointer-events: none;
    animation: aurora-drift-a 24s ease-in-out infinite alternate;
    filter: blur(1px);
}
.section--soft::after {
    /* Large molecular-chain SVG anchor in the lower-right.
       Low-opacity, dominates when the section is empty, recedes when cards cover it. */
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 560px;
    height: 560px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g stroke='%232563eb' stroke-opacity='0.18' stroke-width='1.5' fill='none' stroke-linejoin='round'><polygon points='200,40 280,80 280,160 200,200 120,160 120,80'/><polygon points='280,160 360,200 360,280 280,320 200,280 200,200'/><polygon points='120,160 200,200 200,280 120,320 40,280 40,200'/><polygon points='200,280 280,320 280,360 200,380 120,360 120,320'/><circle cx='200' cy='40' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='280' cy='80' r='4' fill='%237c3aed' fill-opacity='0.22'/><circle cx='280' cy='160' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='200' cy='200' r='4' fill='%237c3aed' fill-opacity='0.22'/><circle cx='120' cy='160' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='120' cy='80' r='4' fill='%237c3aed' fill-opacity='0.22'/><circle cx='360' cy='200' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='360' cy='280' r='4' fill='%237c3aed' fill-opacity='0.22'/><circle cx='280' cy='320' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='40' cy='200' r='4' fill='%237c3aed' fill-opacity='0.22'/><circle cx='40' cy='280' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='120' cy='320' r='4' fill='%237c3aed' fill-opacity='0.22'/><circle cx='200' cy='280' r='4' fill='%232563eb' fill-opacity='0.22'/><circle cx='200' cy='380' r='4' fill='%237c3aed' fill-opacity='0.22'/></g></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
}
.section--soft > .container {
    position: relative;
    z-index: 1;
}

.section__header--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(24px, 4vw, 60px);
    flex-wrap: wrap;
}
.cases__header-cta { flex-shrink: 0; }

.cases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.cases__card {
    padding: clamp(28px, 3vw, 40px);
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    overflow: hidden;
}
/* Top accent stripe — color-coded by card type (scenario vs technical paper) */
.cases__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #7c3aed);
    opacity: 0.7;
    transition: opacity 0.35s var(--ease);
}
.cases__card:has(.cases__tag--case)::before {
    background: linear-gradient(90deg, var(--color-accent) 0%, #60a5fa 100%);
}
.cases__card:has(.cases__tag--paper)::before {
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
}
.cases__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10), 0 6px 16px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.20);
}
.cases__card:hover::before { opacity: 1; }
.cases__tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    align-self: flex-start;
}
.cases__tag--case {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-accent);
}
.cases__tag--paper {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}
.cases__card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.3;
}
.cases__card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}
.cases__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.cases__meta li {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.cases__meta strong {
    color: var(--color-text);
    font-weight: 600;
    margin-right: 4px;
}
.cases__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: auto;
    transition: gap var(--transition-fast);
}
.cases__link:hover {
    color: var(--color-accent-hover);
    gap: 10px;
}
.cases__footnote {
    margin-top: clamp(28px, 3vw, 40px);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}
.cases__footnote a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    text-underline-offset: 3px;
}

/* ---------- WhatsApp button ---------- */
.btn--whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
    background: #1ebe5a;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    color: #fff;
}
.btn--whatsapp svg { flex-shrink: 0; }

/* ---------- Tech Hub support block ---------- */
.tech-hub__support {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 28px 0 32px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.tech-hub__support-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
}
.tech-hub__support-row svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}
.tech-hub__support-row a {
    color: #fff;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.tech-hub__support-row a:hover { color: #f1f5f9; }

.tech-hub__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tech-hub__cta .btn--primary {
    background: #fff;
    color: var(--color-accent);
}
.tech-hub__cta .btn--primary:hover {
    background: #f1f5f9;
    color: var(--color-accent-hover);
}

/* ---------- Sample: WhatsApp row + regional contacts ---------- */
.sample__contact-row--whatsapp svg {
    color: #25d366 !important;
}
.sample__regions {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sample__regions h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.sample__regions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sample__regions-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.sample__region-flag {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent-light);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.sample__regions-list > li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.5;
}
.sample__regions-list strong {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}
.sample__regions-list span {
    color: var(--color-text-light-secondary);
    font-size: 0.875rem;
}
.sample__regions-list a {
    color: var(--color-accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 2px;
    transition: color var(--transition-fast);
}
.sample__regions-list a:hover { color: #fff; }
/* Region phone is rendered the same as the email link but in a calmer color
   so the email stays the primary contact channel. */
.sample__region-phone {
    color: rgba(255, 255, 255, 0.72) !important;
    font-variant-numeric: tabular-nums;
}
.sample__region-phone:hover { color: #fff !important; }

/* ---------- Phone field (dial code + number) ---------- */
.form__phone {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 10px;
}
.form__phone select {
    min-width: 0;
}

/* ---------- Application Detail Modal ---------- */
.appmodal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 48px);
}
.appmodal.is-open { display: flex; }
.appmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 26, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: appmodalFade 0.25s var(--ease-out);
}
.appmodal__panel {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(10, 13, 26, 0.4);
    animation: appmodalRise 0.3s var(--ease-out);
}
.appmodal__close {
    position: sticky;
    top: 14px;
    float: right;
    z-index: 2;
    margin: 14px 14px 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(10, 13, 26, 0.1);
    transition: all var(--transition-fast);
}
.appmodal__close:hover {
    background: var(--color-bg);
    transform: rotate(90deg);
}
.appmodal__body {
    padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 60px);
}
body.modal-open { overflow: hidden; }

@keyframes appmodalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes appmodalRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.appdetail__header {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}
.appdetail__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.appdetail__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 12px;
}
.appdetail__lead {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--color-text-secondary);
    line-height: 1.65;
}
.appdetail__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.appdetail__metrics > div {
    padding: 16px 12px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--radius-md);
    text-align: center;
}
.appdetail__metrics strong {
    display: block;
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.appdetail__metrics span {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}
.appdetail section {
    margin-bottom: 24px;
}
.appdetail section h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--color-text);
}
.appdetail section p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.appdetail section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.appdetail section li {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}
.appdetail section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}
.appdetail__tags li {
    padding-left: 0;
}
.appdetail__tags li::before { display: none; }
.appdetail__tags {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px !important;
}
.appdetail__tags li {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text);
}
.appdetail__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .stats__grid--hero,
    .stats__grid--secondary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .stats__grid--hero,
    .stats__grid--secondary {
        grid-template-columns: repeat(3, 1fr);
    }
    .grade__layout {
        grid-template-columns: 1fr;
    }
    .grade__card {
        position: static;
    }
    .tech-hub__layout {
        grid-template-columns: 1fr;
    }
    .tech-hub__visual {
        display: none;
    }
    .sample__layout {
        grid-template-columns: 1fr;
    }
    .footer__top {
        grid-template-columns: 1fr;
    }
    .punchline__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .punchline__cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .cases__grid {
        grid-template-columns: 1fr;
    }
    .appdetail__metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .appdetail__tags {
        grid-template-columns: 1fr !important;
    }
    .nav__link {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    /* NAV: Show immediately on mobile, compact layout */
    .nav {
        transform: translateY(0);
        opacity: 1;
        padding: 12px 0;
    }
    /* MOBILE NAV: Always dark elements on light seamless-extend background.
       Override the desktop .nav.visible:not(.scrolled) white rules. */
    .nav .nav__logo-img,
    .nav.visible .nav__logo-img,
    .nav.visible:not(.scrolled) .nav__logo-img {
        height: 24px;
        filter: none !important;
    }
    .nav .nav__logo-sub,
    .nav.visible:not(.scrolled) .nav__logo-sub {
        color: var(--color-text-secondary) !important;
        font-size: 0.8125rem;
    }
    .nav .nav__logo-divider,
    .nav.visible:not(.scrolled) .nav__logo-divider {
        background: var(--color-text-muted) !important;
        opacity: 0.3;
    }
    .nav .btn--nav {
        display: none;
    }
    .nav__hamburger span,
    .nav.visible:not(.scrolled) .nav__hamburger span {
        background: var(--color-text) !important;
    }
    /* Scroll indicator needs to be dark on light mobile background */
    .hero__scroll-indicator {
        color: var(--color-text-secondary);
    }
    /* When dark overlay is active on mobile, flip nav elements to white */
    .nav.nav--on-dark .nav__logo-img {
        filter: brightness(0) invert(1) !important;
    }
    .nav.nav--on-dark .nav__logo-sub {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    .nav.nav--on-dark .nav__logo-divider {
        background: rgba(255, 255, 255, 0.3) !important;
    }
    .nav.nav--on-dark .nav__hamburger span {
        background: #fff !important;
    }
    .nav__links {
        display: none;
    }
    .nav__hamburger {
        display: flex;
    }
    .nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-glass-bg-mobile);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    }
    /* When the nav is on the hero (NOT scrolled), link colors are white so the
       dropdown needs a DARK background for contrast. Without this, white text
       on a light dropdown background is invisible. This applies to both the
       "neutral hero" state (.nav.visible:not(.scrolled)) and the explicit
       .nav--on-dark state used when the dark overlay is active. */
    .nav.visible:not(.scrolled) .nav__links.open,
    .nav.nav--on-dark .nav__links.open {
        background: rgba(10, 13, 26, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 16px 40px rgba(0, 0, 0, 0.4);
    }
    .nav.visible:not(.scrolled) .nav__links.open .nav__link,
    .nav.nav--on-dark .nav__links.open .nav__link {
        color: rgba(255, 255, 255, 0.9);
    }
    .nav.visible:not(.scrolled) .nav__links.open .nav__link:hover,
    .nav.nav--on-dark .nav__links.open .nav__link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .product__grid,
    .apps__grid {
        grid-template-columns: 1fr;
    }

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

    /* Tablet/mid breakpoint: hero row stays 3-across, secondary row
       collapses earlier so the small static values still read comfortably */
    .stats__grid--hero {
        grid-template-columns: 1fr;
    }
    .stats__grid--secondary {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .stats__card {
        padding: 28px 24px;
    }
    .stats__card--sec {
        padding: 20px 18px;
    }
    .stats__card--hero .stats__value {
        font-size: clamp(2.75rem, 12vw, 3.5rem);
    }

    /* New Stats CTA banner stacks on mobile */
    .stats__cta {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 22px;
        text-align: center;
    }
    .stats__cta-text p { margin-left: auto; margin-right: auto; }
    .stats__cta-actions {
        width: 100%;
        justify-content: center;
    }
    .stats__cta-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Apps number smaller on mobile so it doesn't overlap the title */
    .apps__number {
        font-size: 2.75rem;
        top: 16px;
        right: 18px;
    }
    .apps__title {
        padding-right: 68px;
    }

    .cases__grid {
        grid-template-columns: 1fr;
    }
    .section__header--row {
        flex-direction: column;
        align-items: flex-start;
    }
    .form__phone {
        grid-template-columns: 1fr;
    }
    .tech-hub__cta {
        flex-direction: column;
        align-items: stretch;
    }
    .tech-hub__cta .btn {
        justify-content: center;
    }
    .appdetail__metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .appmodal__body {
        padding: 24px 20px;
    }

    .grade__dos-donts {
        grid-template-columns: 1fr;
    }

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

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

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .hero__actions .btn--large {
        padding: 16px 32px;
        font-size: 0.9375rem;
    }

    /* Mobile hero content polish */
    .hero__title {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    .hero__subtitle {
        font-size: 0.9375rem;
        margin-bottom: 28px;
        padding: 0 8px;
    }
    .hero__badge {
        font-size: 0.6875rem;
        padding: 8px 16px;
    }

    /* Mobile section spacing */
    .section {
        padding: 64px 0;
    }
    .section__title {
        font-size: 2rem;
    }
    .section__header {
        margin-bottom: 36px;
    }

    /* Mobile grade layout */
    .grade__tagline {
        font-size: 1rem;
    }
    .grade__dos-donts {
        grid-template-columns: 1fr;
    }

    /* Mobile sample section */
    .sample__form-wrapper {
        padding: 24px 20px;
    }
    .form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Tightest breakpoint: BOTH rows stack 1-per-row so text doesn't wrap
       into tiny 3-line strips. Cards remain visually distinct (hero has
       larger padding + accent border; secondary is smaller + dimmer). */
    .stats__grid--hero,
    .stats__grid--secondary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stats__card--hero {
        padding: 26px 22px;
    }
    .stats__card--sec {
        padding: 20px 22px;
    }
    .stats__card--hero .stats__value {
        font-size: 3rem;
    }
    .stats__card--sec .stats__value {
        font-size: 1.875rem;
    }
}

/* ---------- Form button states ---------- */
.btn--sending {
    opacity: 0.7;
    pointer-events: none;
}
.btn--success {
    background: var(--color-green) !important;
    box-shadow: 0 4px 16px var(--color-green-glow) !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero__scroll-spacer {
        height: 100vh; /* Skip frame scroll for reduced motion */
    }
}
