/* ==========================================================================
   IoTCrazy theme — full-bleed sections, alternating white / light gray,
   circuit-grid motifs and mono "spec" typography.
   Loaded after tailwind.min.css and styles.css.
   ========================================================================== */

:root {
    --brand: #01A6F0;
    --brand-dark: #0187C7;
    --brand-deep: #0A5BD8;
    --cyan: #22D3EE;
    --violet: #7C5CFF;
    --signal: #F34F1C;
    --lime: #7FBC00;
    --amber: #FFBA01;

    --ink: #0B1220;
    --ink-2: #111A2E;
    --ink-3: #1B2640;
    --text: #1E293B;
    --muted: #5B6679;
    --line: #E3E8EF;
    --line-strong: #CBD3DF;

    --bg-white: #FFFFFF;
    --bg-gray: #F3F6F9;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --nav-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body, html {
    font-family: var(--font-sans);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

body { background: var(--bg-white); }

h1, h2, h3, h4, h5, h6,
.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }

.font-mono, code, kbd, pre { font-family: var(--font-mono); }

::selection { background: rgba(1, 166, 240, 0.22); }

/* The legacy container used !important paddings; widen it a little. */
.container { max-width: 1240px !important; }

/* ==========================================================================
   Sections
   ========================================================================== */
.sec {
    position: relative;
    padding: 88px 0;
    overflow: hidden;
    /* clip (not hidden) keeps position:sticky working for children */
    overflow: clip;
}
.sec-sm { padding: 56px 0; }
.sec-lg { padding: 120px 0; }
@media (max-width: 767px) {
    .sec { padding: 64px 0; }
    .sec-sm { padding: 40px 0; }
    .sec-lg { padding: 80px 0; }
}

.sec-white { background: var(--bg-white); }

.sec-gray {
    background-color: var(--bg-gray);
    background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Hairline between two sections of the same colour */
.sec + .sec.sec-divided { border-top: 1px solid var(--line); }

/* Dark "control room" section: hero, CTA band, footer */
.sec-ink {
    background:
        radial-gradient(circle at 78% 135%, transparent 62%, rgba(34, 211, 238, 0.22) 62.2%, rgba(34, 211, 238, 0.05) 63.5%, transparent 66%),
        radial-gradient(circle at 78% 135%, transparent 70%, rgba(124, 92, 255, 0.12) 70.15%, transparent 71%),
        radial-gradient(ellipse 120% 80% at 50% 120%, rgba(10, 91, 216, 0.28), transparent 60%),
        linear-gradient(180deg, #0A1120 0%, var(--ink) 55%, #0C1426 100%);
    color: #E6EDF7;
    isolation: isolate;
}
/* Light field: scattered points of light with a few linked nodes */
.sec-ink::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/illustrations/hero-particles.svg') center / cover no-repeat;
    opacity: 0.85;
    -webkit-mask-image: radial-gradient(ellipse 90% 95% at 65% 40%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 95% at 65% 40%, #000 30%, transparent 85%);
    z-index: -1;
    pointer-events: none;
}
/* Aurora: two soft colour clouds that slowly drift */
.sec-ink::after {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(38% 42% at 72% 30%, rgba(1, 166, 240, 0.34), transparent 70%),
        radial-gradient(30% 36% at 88% 62%, rgba(124, 92, 255, 0.26), transparent 70%),
        radial-gradient(34% 40% at 18% 78%, rgba(34, 211, 238, 0.12), transparent 70%);
    filter: blur(30px);
    animation: aurora-drift 22s ease-in-out infinite alternate;
    z-index: -2;
    pointer-events: none;
}
@keyframes aurora-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-4%, 3%, 0) scale(1.06); }
    100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}
.sec-ink h1, .sec-ink h2, .sec-ink h3, .sec-ink h4 { color: #fff; }
.sec-ink .text-muted { color: #9AA8BF; }

/* Brand band: a saturated blue CTA strip */
.sec-brand {
    background: linear-gradient(115deg, var(--brand-deep) 0%, var(--brand) 55%, var(--cyan) 120%);
    color: #fff;
    isolation: isolate;
}
.sec-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/illustrations/trace-pattern.svg');
    background-size: 560px auto;
    opacity: 0.22;
    z-index: -1;
    pointer-events: none;
}
.sec-brand h2, .sec-brand h3 { color: #fff; }

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 18px;
}
.eyebrow .idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 11px;
}
.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(1, 166, 240, 0.15);
    animation: led-blink 2.4s ease-in-out infinite;
}
.sec-ink .eyebrow, .sec-brand .eyebrow { color: var(--cyan); }
.sec-brand .eyebrow { color: #fff; }

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

.h-display {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.2vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.h-page {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.h-section {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: var(--ink);
}
.h-block {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--ink);
}
.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
}
.sec-ink .lead { color: #A9B6CB; }
.sec-brand .lead { color: rgba(255, 255, 255, 0.88); }

.text-gradient {
    background: linear-gradient(95deg, var(--cyan) 0%, var(--brand) 45%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mono-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Section header block */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .lead { margin-top: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 8px; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(1, 166, 240, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 12px 28px -10px rgba(1, 166, 240, 0.9); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }

.btn-outline { border: 1.5px solid var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { background: #EAF6FE; color: var(--brand-deep); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand-dark);
}
.link-arrow::after { content: '→'; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.topbar {
    background: var(--ink);
    color: #93A3BC;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
}
.topbar .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 8px #34D399;
    animation: led-blink 2s ease-in-out infinite;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 18, 32, 0.4); }
.site-nav .nav-inner { height: var(--nav-h); }

.nav-link-x {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    padding: 8px 2px;
    transition: color .15s ease;
}
.nav-link-x::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.nav-link-x:hover, .nav-link-x.is-active { color: var(--ink); }
.nav-link-x:hover::after, .nav-link-x.is-active::after { transform: scaleX(1); }

.nav-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.nav-cart:hover { border-color: var(--brand); color: var(--brand); }
.nav-cart svg { width: 20px; height: 20px; }
#cart-count {
    background: var(--signal) !important;
    box-shadow: 0 0 0 2px #fff;
    font-family: var(--font-mono);
    font-size: 10.5px;
}

@media (max-width: 767px) {
    .mobile-menu { top: var(--nav-h); }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding: 72px 0 80px; }
.page-hero .crumbs {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7F8EA8;
    margin-bottom: 22px;
}
.page-hero .crumbs a { color: #A9B6CB; }
.page-hero .crumbs a:hover { color: var(--cyan); }
.page-hero .crumbs .sep { margin: 0 8px; color: #4A5872; }
.page-hero-art { max-height: 280px; width: auto; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(1, 166, 240, 0.25)); }
@media (max-width: 1023px) { .page-hero-art { max-height: 200px; margin: 32px auto 0; } }

/* ==========================================================================
   Card-free content patterns
   ========================================================================== */

/* Feature columns separated by hairlines instead of boxes */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-cell {
    position: relative;
    padding: 32px 28px 8px 0;
}
@media (min-width: 768px) {
    .feature-cell { padding: 36px 32px 12px 28px; border-left: 1px solid var(--line); }
    .feature-cell:first-child { border-left: 0; padding-left: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .feature-grid .feature-cell:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}
.feature-cell::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 44px; height: 2px;
    background: var(--brand);
}
@media (min-width: 768px) { .feature-cell:not(:first-child)::before { left: 28px; } }
.feature-cell .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.feature-cell h3 { margin: 14px 0 10px; }
.feature-cell p { color: var(--muted); line-height: 1.7; }

.glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    color: var(--brand-dark);
    background: linear-gradient(135deg, rgba(1, 166, 240, 0.14), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(1, 166, 240, 0.22);
}
.glyph svg { width: 24px; height: 24px; }
.glyph.g-orange { color: var(--signal); background: rgba(243, 79, 28, 0.08); border-color: rgba(243, 79, 28, 0.22); }
.glyph.g-green { color: #5B8C00; background: rgba(127, 188, 0, 0.1); border-color: rgba(127, 188, 0, 0.3); }
.glyph.g-violet { color: var(--violet); background: rgba(124, 92, 255, 0.09); border-color: rgba(124, 92, 255, 0.25); }
.glyph.g-amber { color: #C98F00; background: rgba(255, 186, 1, 0.12); border-color: rgba(255, 186, 1, 0.35); }
.sec-ink .glyph { color: var(--cyan); background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.25); }

/* Split row: text + illustration, alternating sides */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
    .split { grid-template-columns: 1fr 1fr; gap: 80px; }
    .split.reverse > :first-child { order: 2; }
}
.split-art { width: 100%; max-width: 520px; margin: 0 auto; }

/* Checklist with circuit-node bullets */
.node-list { list-style: none; padding: 0; margin: 0; }
.node-list li {
    position: relative;
    padding: 12px 0 12px 32px;
    border-bottom: 1px dashed var(--line-strong);
    line-height: 1.6;
}
.node-list li:last-child { border-bottom: 0; }
.node-list li::before {
    content: '';
    position: absolute;
    left: 4px; top: 19px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1, 166, 240, 0.12);
}
.sec-ink .node-list li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.sec-ink .node-list li::before { background: var(--ink); border-color: var(--cyan); }

/* Stats strip */
.stat-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 20px 24px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .val { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.stat .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8C9BB4; margin-top: 4px; }
.sec-white .stat, .sec-gray .stat { border-left-color: var(--line); }
.sec-white .stat .val, .sec-gray .stat .val { color: var(--ink); }
.sec-white .stat .lbl, .sec-gray .stat .lbl { color: var(--muted); }

/* Testimonial cards */
.quote-row { display: grid; gap: 24px; }
@media (min-width: 768px) { .quote-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.quote {
    --q1: #01A6F0; --q2: #22D3EE;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02), 0 18px 40px -30px rgba(11, 18, 32, 0.35);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quote:nth-child(3n+2) { --q1: #7C5CFF; --q2: #B39DFF; }
.quote:nth-child(3n+3) { --q1: #34A853; --q2: #7FBC00; }
.quote::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--q1), var(--q2));
}
.quote::after {
    content: '\201D';
    position: absolute;
    top: -18px; right: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 140px;
    line-height: 1;
    color: var(--q1);
    opacity: 0.08;
    pointer-events: none;
}
.quote:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--q1) 35%, var(--line)); box-shadow: 0 24px 44px -28px color-mix(in srgb, var(--q1) 60%, transparent); }
.quote-stars { display: flex; gap: 3px; color: #FFB400; margin-bottom: 16px; }
.quote-stars svg { width: 16px; height: 16px; }
.quote blockquote { flex: 1; font-size: 1rem; line-height: 1.75; color: #334155; }
.quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-strong);
}
.quote-avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--q1), var(--q2));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px var(--q1);
    transform: rotate(-4deg);
    transition: transform .25s ease;
}
.quote:hover .quote-avatar { transform: rotate(0deg) scale(1.05); }
.quote-name { font-weight: 600; color: var(--ink); }
.quote .mono-tag { margin-top: 2px; }

/* Timeline / step flow */
.steps { display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 0; } }
.step { position: relative; padding-right: 24px; }
.step .step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-dark);
    background: #fff;
    border: 2px solid var(--brand);
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .step::before {
        content: '';
        position: absolute;
        top: 20px; left: 40px; right: 0;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px);
        opacity: 0.5;
    }
    .step:last-child::before { display: none; }
}
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--muted); line-height: 1.7; font-size: 0.97rem; }

/* Spec table: key / value rows */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; padding-right: 20px; }

/* Long-form documents (legal / policy / guides) */
.doc-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.doc-toc .mono-tag { margin-bottom: 14px; display: block; }
.doc-toc a {
    display: block;
    padding: 7px 0 7px 14px;
    border-left: 2px solid var(--line);
    font-size: 14px;
    color: var(--muted);
    transition: color .15s, border-color .15s;
}
.doc-toc a:hover, .doc-toc a.is-active { color: var(--ink); border-left-color: var(--brand); }
@media (max-width: 1023px) { .doc-toc { display: none; } }

.prose-x { max-width: 760px; color: var(--text); font-size: 1.02rem; line-height: 1.8; }
.prose-x > * + * { margin-top: 1.1em; }
.prose-x h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 2.4em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    letter-spacing: -0.02em;
}
.prose-x h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose-x h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 1.8em; }
.prose-x p, .prose-x li { color: #3B475C; }
.prose-x ul { list-style: none; padding-left: 0; }
.prose-x ul li { position: relative; padding-left: 26px; margin-top: 0.55em; }
.prose-x ul li::before {
    content: '';
    position: absolute;
    left: 4px; top: 0.72em;
    width: 8px; height: 8px;
    border: 2px solid var(--brand);
    border-radius: 2px;
    transform: rotate(45deg);
}
.prose-x ol { list-style: decimal; padding-left: 1.4em; }
.prose-x ol li { margin-top: 0.55em; padding-left: 6px; }
.prose-x ol li::marker { font-family: var(--font-mono); color: var(--brand-dark); font-weight: 600; }
.prose-x a { color: var(--brand-dark); text-decoration: underline; text-decoration-color: rgba(1, 166, 240, 0.35); text-underline-offset: 3px; }
.prose-x a:hover { text-decoration-color: var(--brand); }
.prose-x strong { color: var(--ink); font-weight: 600; }
.prose-x code { font-size: 0.88em; padding: 2px 6px; border-radius: 5px; background: #EEF3F8; color: #0F4C75; }
.prose-x pre { background: var(--ink); color: #D5E2F2; padding: 20px 22px; border-radius: 12px; overflow-x: auto; font-size: 0.88rem; line-height: 1.65; }
.prose-x pre code { background: transparent; color: inherit; padding: 0; }
.prose-x table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose-x th, .prose-x td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose-x th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-gray); }
.prose-x img { border-radius: 12px; }

/* Callout — a left-ruled note, not a card */
.callout {
    position: relative;
    padding: 18px 22px 18px 24px;
    border-left: 3px solid var(--brand);
    background: linear-gradient(90deg, rgba(1, 166, 240, 0.08), rgba(1, 166, 240, 0) 85%);
    border-radius: 0 10px 10px 0;
    color: #25324A;
}
.callout.warn { border-left-color: var(--amber); background: linear-gradient(90deg, rgba(255, 186, 1, 0.12), rgba(255, 186, 1, 0) 85%); }
.callout.danger { border-left-color: var(--signal); background: linear-gradient(90deg, rgba(243, 79, 28, 0.09), rgba(243, 79, 28, 0) 85%); }
.callout.ok { border-left-color: var(--lime); background: linear-gradient(90deg, rgba(127, 188, 0, 0.1), rgba(127, 188, 0, 0) 85%); }
.callout .mono-tag { display: block; margin-bottom: 4px; color: inherit; opacity: 0.7; }

/* Panel: the one sanctioned "surface" for forms and order summaries */
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02), 0 20px 40px -32px rgba(11, 18, 32, 0.35);
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.panel-head .dots { display: inline-flex; gap: 6px; }
.panel-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.panel-head .dots i:first-child { background: #FF5F57; }
.panel-head .dots i:nth-child(2) { background: #FEBC2E; }
.panel-head .dots i:nth-child(3) { background: #28C840; }

/* Form fields */
.field-label { display: block; font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.field {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.field { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.6; }
.field:focus,
.field:focus-visible {
    outline: none;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px rgba(1, 166, 240, 0.14) !important;
}

/* ==========================================================================
   Product tiles (catalog is the one place cards are kept — made flatter)
   ========================================================================== */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tile:hover { border-color: rgba(1, 166, 240, 0.55); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(1, 100, 170, 0.45); }
.tile-media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    padding: 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.tile-media::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(1, 166, 240, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 166, 240, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.tile:hover .tile-media::after { opacity: 1; }
.tile-media img { position: absolute; top: 22px; left: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; transition: transform .35s ease; z-index: 1; }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tile-sku { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: #94A0B4; text-transform: uppercase; margin-bottom: 6px; }
.tile-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink); }
.tile-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid var(--line);
    color: #475569;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { color: #4E7F00; border-color: rgba(127, 188, 0, 0.4); background: #F6FBEA; }
.chip-warn { color: #B07B00; border-color: rgba(255, 186, 1, 0.45); background: #FFF9E6; }
.chip-low { color: #C73D12; border-color: rgba(243, 79, 28, 0.35); background: #FFF2ED; }
.chip-off { color: #64748B; }
.chip-sale { color: #fff; background: var(--signal); border-color: var(--signal); }
.chip-sale::before { background: #fff; }

/* Category pill nav */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #D6E0EE;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    transition: all .18s ease;
}
.pill:hover { border-color: var(--cyan); color: #fff; background: rgba(34, 211, 238, 0.1); }
.pill .count { font-family: var(--font-mono); font-size: 11px; color: #7F8EA8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #9AA8BF; position: relative; isolation: isolate; overflow: hidden; }
.site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('/assets/images/illustrations/trace-pattern.svg');
    background-size: 620px auto;
    opacity: 0.06;
    z-index: -1;
}
.site-footer h5 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.site-footer a { color: #9AA8BF; transition: color .15s ease; }
.site-footer a:hover { color: var(--cyan); }
.site-footer a.btn-primary, .site-footer a.btn-primary:hover,
.site-footer a.btn-ghost-light, .site-footer a.btn-ghost-light:hover { color: #fff; }
.footer-rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent); }

/* ==========================================================================
   Motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

.float-y { animation: float-y 6s ease-in-out infinite; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.caret::after { content: '_'; margin-left: 2px; color: var(--cyan); animation: led-blink 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Cookie banner restyle */
#cookie-consent-banner { background: rgba(11, 18, 32, 0.96) !important; backdrop-filter: blur(8px); border-top: 1px solid rgba(34, 211, 238, 0.25); }

/* SweetAlert buttons pick up the brand */
.swal2-styled.swal2-confirm { background-color: var(--brand) !important; border-radius: 10px !important; }
.swal2-popup { border-radius: 16px !important; font-family: var(--font-sans) !important; }

@media (min-width: 768px) { #mobile-menu-button { display: none; } }

@media (max-width: 767px) {
    .stat { padding: 18px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat:nth-child(-n+2) { border-top: 0; }
    .sec-white .stat, .sec-gray .stat { border-top-color: var(--line); }
    .hero-facts .stat .val { font-size: 1rem; }
}

/* ==========================================================================
   Scrollbar — slim track, brand-gradient thumb
   ========================================================================== */
/* Firefox only: in Chrome these standard properties would override the gradient thumb below */
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-width: thin; scrollbar-color: #4FB8EA #EEF2F7; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EEF2F7; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--brand) 55%, var(--violet));
    border-radius: 999px;
    border: 2px solid #EEF2F7;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}
::-webkit-scrollbar-corner { background: #EEF2F7; }

/* Inner scroll areas (code blocks, tables, sub-navs) get a quieter thumb */
pre::-webkit-scrollbar-thumb,
.prose-x ::-webkit-scrollbar-thumb {
    background: #3A4A66;
    border-color: transparent;
}
pre::-webkit-scrollbar-track { background: transparent; }
