/* SpecSherpa public design system */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-color: #16a34a;
    --secondary-color: #111827;
    --text-color: #172033;
    --text-light: #667085;
    --border-color: #d9e2ef;
    --bg-light: #f4f7fb;
    --bg-white: #fff;
    --surface-soft: #eef5ff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --spacing-xs: .25rem;
    --spacing-sm: .5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-size-sm: .875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    --container-width: 1180px;
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 14px;
    --border-radius-xl: 18px;
    --box-shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --box-shadow-lg: 0 18px 50px rgba(17, 24, 39, .14);
    --box-shadow-sm: 0 2px 8px rgba(17, 24, 39, .06);
    --focus-ring: 0 0 0 4px rgba(37, 99, 235, .14);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.3;
    --line-height-relaxed: 1.65;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-sunken: #f4f7fb;
    --text-strong: #101827;
    --z-header: 1000;
    --z-overlay: 1050;
    --motion-fast: .15s;
    --motion-base: .22s;
}

/* Accessible focus ring shared across interactive elements (Q3 UI pass). */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg-light); }

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.6;
    background:
        linear-gradient(180deg, #eaf2ff 0, rgba(244, 247, 251, 0) 360px),
        var(--bg-light);
}

img { max-width: 100%; height: auto; }

a { color: var(--primary-color); text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--spacing-lg); }
.container-fluid { width: 100%; padding: 0 var(--spacing-lg); }

.row { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--spacing-sm)); }
.col, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9, .col-12 { padding: 0 var(--spacing-sm); }
.col { flex: 1; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.site-content { min-height: calc(100vh - 280px); padding: 0 0 var(--spacing-xxl); }

.site-header {
    background: rgba(255, 255, 255, .94);
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 226, 239, .85);
    backdrop-filter: blur(16px);
}

.header-top { background: #101827; color: #cbd5e1; padding: .45rem 0; font-size: var(--font-size-sm); }
.header-main { padding: .9rem 0; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #101827; font-size: 1.35rem; font-weight: 800; letter-spacing: 0; }
.logo i { color: var(--primary-color); }
.logo:hover { color: var(--primary-color); }

.search-box { flex: 1; max-width: 520px; margin: 0 var(--spacing-xl); position: relative; }
.search-box input {
    width: 100%;
    padding: .72rem 2.75rem .72rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.search-box button { position: absolute; right: .65rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--primary-color); cursor: pointer; }
.lang-switcher a { color: #dbeafe; padding: .25rem .5rem; border-radius: 6px; }
.lang-switcher a.active { background: #2563eb; color: #fff; }

.main-nav { background: #fff; border-top: 1px solid var(--border-color); }
.main-nav ul { list-style: none; display: flex; gap: var(--spacing-xl); padding: 0; margin: 0; }
.main-nav a { color: var(--text-light); padding: .8rem 0; display: block; font-weight: 650; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

/* Grouped navigation (Phase 9b): one dropdown per device group, shown once
   enough sections are live (see header.php NAV_GROUPED_MIN_TYPES). */
.main-nav .nav-group { position: relative; }
.nav-group-toggle {
    background: none;
    border: none;
    font: inherit;
    font-weight: 650;
    color: var(--text-light);
    padding: .8rem 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
}
.nav-group-toggle:hover,
.nav-group.open > .nav-group-toggle,
.nav-group.has-active > .nav-group-toggle { color: var(--primary-color); }
.nav-group-toggle .fa-chevron-down { font-size: .65rem; transition: transform .15s ease; }
.nav-group.open > .nav-group-toggle .fa-chevron-down { transform: rotate(180deg); }
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: .4rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    display: none;
    z-index: 70;
}
.nav-group.open > .nav-submenu { display: block; }
@media (hover: hover) and (pointer: fine) {
    .main-nav .nav-group:focus-within > .nav-submenu,
    .main-nav .nav-group:hover > .nav-submenu { display: block; }
}
.nav-submenu a {
    padding: .55rem 1rem;
    font-weight: 550;
}
.nav-submenu a:hover,
.nav-submenu a.active { background: rgba(37, 99, 235, .08); }

[data-theme="dark"] .nav-submenu {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .nav-group-toggle { color: #cbd5e1; }
[data-theme="dark"] .nav-group-toggle:hover,
[data-theme="dark"] .nav-group.open > .nav-group-toggle,
[data-theme="dark"] .nav-group.has-active > .nav-group-toggle,
[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav a.active { color: #60a5fa; }
[data-theme="dark"] .nav-submenu a:hover,
[data-theme="dark"] .nav-submenu a.active { background: rgba(96, 165, 250, .12); }
.compare-badge { background: var(--accent-color); color: white; border-radius: 99px; padding: .12rem .45rem; font-size: .72rem; margin-left: .25rem; }

.hero-section {
    background:
        radial-gradient(circle at 82% 18%, rgba(22, 163, 74, .18), transparent 24%),
        linear-gradient(135deg, #10213f 0%, #1d4ed8 58%, #16a34a 100%);
    color: white;
    padding: 4rem 0 3.5rem;
    margin-bottom: 2rem;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 2rem; align-items: center; }
.hero-section h1 { font-size: 3rem; line-height: 1.05; margin-bottom: 1rem; letter-spacing: 0; max-width: 760px; }
.hero-section p { font-size: 1.1rem; max-width: 620px; color: #dbeafe; margin-bottom: 1.5rem; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.metric-pill { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); border-radius: 99px; padding: .55rem .85rem; color: #fff; }
/* Info-first home: the spec-lookup search box is the primary hero element. */
.hero-search { display: flex; gap: .6rem; margin-bottom: 1.25rem; max-width: 620px; }
.hero-search input {
    flex: 1; min-width: 0; padding: .85rem 1.1rem; font-size: 1.05rem;
    border-radius: 8px; border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.96); color: #101827;
}
.hero-search input:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.hero-search button { flex-shrink: 0; }
.section-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.section-card h3 { display: flex; align-items: center; gap: .55rem; }
.hero-device {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.hero-device img { display: block; width: 100%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0,0,0,.22)); }

.section-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 1rem; }
.section-header h2 { font-size: 1.35rem; color: #101827; }

.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 2.4rem; }
.device-card { background: rgba(255,255,255,.96); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; min-height: 315px; box-shadow: 0 8px 24px rgba(17,24,39,.06); transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; }
.device-card:hover { box-shadow: var(--box-shadow-lg); border-color: #b8c9e2; transform: translateY(-3px); }
.device-card .device-card-image { display: block; }
.device-card .device-card-image img { width: 100%; height: 150px; object-fit: contain; margin-bottom: .85rem; background: var(--surface-soft); border-radius: 8px; padding: .5rem; }
.device-card .device-card-body { display: flex; flex-direction: column; flex: 1; }
.device-card h3 { font-size: 1rem; margin-bottom: .45rem; color: #101827; line-height: 1.25; }
.device-card .brand { color: var(--text-light); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .45rem; }
.device-card .specs { color: var(--text-light); font-size: .88rem; }
.device-card .device-card-price { font-weight: 700; font-size: 1.05rem; color: var(--primary-color); margin-bottom: .5rem; }
.device-card .device-card-facts { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.device-card .fact-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--bg-light); border: 1px solid var(--border-color); color: var(--text-color); font-size: .78rem; border-radius: 20px; padding: .18rem .55rem; }
.device-card .fact-chip i { color: var(--primary-color); font-size: .72rem; }
/* Name the field before its value: a bare number is not a buyer fact. */
.device-card .fact-chip .fact-chip-label { opacity: .68; font-size: .92em; margin-inline-end: .15rem; }
.device-card .btn-compare-toggle { margin-top: auto; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: .85rem; margin-bottom: 2.4rem; }
.brand-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 1.1rem; text-align: left; box-shadow: 0 6px 18px rgba(17,24,39,.05); }
.brand-card:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.brand-card h3 { color: #101827; font-size: 1rem; }
.brand-card .count { color: var(--text-light); font-size: .85rem; margin-top: .2rem; }

.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; padding: 1rem 0; margin-bottom: var(--spacing-md); font-size: var(--font-size-sm); color: var(--text-light); }
.breadcrumb-item + .breadcrumb-item::before { content: '>'; padding: 0 var(--spacing-sm); color: #98a2b3; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary-color); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mt-2 { margin-top: var(--spacing-md); }

.site-footer { background: #101827; color: white; margin-top: var(--spacing-xxl); }
.footer-main { padding: var(--spacing-xxl) 0; }
.footer-main h4 { color: #dbeafe; margin-bottom: var(--spacing-md); }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: #a8b5c7; }
.footer-links a:hover { color: #fff; }
.footer-bottom { background: #0b1220; padding: var(--spacing-md) 0; border-top: 1px solid rgba(255,255,255,.08); color: #a8b5c7; }

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --accent-color: #22c55e;
    --secondary-color: #f8fafc;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --border-color: #334155;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --surface-soft: #1e293b;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --box-shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
}

[data-theme="dark"] body {
    background: linear-gradient(180deg, #1e293b 0, rgba(15, 23, 42, 0) 360px), var(--bg-light);
}

[data-theme="dark"] .site-header {
    background: rgba(30, 41, 59, .94);
    border-bottom-color: #334155;
}

[data-theme="dark"] .header-main .logo {
    color: #f8fafc;
}

[data-theme="dark"] .main-nav {
    background: #1e293b;
    border-top-color: #334155;
}

[data-theme="dark"] .search-box input {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] .device-card, [data-theme="dark"] .brand-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .device-card h3, [data-theme="dark"] .brand-card h3, [data-theme="dark"] .section-header h2 {
    color: #f8fafc;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: .25rem .55rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

/* Scroll to Top */
#scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
    z-index: 995;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s;
}

#scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
    .container { padding: 0 var(--spacing-md); }
    .header-main .d-flex { flex-direction: column; align-items: stretch; gap: .9rem; }
    .search-box { margin: 0; max-width: none; }
    .mobile-menu-toggle { display: block; }
    .main-nav { display: none; }
    .main-nav.active { display: block; }
    .main-nav ul { gap: var(--spacing-lg); overflow-x: auto; flex-direction: column; padding: 1rem 0; }
    /* Grouped nav becomes an accordion on mobile: submenus flow in-page. */
    .main-nav .nav-group:hover > .nav-submenu,
    .main-nav .nav-group:focus-within > .nav-submenu { display: none; }
    .main-nav .nav-group.open > .nav-submenu { display: block; }
    .nav-submenu {
        position: static;
        min-width: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 3rem 0 2.5rem; }
    .hero-section h1 { font-size: 2.25rem; }
    .hero-device { display: none; }
    .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 { flex: 0 0 100%; max-width: 100%; }
}

/* Q3 UI pass — mobile layout refinements (tokenized, touch-first). */
@media (max-width: 820px) {
    .hero-section h1 { font-size: 1.9rem; }
    .hero-section { padding: 2.5rem 0 2.25rem; }
    .hero-section p { font-size: 1rem; }
    .hero-search { flex-direction: column; }
    .hero-search input { min-height: 48px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: .6rem; margin: 1.5rem 0 .9rem; }
    .device-grid { gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .device-card { min-height: 0; padding: .8rem; }
    .device-card .device-card-image img { height: 120px; }
    .fact-chip { font-size: .74rem; }
    .sort-bar { margin-bottom: .85rem; }
    .btn, .btn-sm { min-height: 44px; }
    .breadcrumb { font-size: .82rem; margin-top: .75rem; }
}

/* ============================================================
   Consent banner & config-gated ad slots (Phase 12, item 2185)
   ============================================================ */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #101827;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
    padding: 1rem 0;
}
.consent-banner__inner,
.consent-banner__actions,
.consent-banner__manage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}
.consent-banner__body { flex: 1 1 100%; }
.consent-banner__title { margin: 0 0 .25rem; font-weight: 700; font-size: 1.05rem; }
.consent-banner__text { margin: 0; color: #cbd5e1; font-size: .9rem; line-height: 1.5; }
.consent-banner__manage {
    flex: 1 1 100%;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .75rem;
}
.consent-cat {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: #e2e8f0;
}
.consent-banner .btn-link { color: #93c5fd; }

/* Ad slots ship invisible (they contain nothing until a configured, consenting
   visitor triggers client-side injection). Only the empty wrapper reserves space. */
.ad-slot { min-height: 1px; margin: var(--spacing-lg) auto; text-align: center; }
.ad-slot[data-ad-required="0"] { display: none; }

/* ============================================================
   RTL support (Phase 12, item 2774 — Arabic)
   dir="rtl" + .rtl-layout mirrors flex/grid automatically; these
   overrides handle the few physical-property values that do not.
   ============================================================ */
html[dir="rtl"] .toast-container { left: auto; right: 25px; }
html[dir="rtl"] #scroll-to-top { right: auto; left: 25px; }
html[dir="rtl"] .compare-badge { margin-left: 0; margin-right: .25rem; }
html[dir="rtl"] .nav-submenu { padding-left: 0; padding-right: 1rem; }

/* Arabic typography: numeric tabular rendering + a slightly larger, tighter
   line-height for Naskh-style glyphs; keep digits readable in tables. */
html[dir="rtl"] body { line-height: 1.6; }
html[dir="rtl"] .spec-table td,
html[dir="rtl"] .spec-table th { font-variant-numeric: tabular-nums; }

/* Site-wide homepage hierarchy and category-world surfaces. */
.home-hero { position: relative; overflow: hidden; padding: 5.2rem 0 4.2rem; background: radial-gradient(circle at 78% 25%, rgba(255,255,255,.16), transparent 20%), linear-gradient(125deg, #101827 0%, #172554 48%, #155e75 100%); }
.home-hero::after { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -260px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.03), 0 0 0 76px rgba(255,255,255,.025); }
.hero-kicker, .category-eyebrow, .section-eyebrow { font-size: .73rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; color: #93c5fd; margin-bottom: .9rem; }
.hero-kicker { color: #bae6fd; display: flex; align-items: center; gap: .5rem; }
.hero-kicker-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.14); }
.home-hero h1 { max-width: 680px; font-size: clamp(2.6rem, 5vw, 4.7rem); letter-spacing: -.055em; }
.home-hero p { max-width: 650px; font-size: 1.14rem; line-height: 1.7; }
.home-hero .btn-primary { background: #fff; border-color: #fff; color: #16213b; }
.home-hero .btn-primary:hover { background: #e0f2fe; border-color: #e0f2fe; }
.home-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.home-hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.home-hero-panel { position: relative; z-index: 1; min-height: 360px; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; padding: 1.35rem; background: linear-gradient(160deg, rgba(255,255,255,.15), rgba(255,255,255,.04)); box-shadow: 0 30px 80px rgba(0,0,0,.3); display: flex; flex-direction: column; justify-content: space-between; }
.hero-panel-label { color: #dbeafe; font-size: .82rem; font-weight: 700; }
.hero-panel-orbit { position: relative; width: 260px; height: 260px; margin: .6rem auto; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025); }
.hero-panel-orbit::before { content: ''; position: absolute; inset: 28px; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; }
.orbit-center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #2563eb; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.orbit-dot { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 1.35rem; }
.orbit-dot-one { top: 10px; left: 38px; }.orbit-dot-two { top: 28px; right: 20px; }.orbit-dot-three { bottom: 18px; right: 28px; }.orbit-dot-four { bottom: 10px; left: 42px; }
.hero-panel-footer { color: #cbd5e1; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.16); padding-top: .85rem; }.hero-panel-footer strong { color: #fff; font-size: 1rem; }.hero-panel-footer span { padding: 0 .35rem; color: #64748b; }
.section-eyebrow { color: var(--primary-color); margin-bottom: .35rem; }.home-section-intro { max-width: 700px; margin-bottom: 1.25rem; }
.world-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.world-card { --world-color: #2563eb; position: relative; min-height: 235px; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--box-shadow-sm); display: flex; flex-direction: column; color: var(--text-color); overflow: hidden; }
.world-card::after { content: ''; position: absolute; width: 100px; height: 100px; right: -32px; bottom: -38px; border-radius: 50%; background: var(--world-color); opacity: .1; }.world-card:hover { transform: translateY(-4px); border-color: var(--world-color); box-shadow: var(--box-shadow); color: var(--text-color); }.world-card--mobile-wearable-tech { --world-color: #e45757; }.world-card--computing-connected-home { --world-color: #2563eb; }.world-card--entertainment-imaging { --world-color: #7c3aed; }.world-card--electric-mobility { --world-color: #0f766e; }.world-card--energy-power { --world-color: #d97706; }
.world-card-top { display: flex; justify-content: space-between; align-items: center; }.world-icon { font-size: 1.75rem; line-height: 1; }.world-arrow { color: var(--world-color); font-size: .8rem; }.world-card h3 { margin: 1.35rem 0 .5rem; font-size: 1rem; line-height: 1.25; color: var(--text-strong); }.world-card p { color: var(--text-light); font-size: .82rem; line-height: 1.5; margin-bottom: 1rem; }.world-meta { margin-top: auto; color: var(--text-light); font-size: .72rem; }.world-meta strong { color: var(--world-color); }.world-meta span { padding: 0 .25rem; color: #b4c0d0; }
.home-tool-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 16px; background: var(--surface); }.tool-strip-card { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; }.tool-strip-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: var(--primary-color); background: var(--surface-soft); }.tool-strip-card strong, .tool-strip-card span { display: block; }.tool-strip-card strong { font-size: .85rem; color: var(--text-strong); }.tool-strip-card div span { color: var(--text-light); font-size: .75rem; margin-top: .2rem; }

.category-page { min-height: 100%; }.category-hero { background: linear-gradient(145deg, var(--category-soft), #fff 72%); border-bottom: 1px solid var(--border-color); padding-bottom: 2.25rem; }.category-hero .breadcrumb { margin-bottom: 1.3rem; }.category-eyebrow { color: var(--category-accent); }.category-hero-content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: end; }.category-hero h1 { font-size: clamp(2.2rem, 4vw, 3.65rem); letter-spacing: -.045em; color: #101827; margin-bottom: .65rem; }.category-promise { color: #344054; font-size: 1.12rem; font-weight: 650; margin-bottom: .7rem; }.category-description { max-width: 700px; color: var(--text-light); line-height: 1.65; margin-bottom: 1.1rem; }.category-hero-cta { background: var(--category-accent); border-color: var(--category-accent); }.category-hero-cta:hover { filter: brightness(.94); }.category-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 1rem; border: 1px solid rgba(16,24,40,.1); border-radius: 16px; background: rgba(255,255,255,.72); }.category-hero-stats div { padding: .35rem .55rem; border-left: 1px solid var(--border-color); }.category-hero-stats div:first-child { border-left: 0; }.category-hero-stats strong, .category-hero-stats span { display: block; }.category-hero-stats strong { color: var(--category-accent); font-size: 1.45rem; }.category-hero-stats span { color: var(--text-light); font-size: .68rem; line-height: 1.3; }.category-summary { display: none; }
.category-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: .9rem; }.category-section-card { display: grid; grid-template-columns: 44px 1fr auto; gap: .75rem; align-items: center; padding: 1rem; min-height: 92px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--surface); color: var(--text-color); box-shadow: var(--box-shadow-sm); }.category-section-card:hover { border-color: var(--category-accent); transform: translateY(-2px); color: var(--text-color); }.category-section-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--category-soft); color: var(--category-accent); font-size: 1.35rem; }.category-section-card h3 { font-size: .95rem; color: var(--text-strong); margin-bottom: .22rem; }.category-section-card .count { color: var(--text-light); font-size: .77rem; }.category-section-arrow { color: var(--category-accent); font-size: .8rem; }.roadmap-note { color: var(--text-light); font-size: .78rem; }.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .65rem; }.roadmap-card { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border: 1px dashed var(--border-color); border-radius: 12px; background: rgba(255,255,255,.55); }.roadmap-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--category-soft); color: var(--category-accent); }.roadmap-card strong, .roadmap-card span { display: block; }.roadmap-card strong { color: var(--text-strong); font-size: .82rem; }.roadmap-card span { color: var(--text-light); font-size: .7rem; margin-top: .12rem; }

@media (max-width: 980px) { .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.world-card { min-height: 205px; }.category-hero-content { grid-template-columns: 1fr 320px; } }
@media (max-width: 720px) { .home-hero { padding: 3.5rem 0 3rem; }.hero-grid { grid-template-columns: 1fr; }.home-hero-panel { min-height: 300px; }.hero-panel-orbit { width: 210px; height: 210px; }.world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.home-tool-strip { grid-template-columns: 1fr; }.category-hero-content { grid-template-columns: 1fr; gap: 1rem; }.category-hero-stats { max-width: 440px; }.category-hero h1 { font-size: 2.35rem; } }
@media (max-width: 460px) { .world-grid { grid-template-columns: 1fr; }.world-card { min-height: 180px; }.hero-search { flex-direction: column; }.hero-search button { width: 100%; }.category-hero-stats { grid-template-columns: repeat(3, 1fr); }.category-hero-stats strong { font-size: 1.15rem; } }
