/* My Auto DJ homepage (2026 datacenter redesign)
   Used only by index.php via beta/header_home.php + beta/footer_home.php */

:root {
    --bg: #080b10;
    --bg-2: #0c1017;
    --panel: #10151d;
    --panel-2: #151c26;
    --line: #1f2835;
    --line-2: #2b3646;
    --text: #c5cedb;
    --muted: #8491a3;
    --dim: #5d6979;
    --white: #f2f5f9;
    --accent: #f97316;
    --accent-hi: #fb923c;
    --accent-soft: rgba(249, 115, 22, 0.12);
    --ok: #22c55e;
    --info: #38bdf8;
    --radius: 6px;
    --wrap: 1280px;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, video { max-width: 100%; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 2rem;
}

.mono { font-family: var(--mono); }

.led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    font-family: var(--sans);
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--accent); color: #140a02; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hi); }

.btn-quiet { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--line-2); color: var(--white); }

.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* ---------- Utility bar ---------- */
.topbar {
    background: #05070a;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    position: relative;
    z-index: 1002;
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 38px;
}

.topbar-left { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.topbar-item { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.topbar-item a { color: var(--text); text-decoration: none; }
.topbar-item a:hover { color: var(--accent-hi); }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }

/* Currency selector */
.currency-selector { position: relative; }

.currency-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.6rem;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.75rem;
    cursor: pointer;
}

.currency-btn:hover { border-color: var(--accent); }
.currency-btn .currency-code { color: var(--white); font-weight: 600; }
.currency-btn i { font-size: 0.6rem; color: var(--dim); }

.currency-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 0.35rem;
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    font-family: var(--sans);
}

.currency-selector.open .currency-dropdown,
.currency-selector:hover .currency-dropdown { display: block; }

/* invisible bridge so hover survives the 6px gap */
.currency-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
}

.currency-option:hover { background: var(--panel-2); color: var(--white); }
.currency-option.active { background: var(--accent-soft); }
.currency-option .currency-info { flex: 1; }
.currency-option .currency-name { font-size: 0.85rem; font-weight: 500; }
.currency-option .currency-symbol { font-size: 0.72rem; color: var(--dim); font-family: var(--mono); }
.currency-option i.fa-check { color: var(--ok); font-size: 0.7rem; opacity: 0; }
.currency-option.active i.fa-check { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 11, 16, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: var(--radius);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
}

.nav-link:hover,
.nav-group:hover > .nav-link,
.nav-group:focus-within > .nav-link { color: var(--white); background: var(--panel-2); }

.nav-link i { font-size: 0.6rem; color: var(--dim); }

.nav-group { position: relative; }

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 340px;
    padding-top: 10px;
    display: none;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu { display: block; }

.nav-menu-inner {
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 0.4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.nav-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border-radius: 4px;
    text-decoration: none;
}

.nav-item:hover { background: var(--panel-2); }

.nav-item-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--accent-hi);
    font-size: 0.85rem;
    background: var(--bg-2);
}

.nav-item strong { display: block; color: var(--white); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.nav-item span.sub { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }

.nav-item .tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent-hi);
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 3px;
    padding: 0.05rem 0.3rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0.6rem 0.55rem;
}

.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 4.5rem 0 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 0%, rgba(249, 115, 22, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
        var(--bg);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero h1 em { font-style: normal; color: var(--accent-hi); }

.hero-lede {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-lede strong { color: var(--white); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.hero-note { font-size: 0.875rem; color: var(--muted); }
.hero-note a { color: var(--accent-hi); text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* Console frame around the live player */
.console {
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--bg-2);
}

.console-bar .live { display: flex; align-items: center; gap: 0.45rem; color: var(--ok); font-weight: 600; letter-spacing: 0.08em; }
.console-bar .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.console video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

.console-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted);
}

.console-foot a { color: var(--accent-hi); text-decoration: none; white-space: nowrap; }
.console-foot a:hover { text-decoration: underline; }

/* Spec strip */
.specs {
    position: relative;
    margin-top: 4rem;
    border-top: 1px solid var(--line);
    background: rgba(12, 16, 23, 0.8);
}

.specs .wrap { display: grid; grid-template-columns: repeat(6, 1fr); }

.spec { padding: 1.25rem 1.25rem 1.25rem 0; border-right: 1px solid var(--line); }
.spec + .spec { padding-left: 1.25rem; }
.spec:last-child { border-right: none; }

.spec dt {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.2rem;
}

.spec dd { font-size: 1.05rem; font-weight: 600; color: var(--white); }

/* ---------- Announcements ---------- */
.ticker {
    display: flex;
    align-items: stretch;
    height: 40px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #05070a;
    overflow: hidden;
    font-size: 0.83rem;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.1rem;
    border-right: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent-hi);
    flex-shrink: 0;
}

.ticker-wrapper { flex: 1; overflow: hidden; }

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.5rem;
    text-decoration: none;
    color: var(--text);
    border-right: 1px solid var(--line);
    height: 100%;
}

.ticker-item:hover { color: var(--white); background: var(--panel); }
.ticker-date { font-family: var(--mono); font-size: 0.7rem; color: var(--dim); text-transform: uppercase; }

.ticker-all {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.1rem;
    border-left: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.ticker-all:hover { color: var(--accent-hi); }
.ticker-all i { font-size: 0.6rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 3rem; }

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.section-head p { font-size: 1.05rem; color: var(--muted); }

/* ---------- Flagship platforms ---------- */
.flagships { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.unit {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.unit:hover { border-color: var(--line-2); }

.unit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.unit-bar span:first-child { display: flex; align-items: center; gap: 0.55rem; }
.unit-bar .slot { color: var(--dim); }

.unit-body { padding: 1.5rem 1.25rem 1.25rem; flex: 1; }

.unit-title { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }

.unit-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--accent-hi);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.unit h3 { font-size: 1.45rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; line-height: 1.2; }
.unit-tagline { color: var(--text); font-size: 0.95rem; margin-bottom: 1.25rem; min-height: 3.1em; }

.unit-specs { border-top: 1px solid var(--line); }

.unit-specs div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
}

.unit-specs dt {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    padding-top: 0.2rem;
}

.unit-specs dd { color: var(--text); }

.unit-foot { padding: 1.1rem 1.25rem 1.25rem; background: var(--bg-2); border-top: 1px solid var(--line); }

.unit-price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.2rem; }
.unit-price .from { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.unit-price .amount { font-size: 1.75rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.unit-price .per { color: var(--muted); font-size: 0.9rem; }
.unit-price .amount.text { font-size: 1.15rem; letter-spacing: 0; }
.unit-price-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; min-height: 1.3em; }

.unit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* ---------- Website builder ---------- */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.builder h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1rem;
}

.builder p { color: var(--text); margin-bottom: 1rem; max-width: 540px; }

.builder-list { list-style: none; margin: 1.5rem 0; border-top: 1px solid var(--line); }

.builder-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.builder-list i { color: var(--ok); font-size: 0.8rem; padding-top: 0.35rem; }
.builder-list strong { color: var(--white); font-weight: 600; }

.builder-fine { font-size: 0.85rem; color: var(--muted); }
.builder-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.prompt-card {
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    font-family: var(--mono);
    font-size: 0.83rem;
}

.prompt-card .console-bar { justify-content: space-between; }
.prompt-body { padding: 1.25rem; display: grid; gap: 0.9rem; }

.prompt-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.35rem; }

.prompt-box {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--bg);
    padding: 0.9rem 1rem;
    color: var(--white);
    line-height: 1.65;
}

.prompt-box .caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1.1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.prompt-steps { display: grid; gap: 0.45rem; color: var(--muted); }
.prompt-steps div { display: flex; gap: 0.6rem; }
.prompt-steps .ok { color: var(--ok); }
.prompt-caption { font-family: var(--sans); font-size: 0.78rem; color: var(--dim); padding: 0.7rem 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Smart Stream scheduler ---------- */
.scheduler-section { border-bottom: 1px solid var(--line); }
.scheduler { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: center; }

.scheduler h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1rem;
}

.scheduler p { color: var(--text); margin-bottom: 1rem; max-width: 540px; }

.scheduler-console { min-width: 0; }
.scheduler-embed { background: var(--bg); min-height: 320px; overflow-x: auto; }
.scheduler-embed iframe { display: block; width: 100%; border: 0; }

/* ---------- Service catalog ---------- */
.catalog-group { margin-bottom: 2.5rem; }
.catalog-group:last-child { margin-bottom: 0; }

.catalog-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-2);
}

.catalog-head i { color: var(--accent-hi); }
.catalog-head .count { margin-left: auto; color: var(--dim); }

.catalog-row {
    display: grid;
    grid-template-columns: 240px 1fr 150px 28px;
    gap: 1.5rem;
    align-items: center;
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background 0.12s ease;
}

.catalog-row:hover { background: var(--panel); }

.catalog-name { color: var(--white); font-weight: 600; font-size: 0.975rem; }

.catalog-name .tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent-hi);
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 3px;
    padding: 0.08rem 0.35rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}

.catalog-desc { color: var(--muted); font-size: 0.9rem; }

.catalog-price { text-align: right; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.catalog-price b { color: var(--white); font-weight: 600; font-size: 0.95rem; }

.catalog-go { color: var(--dim); font-size: 0.75rem; text-align: right; }
.catalog-row:hover .catalog-go { color: var(--accent-hi); }

.catalog-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.catalog-foot p { color: var(--text); font-size: 0.95rem; }
.catalog-foot p strong { color: var(--white); }

/* ---------- Infrastructure grid ---------- */
.infra {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.infra-cell { padding: 1.75rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.infra-cell i { color: var(--accent-hi); font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.infra-cell h3 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.infra-cell p { color: var(--muted); font-size: 0.9rem; }

.usecases { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.usecases .label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-right: 0.5rem; }
.usecases span.chip { font-size: 0.85rem; color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; padding: 0.3rem 0.7rem; background: var(--panel); }

/* ---------- CTA ---------- */
.cta { padding: 5rem 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(249, 115, 22, 0.1) 0%, transparent 70%), var(--bg); }

.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--white); margin-bottom: 0.75rem; }
.cta p { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.cta-actions { display: grid; gap: 0.75rem; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.cta-meta span { display: flex; align-items: center; gap: 0.5rem; }
.cta-meta i { color: var(--ok); font-size: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: #05070a; border-top: 1px solid var(--line); font-size: 0.9rem; }

.footer-status { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.footer-status .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.footer-status a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-status a:hover { color: var(--accent-hi); }
.footer-status-items { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

.footer-main { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 2.5rem; padding: 3.5rem 0 3rem; }

.footer-brand img { height: 46px; width: auto; display: block; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.25rem; max-width: 300px; }

.footer-social { display: flex; gap: 0.5rem; }

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--muted);
    text-decoration: none;
}

.footer-social a:hover { color: var(--white); border-color: var(--accent); }

.footer-col h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: var(--accent-hi); }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.825rem; }
.footer-bottom strong { color: var(--text); font-weight: 600; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-hi); }
.footer-pay { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; color: var(--dim); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .flagships { grid-template-columns: 1fr; }
    .unit-tagline { min-height: 0; }
    .unit-actions { max-width: 420px; }
    .footer-main { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .infra { grid-template-columns: repeat(2, 1fr); }
    .specs .wrap { grid-template-columns: repeat(3, 1fr); }
    .spec { padding: 1rem 1rem 1rem 0; }
    .spec:nth-child(3n) { border-right: none; }
    .spec:nth-child(3n + 1) { padding-left: 0; }
    .spec:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1024px) {
    .site-header .wrap { gap: 1rem; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1rem 1rem;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line-2);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .site-nav.active { display: flex; }
    .nav-link { width: 100%; justify-content: space-between; padding: 0.85rem 0.75rem; }
    .nav-menu { position: static; width: auto; padding-top: 0; display: none; }
    .nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: none; }
    .nav-group.active .nav-menu { display: block; }
    .nav-menu-inner { box-shadow: none; margin: 0.25rem 0 0.5rem; }
    .mobile-toggle { display: flex; }

    .hero-grid, .builder, .scheduler, .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .catalog-row { grid-template-columns: 200px 1fr 130px 20px; gap: 1rem; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 1.1rem; }
    .topbar-left .topbar-item:not(:first-child) { display: none; }
    .header-actions .btn-outline { display: none; }
    .brand img { height: 38px; }
    .hero { padding-top: 3rem; }
    .section { padding: 3.75rem 0; }
    .specs { margin-top: 3rem; }
    .specs .wrap { grid-template-columns: repeat(2, 1fr); }
    .spec, .spec:nth-child(3n + 1) { padding: 0.9rem 0.9rem 0.9rem 0; border-right: 1px solid var(--line); }
    .spec:nth-child(2n) { border-right: none; padding-left: 0.9rem; }
    .spec:nth-child(n + 3) { border-top: 1px solid var(--line); }

    .catalog-row { grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 0.95rem 0.25rem; }
    .catalog-desc { grid-column: 1 / -1; grid-row: 2; }
    .catalog-go { display: none; }

    .ticker-all { display: none; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 2.5rem 0 2rem; }
    .console-foot { flex-direction: column; gap: 0.25rem; }

    /* Keep the header inside the viewport: an overflowing header makes phones
       zoom the whole page out, which shrinks every piece of text. */
    .site-header .wrap { gap: 0.75rem; height: 64px; }
    .site-nav { max-height: calc(100vh - 64px); }
    .brand { flex-shrink: 1; min-width: 0; }
    .brand img { height: auto; max-height: 38px; max-width: 100%; }
    .header-actions { flex-shrink: 0; }
    .hero-grid, .builder, .scheduler, .cta-inner { grid-template-columns: minmax(0, 1fr); }
    .catalog-row { grid-template-columns: minmax(0, 1fr) auto; }

    /* Larger type on small screens: nothing below 12px, body copy at 16px+ */
    .btn { font-size: 1rem; padding: 0.8rem 1.25rem; }
    .btn-sm { font-size: 0.9rem; padding: 0.55rem 0.9rem; }
    .btn-lg { font-size: 1.05rem; }

    .topbar, .currency-btn { font-size: 0.8rem; }
    .topbar .wrap { height: 42px; }
    .currency-option .currency-name { font-size: 0.95rem; }
    .currency-option .currency-symbol { font-size: 0.8rem; }

    .nav-link { font-size: 1.05rem; }
    .nav-link i { font-size: 0.75rem; }
    .nav-item strong { font-size: 1rem; }
    .nav-item span.sub { font-size: 0.875rem; }
    .nav-item .tag, .catalog-name .tag { font-size: 0.68rem; }

    .eyebrow { font-size: 0.8rem; margin-bottom: 1rem; }
    .hero h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); overflow-wrap: break-word; }
    .hero-lede { font-size: 1.125rem; }
    .hero-note { font-size: 1rem; }
    .console-bar { font-size: 0.8rem; }
    .console-foot { font-size: 0.9rem; }
    .spec dt { font-size: 0.75rem; }
    .spec dd { font-size: 1.1rem; }

    .ticker { height: 44px; font-size: 0.925rem; }
    .ticker-label, .ticker-date { font-size: 0.75rem; }
    .ticker-label { padding: 0 0.85rem; }

    .section-head { margin-bottom: 2.25rem; }
    .section-head h2, .builder h2, .scheduler h2, .cta h2 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
    .section-head p, .cta p { font-size: 1.1rem; }
    .builder p, .scheduler p { font-size: 1.05rem; }

    .unit-bar { font-size: 0.75rem; }
    .unit h3 { font-size: 1.5rem; }
    .unit-tagline { font-size: 1.05rem; }
    .unit-specs div { font-size: 1rem; grid-template-columns: 96px minmax(0, 1fr); }
    .unit-specs dt { font-size: 0.75rem; padding-top: 0.25rem; }
    .unit-price .from { font-size: 0.75rem; }
    .unit-price .per { font-size: 1rem; }
    .unit-price-note { font-size: 0.925rem; }
    .unit-actions { max-width: none; }

    .builder-list li { font-size: 1.025rem; }
    .builder-fine { font-size: 0.925rem; }
    .prompt-card { font-size: 0.9rem; }
    .prompt-label { font-size: 0.75rem; }
    .prompt-caption { font-size: 0.875rem; }

    .catalog-head { font-size: 0.78rem; }
    .catalog-name { font-size: 1.075rem; }
    .catalog-desc { font-size: 1rem; }
    .catalog-price { font-size: 0.9rem; }
    .catalog-price b { font-size: 1rem; }
    .catalog-foot { padding: 1.25rem 1.1rem; }
    .catalog-foot p { font-size: 1.025rem; }

    .infra-cell { padding: 1.4rem 1.1rem; }
    .infra-cell h3 { font-size: 1.075rem; }
    .infra-cell p { font-size: 1rem; }
    .usecases .label { font-size: 0.75rem; width: 100%; }
    .usecases span.chip { font-size: 0.95rem; padding: 0.4rem 0.75rem; }

    .cta { padding: 3.75rem 0; }
    .cta-meta { font-size: 1rem; }

    .site-footer { font-size: 1rem; }
    .footer-status { font-size: 0.8rem; }
    .footer-brand p { font-size: 1rem; max-width: none; }
    .footer-col h4 { font-size: 0.78rem; }
    .footer-col ul { gap: 0.75rem; }
    .footer-col a { font-size: 1rem; }
    .footer-bottom { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .wrap { padding: 0 1rem; }
    .section { padding: 3.25rem 0; }
    .infra { grid-template-columns: 1fr; }
    .unit-actions { grid-template-columns: 1fr; }
    .unit-specs div { grid-template-columns: 88px minmax(0, 1fr); gap: 0.6rem; }

    /* Full-width, wrappable buttons so long labels never push the page wider */
    .btn { white-space: normal; text-align: center; }
    .hero-actions .btn,
    .builder-actions .btn,
    .cta-actions .btn,
    .catalog-foot .btn { width: 100%; }
    .catalog-foot > div { width: 100%; }

    .site-header .wrap { gap: 0.5rem; }
    .header-actions { gap: 0.45rem; }
    .header-actions .btn-sm { padding: 0.55rem 0.7rem; white-space: nowrap; }
    .footer-pay { flex-wrap: wrap; }
}

@media (max-width: 360px) {
    .header-actions .btn-primary i { display: none; }
    .footer-main { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ticker-track, .prompt-box .caret { animation: none; }
}
