/* ═══════════════════════════════════════════════
   Technobot Maintenance — v1.5
   Modern / Interactive refresh
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

:root {
    --bg: #f9fafb;
    --ink: #0b1120;
    --ink-2: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --red: #e91d2d;
    --red-dark: #b81422;
    --red-glow: rgba(233,29,45,.18);
    --green: #22c55e;
    --surface: rgba(255,255,255,.72);
    --surface-solid: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
    --shadow: 0 20px 60px rgba(15,23,42,.10);
    --shadow-lg: 0 32px 88px rgba(15,23,42,.14);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 30px;
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --ease-out: cubic-bezier(.2,.8,.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100svh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ── Background layers ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(226,232,240,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226,232,240,.5) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-blobs::before {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    top: -140px; left: -80px;
    background: radial-gradient(circle, rgba(233,29,45,.09) 0%, transparent 65%);
    animation: blobDrift 18s ease-in-out infinite alternate;
}
.bg-blobs::after {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    bottom: -100px; right: -60px;
    background: radial-gradient(circle, rgba(99,102,241,.07) 0%, transparent 65%);
    animation: blobDrift 22s ease-in-out infinite alternate-reverse;
}
@keyframes blobDrift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Cursor glow ── */
.cursor-glow {
    position: fixed;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,29,45,.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity .3s ease;
    will-change: transform;
}

/* ── Particle canvas ── */
.orb-canvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
}

/* ── Shell ── */
.maintenance-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 96px));
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 72px 0;
}

/* ── Brand mark ── */
.brand-mark {
    position: fixed;
    z-index: 10;
    top: 28px;
    left: max(48px, calc((100vw - 1200px) / 2));
    display: inline-flex;
    align-items: center;
    transition: transform .3s var(--ease-spring), opacity .3s ease;
}
.brand-mark:hover { transform: translateY(-2px) scale(1.03); opacity: .85; }
.brand-mark img {
    width: auto; height: auto;
    max-width: 176px; max-height: 54px;
    display: block; object-fit: contain;
}

/* ── Nav pill ── */
.nav-pill {
    position: fixed;
    z-index: 10;
    top: 28px;
    right: max(48px, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    border-radius: 999px;
    padding: 7px 7px 7px 16px;
    box-shadow: var(--shadow-sm);
    animation: fadeDown .7s var(--ease-out) .3s both;
}
.nav-pill-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}
.nav-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, transform .2s var(--ease-spring);
    white-space: nowrap;
}
.nav-pill-btn:hover { background: var(--red); transform: scale(1.04); }
.nav-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34,197,94,.5);
    animation: pulse 2s infinite;
}

/* ── Hero grid ── */
.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(350px, 440px);
    align-items: center;
    gap: clamp(56px, 6vw, 96px);
}

/* ── Status pill ── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(233,29,45,.20);
    background: rgba(255,255,255,.9);
    color: var(--red-dark);
    backdrop-filter: blur(16px);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 4px 20px var(--red-glow);
    animation: fadeUp .6s var(--ease-out) .1s both;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

/* ── Eyebrow ── */
.eyebrow {
    margin: 30px 0 16px;
    color: var(--red);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 10.5px;
    animation: fadeUp .6s var(--ease-out) .2s both;
}

/* ── Headline ── */
h1 {
    font-size: clamp(32px, 3.1vw, 46px);
    line-height: 1.22;
    letter-spacing: -.01em;
    font-weight: 700;
    max-width: 640px;
    text-wrap: balance;
    animation: fadeUp .6s var(--ease-out) .3s both;
}
h1 .word { display: inline-block; }
.cursor-blink {
    display: inline-block;
    width: 3px;
    height: .9em;
    background: var(--red);
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 3px;
    animation: blink .9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Subtitle ── */
.hero-subtitle {
    margin: 22px 0 0;
    max-width: 600px;
    color: #475569;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.85;
    font-weight: 400;
    animation: fadeUp .6s var(--ease-out) .4s both;
}

/* ── Progress strip (mobile) ── */
.progress-strip {
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}
.progress-strip-label { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.progress-strip-bar { flex: 1; height: 7px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-strip-bar span {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--red), #ff6b78);
    transition: width 1.6s var(--ease-out);
}
.progress-strip-value { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── CTA row ── */
.cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 36px;
    animation: fadeUp .6s var(--ease-out) .5s both;
}
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    padding: 0 24px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 24px rgba(11,17,32,.22);
    transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.primary-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
    pointer-events: none;
}
.primary-btn:hover {
    background: var(--red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(233,29,45,.28);
}
.primary-btn svg { flex-shrink: 0; transition: transform .2s var(--ease-spring); }
.primary-btn:hover svg { transform: translateX(3px); }

.phone-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    transition: background .2s ease, border-color .2s ease, transform .25s var(--ease-spring), color .2s ease;
}
.phone-line:hover { background: rgba(255,255,255,.95); border-color: rgba(233,29,45,.3); color: var(--red-dark); transform: translateY(-2px); }

/* ── Launch note ── */
.launch-note {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 28px;
    max-width: 580px;
    font-size: 14px;
    font-weight: 400;
    animation: fadeUp .6s var(--ease-out) .6s both;
}

/* ── Capability cards ── */
.capability-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 32px;
    max-width: 600px;
    animation: fadeUp .6s var(--ease-out) .7s both;
}
.capability-row article {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 20px 18px;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease-spring), border-color .2s ease, box-shadow .3s ease;
}
.capability-row article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red) 0%, #ff4655 100%);
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: inherit;
}
.capability-row article:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(233,29,45,.3); box-shadow: 0 16px 40px rgba(233,29,45,.14); }
.capability-row article:hover::before { opacity: 1; }
.capability-row article span,
.capability-row article strong { position: relative; z-index: 1; transition: color .3s ease; }
.capability-row article:hover span,
.capability-row article:hover strong { color: #fff; }
.capability-row span {
    display: block;
    color: var(--red);
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'DM Mono', monospace;
}
.capability-row strong {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
}

/* ══════════════════════════════════════
   STATUS CARD (right column)
   ══════════════════════════════════════ */
.status-card { perspective: 1400px; }
.glass-card {
    border: 1px solid rgba(255,255,255,.85);
    background: linear-gradient(145deg, rgba(255,255,255,.9) 0%, rgba(248,250,252,.88) 100%);
    backdrop-filter: blur(28px) saturate(1.6);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9);
    transform-style: preserve-3d;
    animation: fadeLeft .7s var(--ease-out) .4s both;
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(233,29,45,.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Card header */
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.card-header-label { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.card-header-pct {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.card-header-pct sup { font-size: 16px; font-weight: 600; vertical-align: top; margin-top: 4px; display: inline-block; }

/* Progress bar */
.progress-track {
    height: 8px;
    background: #e9eef4;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}
.progress-track-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red) 0%, #ff6b78 100%);
    transition: width 1.8s var(--ease-out);
    position: relative;
}
.progress-track-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45));
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { opacity: 0; transform: translateX(-40px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(10px); }
}

/* Metric tiles */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.metric-tile {
    background: rgba(248,250,252,.9);
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    cursor: default;
    transition: transform .25s var(--ease-spring), border-color .2s ease, background .2s ease;
}
.metric-tile:hover { transform: translateY(-3px); border-color: rgba(233,29,45,.2); background: #fff; }
.metric-tile b {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}
.metric-tile small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 4px; line-height: 1.4; }

/* Signal list */
.signal-list { display: grid; gap: 8px; }
.signal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: rgba(255,255,255,.75);
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    transition: background .2s ease, border-color .2s ease, transform .25s var(--ease-spring);
    cursor: default;
}
.signal-item:hover { background: #fff; border-color: rgba(34,197,94,.3); transform: translateX(4px); }
.signal-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(34,197,94,.15);
    flex-shrink: 0;
    animation: signalPulse 2.5s ease-in-out infinite;
}
.signal-item:nth-child(2) .signal-dot { animation-delay: .4s; }
.signal-item:nth-child(3) .signal-dot { animation-delay: .8s; }
@keyframes signalPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
    50%      { box-shadow: 0 0 0 7px rgba(34,197,94,.08); }
}

/* Card divider */
.card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    margin: 20px 0;
}

/* Live badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.2);
    color: #16a34a;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}
.live-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(233,29,45,.4); }
    70%      { box-shadow: 0 0 0 10px rgba(233,29,45,0); }
}

/* ── Desktop overflow lock ── */
@media (min-width: 981px) and (min-height: 760px) {
    body { overflow: hidden; }
}
@media (max-height: 760px) and (min-width: 981px) {
    .maintenance-shell { padding: 44px 0; align-items: center; }
    .brand-mark { top: 20px; }
    h1 { font-size: clamp(30px, 2.8vw, 40px); }
    .glass-card { padding: 22px 26px; }
    .card-header-pct { font-size: 30px; }
}

/* ── Tablet ── */
@media (max-width: 980px) {
    .maintenance-shell { display: block; width: min(100% - 52px, 740px); padding: 32px 0 48px; }
    .brand-mark { position: relative; top: auto; left: auto; margin-top: 16px; margin-bottom: 28px; }
    .brand-mark img { max-width: 158px; max-height: 48px; }
    .nav-pill { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .status-card { display: none; }
    .progress-strip { display: flex; }
    h1 { max-width: 680px; }
    .hero-copy { animation: none; opacity: 1; transform: none; }
    body { overflow: hidden; }
}

/* ── Mobile ── */
@media (max-width: 620px) {
    .maintenance-shell { width: min(100% - 32px, 540px); padding: 24px 0 36px; }
    .brand-mark img { max-width: 146px; max-height: 42px; }
    .status-pill { font-size: 12px; padding: 8px 13px; }
    .eyebrow { margin: 22px 0 12px; font-size: 10px; letter-spacing: .13em; }
    h1 { font-size: clamp(26px, 7.2vw, 33px); line-height: 1.24; }
    .hero-subtitle { font-size: 14.5px; line-height: 1.72; }
    .cta-row { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 10px; }
    .primary-btn, .phone-line { width: 100%; min-height: 50px; justify-content: center; }
    .launch-note { font-size: 13.5px; line-height: 1.65; margin-top: 20px; }
    .capability-row {
        grid-template-columns: repeat(3,1fr);
        gap: 8px;
        margin-top: 20px;
        max-width: 100%;
    }
    .capability-row article { padding: 14px 11px; border-radius: 16px; }
    .capability-row span { font-size: 10.5px; margin-bottom: 4px; }
    .capability-row strong { font-size: 13px; }
}

/* ── Very small ── */
@media (max-width: 400px) {
    .capability-row { grid-template-columns: 1fr; gap: 7px; }
    .capability-row article {
        display: grid;
        grid-template-columns: 28px 1fr;
        align-items: center;
        gap: 8px;
        padding: 12px 13px;
    }
    .capability-row span { margin: 0; }
}
