/* ==========================================================================
   PhoScale — Bulk Supply Platform for AI Data Center Optical Interconnects
   Design system: clean white B2B UI, ink/gray type, fine gray lines,
   GitHub-style blue accent used only for actions/links/selected states.
   ========================================================================== */

:root {
    --ink: #111827;
    --heading: #0B1220;
    --muted: #6B7280;
    --muted-2: #9CA3AF;
    --line: #E5E7EB;
    --line-strong: #D1D5DB;
    --bg: #F3F4F6;
    --surface: #FFFFFF;
    --soft: #F9FAFB;
    --accent: #0969DA;
    --accent-hover: #0757b8;
    --accent-soft: #EEF6FF;
    --accent-line: #B6D7FF;
    --accent-ink: #054A9F;
    --success: #15803D;
    --success-soft: #E7F6EC;
    --warning: #B45309;
    --warning-soft: #FBF1E4;
    --danger: #B42318;
    --danger-soft: #FBEAE8;

    --ink-1: #0B1220;
    --deep: #0b1526;
    --deep-2: #101c33;

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.12);
    --maxw: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--soft); }
.text-center { text-align: center; }
.muted { color: var(--muted); }

.kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 1px solid transparent; transition: all 0.15s ease;
    white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--soft); color: var(--ink); border-color: var(--muted-2); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent-line); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-white { background: #fff; color: var(--heading); border-color: #fff; }
.btn-white:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand .brand-fallback { font-weight: 800; font-size: 1.35rem; color: var(--heading); letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
    color: var(--ink); font-weight: 500; font-size: 0.94rem;
    padding: 8px 12px; border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--soft); color: var(--heading); }
.main-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.rfq-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--accent-line); background: var(--accent-soft);
    color: var(--accent-ink); font-weight: 600; font-size: 0.9rem;
}
.rfq-pill .count {
    background: var(--accent); color: #fff; border-radius: 999px;
    min-width: 20px; height: 20px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.75rem; padding: 0 6px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); width: 40px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink);
    margin: 3px auto; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--deep);
    color: #eef2f7; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(9, 105, 218, 0.35), transparent 60%),
        linear-gradient(180deg, #0b1526 0%, #0e1c35 100%);
}
.hero .container { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .kicker { color: #7db8ff; }
.hero .lead { color: #c6d2e2; font-size: 1.18rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 0.85rem; color: #9fb0c6; }
.hero-visual {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
    padding: 22px; backdrop-filter: blur(4px);
}
.hero-visual .hv-row { display: flex; align-items: center; justify-content: space-between;
    padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-visual .hv-row:last-child { border-bottom: none; }
.hero-visual .hv-name { color: #e6edf6; font-weight: 600; font-size: 0.95rem; }
.hero-visual .hv-sub { color: #92a3ba; font-size: 0.8rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem;
    font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.spot { color: #4ade80; background: rgba(34,197,94,0.12); }
.chip.near { color: #7db8ff; background: rgba(9,105,218,0.16); }
.chip.project { color: #fbbf78; background: rgba(180,83,9,0.18); }

/* ---------- Trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-bar .container { display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 18px 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted);
    font-size: 0.9rem; font-weight: 500; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-body { padding: 24px; }

/* Family card */
.family-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.family-card .fc-top { padding: 26px 24px 20px; border-bottom: 1px solid var(--line); }
.family-card .fc-rate { font-size: 1.7rem; font-weight: 800; color: var(--heading); }
.family-card .fc-tag { font-size: 0.82rem; color: var(--accent); font-weight: 600; font-family: var(--mono); }
.family-card .fc-body { padding: 20px 24px; flex: 1; }
.family-card .fc-body p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.family-card .fc-foot { padding: 16px 24px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; }
.family-card .fc-count { font-size: 0.85rem; color: var(--muted); }

/* Product card */
.product-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.product-card .pc-media {
    aspect-ratio: 16 / 10; background: var(----surface);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-bottom: 1px solid var(--line); padding: 14px;
}
.product-card .pc-media img { max-height: 100%; width: auto; object-fit: contain;
    }
.product-card .pc-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-family { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.product-card .pc-title { font-size: 1.02rem; font-weight: 700; color: var(--heading);
    margin: 0 0 4px; line-height: 1.3; }
.product-card .pc-sku { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2); margin-bottom: 12px; }
.product-card .pc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spec-tag { font-size: 0.75rem; color: var(--ink); background: var(--soft);
    border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.product-card .pc-foot { margin-top: auto; display: flex; align-items: center;
    justify-content: space-between; gap: 10px; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem;
    font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.success { color: var(--success); background: var(--success-soft); }
.status.accent { color: var(--accent-ink); background: var(--accent-soft); }
.status.warning { color: var(--warning); background: var(--warning-soft); }
.status.muted { color: var(--muted); background: var(--soft); }

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 16px; }
.feature .ficon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem;
    color: var(--muted); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--muted-2); }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery .pd-main {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
    padding: 32px; overflow: hidden;
}
.pd-gallery .pd-main img { max-height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumbs button {
    width: 74px; height: 66px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); padding: 6px; cursor: pointer; overflow: hidden;
}
.pd-thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: 1.9rem; margin-bottom: 8px; }
.pd-sku { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.pd-subtitle { color: var(--muted); font-size: 1.02rem; margin: 14px 0 20px; }
.pd-keyspecs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 22px; }
.pd-keyspecs .ks { background: var(--surface); padding: 12px 16px; }
.pd-keyspecs .ks .k { font-size: 0.75rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.04em; }
.pd-keyspecs .ks .v { font-size: 0.98rem; font-weight: 600; color: var(--heading); }
.pd-supply { display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 20px; }
.pd-supply .lead-time { color: var(--muted); font-size: 0.88rem; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); overflow: hidden; }
.qty-input button { width: 40px; height: 44px; border: none; background: var(--soft);
    font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty-input input { width: 72px; height: 44px; border: none; text-align: center;
    font-size: 1rem; font-weight: 600; }
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rfq-note { font-size: 0.86rem; color: var(--muted); margin-top: 14px; padding: 12px 14px;
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm); color: var(--accent-ink); }

/* Bulk package table */
.pkg-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; }
.pkg-table th, .pkg-table td { padding: 13px 16px; text-align: left; font-size: 0.92rem;
    border-bottom: 1px solid var(--line); }
.pkg-table th { background: var(--soft); font-weight: 600; color: var(--heading);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pkg-table tr:last-child td { border-bottom: none; }
.pkg-table .pkg-name { font-weight: 700; color: var(--heading); }
.pkg-table .pkg-qty { font-family: var(--mono); font-weight: 600; }
.pkg-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: #fff; background: var(--accent); border-radius: 999px;
    padding: 2px 8px; vertical-align: middle; margin-left: 4px; }

/* Bulk package picker (product purchase panel — Amazon-style variant tiles) */
.pkg-picker { margin: 20px 0 0; }
.pkg-picker-head { font-size: 0.95rem; margin-bottom: 10px; }
.pkg-picker-head strong { color: var(--heading); }
.pkg-picker-current { color: var(--accent-ink); font-weight: 600; }
.pkg-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.pkg-tile { position: relative; display: block; cursor: pointer; }
.pkg-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-tile-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
    min-height: 86px; }
.pkg-tile:hover .pkg-tile-body { border-color: var(--muted-2); }
.pkg-tile input:checked + .pkg-tile-body,
.pkg-tile.selected .pkg-tile-body {
    border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
    background: var(--accent-soft); }
.pkg-tile input:focus-visible + .pkg-tile-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.pkg-tile-name { font-weight: 700; color: var(--heading); font-size: 0.92rem; line-height: 1.25; }
.pkg-tile-size { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); }
.pkg-tile-disc { font-size: 0.8rem; color: var(--success); font-weight: 600; }
.pkg-tile .pkg-badge { position: absolute; top: -9px; right: 10px; }
.pkg-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.pkg-qty-label { font-weight: 600; color: var(--heading); font-size: 0.92rem; }
.pkg-qty-row .qty-input button { width: 38px; height: 42px; font-size: 1.15rem; }
.pkg-qty-row .qty-input input { width: 70px; height: 42px; }
.pkg-total { font-size: 0.92rem; color: var(--muted); }
.pkg-total strong { color: var(--heading); font-family: var(--mono); }
.pkg-actions { display: flex; gap: 12px; }
.pkg-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
.pkg-custom-note { margin-top: 14px; padding: 12px 16px; background: var(--soft);
    border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 0.87rem; color: var(--muted); line-height: 1.5; }
.pkg-custom-note strong { color: var(--heading); }
.pkg-custom-note em { font-style: normal; font-weight: 600; color: var(--accent-ink); }
@media (max-width: 480px) {
    .pkg-tiles { grid-template-columns: 1fr; }
    .pkg-actions { flex-direction: column; }
}

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-table td:first-child { color: var(--muted); width: 40%; font-weight: 500; }
.spec-table td:last-child { color: var(--heading); font-weight: 500; }
.spec-table tr:nth-child(even) td { background: var(--soft); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
    overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; flex-shrink: 0; }
.tabs button { padding: 12px 18px; background: none; border: none; border-bottom: 2px solid transparent;
    font-weight: 600; color: var(--muted); cursor: pointer; font-size: 0.95rem; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.hl-list { list-style: none; padding: 0; margin: 0; }
.hl-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink); }
.hl-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
    background: var(--accent-soft); border-radius: 50%; }
.hl-list li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(45deg); }

/* ---------- Rich text (editable content) ---------- */
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte p { margin: 0 0 0.9em; }
.rte ul, .rte ol { margin: 0 0 0.9em; padding-left: 1.2em; }
.rte li { margin-bottom: 0.4em; }
.rte a { color: var(--accent); text-decoration: underline; }
.rte strong, .rte b { font-weight: 700; color: inherit; }
.rte em { font-style: italic; }
.rte h3 { font-size: 1.15rem; margin: 1.1em 0 0.4em; }
.rte h4 { font-size: 1rem; margin: 1em 0 0.35em; }
/* checkmark list variant — product highlights & applications */
.rte-checks ul { list-style: none; padding: 0; margin: 0; }
.rte-checks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink); }
.rte-checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
    background: var(--accent-soft); border-radius: 50%; }
.rte-checks li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
/* context tints so rich text matches its surroundings */
.page-hero .rte { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.section-head .rte { color: var(--muted); font-size: 1.05rem; }
.cta-band .rte { color: #c6d2e2; max-width: 560px; margin: 0 auto 24px; }
.cta-band .rte a { color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--heading);
    margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
    color: var(--ink); background: var(--surface); transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
/* Choices.js country dropdown — match .field input look */
.field .choices { margin-bottom: 0; }
.field .choices__inner { background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); padding: 6px 14px; min-height: 44px; font-size: 0.95rem; }
.field .choices.is-focused .choices__inner, .field .choices.is-open .choices__inner {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .choices__list--dropdown, .field .choices__list[aria-expanded] {
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); z-index: 30; }
.field .choices__list--dropdown .choices__item--selectable.is-highlighted,
.field .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: var(--accent-soft); color: var(--accent-ink); }
.field .choices__input--cloned { background: transparent; font-size: 0.9rem; margin-bottom: 0; }
.field .choices__list--single { padding: 4px 16px 0 0; color: var(--ink); }
.field .choices__placeholder { color: var(--muted); opacity: 1; }
.field .choices__heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--muted); border-bottom: 1px solid var(--line); }
/* intl-tel-input phone widget — full width + focus ring parity */
.field .iti { width: 100%; }
.field .iti input { padding-right: 14px; }
.field .iti__selected-dial-code { font-size: 0.92rem; color: var(--heading); }
/* Dropdown list colors — explicit, so dark-hero pages can't wash them out (lib default dial code is #999) */
.iti__country-name { color: var(--ink); }
.iti__dial-code { color: var(--ink); }
.field .iti__dropdown-content { border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); font-size: 0.92rem; }
.field .iti__search-input { padding: 9px 12px 9px 34px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; }
.field-check label { font-weight: 500; font-size: 0.9rem; color: var(--ink); margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Alerts / flashes */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px;
    font-size: 0.94rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #b7e4c5; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f2c4bf; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: #fff; border-radius: var(--radius-lg);
    padding: 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 240px at 50% -20%, rgba(9,105,218,0.4), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d2e2; max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Tables (RFQ list) ---------- */
.rfq-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.rfq-layout > * { min-width: 0; }
@media (max-width: 900px) { .rfq-layout { grid-template-columns: 1fr; } }
.rfq-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rfq-table th, .rfq-table td { padding: 14px 16px; border-bottom: 1px solid var(--line);
    text-align: left; font-size: 0.92rem; vertical-align: middle; }
.rfq-table th { background: var(--soft); font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--muted); }
.rfq-table tr:last-child td { border-bottom: none; }
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state .es-icon { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--muted-2); }

/* ---------- Tiers (channel) ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px 22px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.tier.featured::before { content: "Popular"; position: absolute; top: -11px; left: 50%;
    transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.72rem;
    font-weight: 700; padding: 3px 12px; border-radius: 999px; text-transform: uppercase;
    letter-spacing: 0.05em; }
.tier .tier-name { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.tier .tier-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.tier ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.tier ul li { font-size: 0.88rem; padding: 8px 0 8px 24px; position: relative;
    border-top: 1px solid var(--line); color: var(--ink); }
.tier ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px;
    height: 10px; border-right: 2px solid var(--success); border-bottom: 2px solid var(--success);
    transform: rotate(45deg); }
.tier ul li.no::before { border-color: var(--muted-2); transform: rotate(0);
    width: 10px; height: 2px; border-right: none; top: 17px; }

/* ---------- Comparison / benefits table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line);
    text-align: center; }
.compare-table th { background: var(--soft); color: var(--heading); font-weight: 700; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: var(--muted); }
.compare-table tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-1); color: #aab6c6; padding: 56px 0 28px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer a { color: #aab6c6; display: block; padding: 5px 0; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; color: #8a97a8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 0.85rem; color: #7c8a9c; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

.badge-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4, .tier-grid, .stat-row, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .pd-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .main-nav, .header-actions .rfq-label { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-header .container { gap: 12px; }
    .main-nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; background: var(--surface);
        border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow); }
    .main-nav.open a { padding: 12px; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .tier-grid, .stat-row, .footer-grid, .form-row,
    .pd-keyspecs { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .cta-band { padding: 32px 22px; }
    .container { padding: 0 18px; }
    .table-scroll { overflow-x: auto; }
}
.table-scroll { overflow-x: auto; }

/* ---------- Service promise cards (home "Built for volume buyers") ---------- */
.promise-card .card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; }
.promise-card .ficon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
    color: var(--accent); display: flex; align-items: center; justify-content: center; }
.promise-num { font-size: 1.25rem; font-weight: 800; color: var(--heading); letter-spacing: -0.01em; }
.promise-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- How-we-work steps (about) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 24px 20px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
    font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%;
    transform: translateY(-50%); color: var(--muted-2); font-size: 1.1rem; }
@media (max-width: 900px) {
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
    .promise-grid, .steps-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Landing pages (AGI Summit 2026 QR page, Hiring page)
   ========================================================================== */
.landing-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.landing-header .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.landing-header .brand img { height: 25px; }
.landing-nav-link { font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.landing-footer { background: var(--ink-1); color: #8a97a8; padding: 24px 0; margin-top: 8px; font-size: 0.85rem; }
.landing-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.landing-footer a { color: #aab6c6; }
.landing-footer a:hover { color: #fff; }

/* AGI hero */
.agi-hero { position: relative; background: var(--deep); color: #eef2f7; overflow: hidden;
    padding: 56px 0 64px; }
.agi-hero::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(900px 400px at 85% -10%, rgba(9,105,218,0.35), transparent 60%),
        linear-gradient(180deg, #0b1526 0%, #0e1c35 100%); }
.agi-hero .container { position: relative; }
.agi-hero .kicker { color: #7db8ff; }
.agi-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 760px; }
.agi-hero .lead { color: #c6d2e2; font-size: 1.15rem; max-width: 640px; margin-bottom: 8px; }
.agi-hero .lead strong { color: #fff; }
.agi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 32px; }
.agi-hook-badge { display: inline-block; background: rgba(9,105,218,0.22); color: #7db8ff;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.agi-hook h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.agi-hook .muted { color: #9fb0c6; }
.agi-rate { list-style: none; padding: 0; margin: 22px 0 0; }
.agi-rate li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); color: #c6d2e2; font-size: 0.92rem; }
.agi-rate li span { display: inline-block; min-width: 52px; font-weight: 800; color: #fff; font-family: var(--mono); }
.agi-form-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 26px; }
.agi-form-card .field { margin-bottom: 14px; }

/* AGI trust row */
.agi-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.agi-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.agi-trust-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.agi-trust-item strong { display: block; color: var(--heading); font-size: 0.95rem; }
.agi-trust-item span { color: var(--muted); font-size: 0.85rem; }

/* Hiring job cards */
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 22px; }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-bottom: 8px; }
.job-head h3 { font-size: 1.35rem; margin-bottom: 8px; }
.job-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.job-card h4 { font-size: 0.95rem; color: var(--accent); margin: 16px 0 8px; }
.job-list { list-style: none; padding: 0; margin: 0; }
.job-list li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--ink); font-size: 0.93rem; }
.job-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 10px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }

@media (max-width: 820px) {
    .agi-grid { grid-template-columns: 1fr; gap: 28px; }
    .agi-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .agi-trust { grid-template-columns: 1fr; }
    .landing-footer .container { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   Message toast (element-plus style) + Cookie consent + Turnstile
   ========================================================================== */
.ph-toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 12px; align-items: center;
    pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.ph-toast { display: flex; align-items: center; gap: 10px; min-width: 340px; max-width: 92vw;
    padding: 12px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 0.92rem;
    line-height: 1.4; box-shadow: 0 6px 24px rgba(16,24,40,0.14); background: #fff; color: var(--ink);
    pointer-events: auto; opacity: 0; transform: translateY(-16px); transition: opacity .3s ease, transform .3s ease; }
.ph-toast.show { opacity: 1; transform: translateY(0); }
.ph-toast.hide { opacity: 0; transform: translateY(-16px); }
.ph-toast-icon { flex-shrink: 0; width: 18px; height: 18px; display: inline-flex; }
.ph-toast-msg { flex: 1; }
.ph-toast-close { flex-shrink: 0; cursor: pointer; color: var(--muted-2); font-size: 1.15rem;
    line-height: 1; padding-left: 4px; }
.ph-toast-close:hover { color: var(--muted); }
.ph-toast-success { background: #f0f9eb; border-color: #e1f3d8; color: #529b2e; }
.ph-toast-success .ph-toast-icon { color: #67c23a; }
.ph-toast-error { background: #fef0f0; border-color: #fde2e2; color: #c45656; }
.ph-toast-error .ph-toast-icon { color: #f56c6c; }

/* Cookie consent — bottom banner */
/* Slim cookie notice (CN site) — informational bottom bar, no consent flow */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    background: var(--surface); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -6px 24px rgba(16,24,40,0.12); }
.cookie-notice[hidden] { display: none; }
.cookie-notice-inner { display: flex; align-items: center; gap: 16px; padding: 12px 50px; }
.cookie-notice-inner span { flex: 1; font-size: 0.85rem; color: var(--ink); line-height: 1.55; }
.cookie-notice a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
.cookie-notice button { background: none; border: 0; color: var(--muted); font-size: 1.25rem;
    line-height: 1; cursor: pointer; padding: 6px 8px; }
.cookie-notice button:hover { color: var(--heading); }
@media (max-width: 640px) { .cookie-notice-inner { padding: 10px 18px; } }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    background: var(--surface); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -6px 24px rgba(16,24,40,0.12); }
.cookie-banner-inner { display: flex; align-items: center; gap: 24px; height: 100px; padding: 0 50px; }
.cookie-text { flex: 1; min-width: 240px; font-size: 0.86rem; color: var(--ink); line-height: 1.5; }
.cookie-text a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-dark { background: var(--deep); color: #fff; border-color: var(--deep); }
.btn-cookie-dark:hover { background: #16263f; border-color: #16263f; color: #fff; }
.btn-cookie-outline { background: var(--surface); color: var(--deep); border-color: var(--deep); }
.btn-cookie-outline:hover { background: var(--soft); color: var(--deep); }
.cookie-close { flex-shrink: 0; background: none; border: none; font-size: 1.5rem; line-height: 1;
    color: var(--ink); cursor: pointer; padding: 4px 8px; }
.cookie-close:hover { color: var(--muted); }

/* Cookie consent — preferences modal */
.cookie-modal-overlay { position: fixed; inset: 0; z-index: 9500; background: rgba(11,18,32,0.55);
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal-overlay[hidden], .cookie-banner[hidden] { display: none; }
.cookie-modal { background: var(--surface); border-radius: 10px; width: 100%; max-width: 620px;
    max-height: min(86vh, 760px); display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 64px rgba(16,24,40,0.35); }
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cookie-modal-logo { height: 24px; width: auto; }
.cookie-modal-close { background: none; border: none;
    width: 38px; height: 34px; font-size: 1.4rem; line-height: 1; color: var(--ink); cursor: pointer; }
.cookie-modal-close:hover { color: var(--muted); }
.cookie-modal-body { padding: 20px 22px; overflow-y: auto; }
.cookie-modal-body h2 { font-size: 1.35rem; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.cookie-modal-body > p { font-size: 0.92rem; color: var(--ink); }
.cookie-modal-body > p a { color: var(--accent-ink); text-decoration: underline; }
.cookie-modal-body h3 { font-size: 1.1rem; color: var(--muted); margin: 20px 0 12px; }
.cookie-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.cookie-cat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cookie-cat-toggle { background: none; border: none; font-size: 1.25rem; line-height: 1; width: 24px;
    color: var(--ink); cursor: pointer; flex-shrink: 0; }
.cookie-cat-name { flex: 1; font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.cookie-cat-always { color: var(--accent); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.cookie-cat-desc { padding: 0 16px 14px 52px; font-size: 0.86rem; color: var(--muted); }
.cookie-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px;
    cursor: pointer; transition: background 0.2s; }
.cookie-switch-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px;
    top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.cookie-switch input:checked + .cookie-switch-slider { background: #3f9c5c; }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(20px); }
.cookie-modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 22px;
    border-top: 1px solid var(--line); flex-shrink: 0; }

@media (max-width: 900px) {
    .cookie-banner-inner { flex-wrap: wrap; height: auto; min-height: 100px; padding: 14px 40px 14px 24px; }
    .cookie-close { position: absolute; top: 8px; right: 10px; }
    .cookie-banner-inner { position: relative; }
}
@media (max-width: 560px) {
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.85rem; white-space: normal; }
    .cookie-modal-foot { flex-direction: column; }
}

/* Turnstile widget spacing */
.turnstile-field { margin-bottom: 16px; }
.turnstile-field .cf-turnstile { min-height: 65px; }
