/* ── Design tokens ──────────────────────────────────────────── */
:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --card-bg: #243049;
}

/* ── Layout ─────────────────────────────────────────────────── */
.service-page {
    color: var(--text-primary);
    font-family: var(--font-sans, "Space Grotesk", sans-serif);
}

.svc-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.svc-section {
    padding: clamp(56px, 8vw, 112px) 0;
    border-top: 1px solid var(--surface-border);
}

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.svc-copy h2,
.svc-center h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.svc-copy p,
.svc-center p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.svc-copy p:last-child,
.svc-center p:last-child { margin-bottom: 0; }

.lede {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

blockquote {
    border-left: 3px solid var(--accent-2);
    margin: 1.5rem 0 0;
    padding: 0.75rem 0 0.75rem 1.25rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
}

blockquote span {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 600;
}

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ────────────────────────────────────────────────── */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.primary-btn {
    background: var(--amber);
    color: #000;
    border: none;
    font-weight: 700;
}

.primary-btn:hover {
    background: var(--amber-dark);
    color: #000;
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    font-weight: 500;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* ── Hero ───────────────────────────────────────────────────── */
.svc-hero {
    padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 6vw, 80px);
}

.svc-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: var(--amber);
    flex-shrink: 0;
}

.svc-hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 2rem;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-trust span::before {
    content: "✓";
    color: var(--amber);
    font-size: 0.8rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 1.1rem 1rem;
}

.hero-stat__value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.hero-stat__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.4rem;
}

.hero-stat__desc {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Hero device frame */
.svc-hero__media { position: relative; }

.hero-device {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    position: relative;
}

.hero-device__screen {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.hero-device__screen img {
    width: 100%;
    display: block;
}

.hero-device__badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.65);
    color: var(--accent-2);
    border-radius: 5px;
    padding: 4px 9px;
}

.hero-device__card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    max-width: 200px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-device__card-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.4rem;
}

.hero-device__card-text {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ── Two-column content sections ────────────────────────────── */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.svc-grid--flip { direction: rtl; }
.svc-grid--flip > * { direction: ltr; }

.svc-center {
    max-width: 720px;
    margin: 0 auto 3rem;
}

/* ── Media card ─────────────────────────────────────────────── */
.media-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
}

.media-card img {
    width: 100%;
    display: block;
}

/* ── Compare slider ─────────────────────────────────────────── */
.compare-stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: ew-resize;
    user-select: none;
    border: 1px solid var(--surface-border);
}

.compare-stage__layer {
    position: absolute;
    inset: 0;
}

.compare-stage__layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.compare-stage__layer--thermal { clip-path: inset(0 50% 0 0); }

.compare-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 4px;
    padding: 3px 7px;
    pointer-events: none;
}

.compare-tag--right { left: auto; right: 10px; }

.compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    pointer-events: none;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.panel-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.6rem;
}

/* ── Drone demo ─────────────────────────────────────────────── */
.drone-demo-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    margin-top: 2rem;
    background: #09090f;
}

.drone-demo-wrap canvas {
    display: block;
    width: 100%;
}

.drone-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    color: var(--accent-2);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.drone-demo__hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* ── Pipeline ───────────────────────────────────────────────── */
.pipeline {
    display: flex;
    align-items: stretch;
    margin: 2.5rem 0;
}

.pipeline-step {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-right: none;
    padding: 1.5rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}

.pipeline-step:first-child { border-radius: 14px 0 0 14px; }
.pipeline-step:last-child  { border-right: 1px solid var(--surface-border); border-radius: 0 14px 14px 0; }

.pipeline-step--capture::before,
.pipeline-step--ai::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.pipeline-step--capture::before { background: var(--accent-2); }
.pipeline-step--ai::before      { background: var(--accent); }

.pipeline-step__bg {
    position: absolute;
    bottom: -0.5rem;
    right: 0.4rem;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    opacity: 0.04;
    pointer-events: none;
    letter-spacing: -0.04em;
    user-select: none;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
}

.pipeline-step__num {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pipeline-step--capture .pipeline-step__num { color: var(--accent-2); }
.pipeline-step--ai .pipeline-step__num      { color: var(--accent); }

.pipeline-step__icon { font-size: 1.2rem; line-height: 1; margin: 0.2rem 0; }

.pipeline-step__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.pipeline-step__desc {
    font-size: 0.73rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ── Fault grid ─────────────────────────────────────────────── */
.fault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--surface-border);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
}

.fault-card {
    background: var(--card-bg);
    padding: 1.5rem;
}

.fault-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-bottom: 0.85rem;
}

.fault-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.fault-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ── Deliverables ───────────────────────────────────────────── */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--surface-border);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
}

.deliverable-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
}

.deliverable-card:hover { border-left-color: var(--accent); }

.deliverable-index {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--surface-border);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.deliverable-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--text-primary);
}

.deliverable-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ── Comparison table ───────────────────────────────────────── */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
}

.cmp-table thead {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.cmp-table th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--surface-border);
}

.cmp-table td {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-muted);
    vertical-align: middle;
}

.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--text-primary) 2%, transparent); }
.cmp-table td:first-child { color: var(--text-primary); font-weight: 500; }

.cmp-accent { color: var(--accent-2); font-weight: 600; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-wrap {
    padding: clamp(64px, 10vw, 120px) 0;
    border-top: 1px solid var(--surface-border);
    text-align: center;
}

.cta-wrap h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.cta-wrap p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

.cta-wrap .button-row { justify-content: center; }

.cta-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.cta-meta span {
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .svc-hero__grid,
    .svc-grid { grid-template-columns: 1fr; }

    .svc-grid--flip { direction: ltr; }

    .hero-device__card { right: 0; bottom: -16px; }

    .fault-grid { grid-template-columns: repeat(2, 1fr); }

    .pipeline { flex-direction: column; }
    .pipeline-arrow { display: none; }
    .pipeline-step {
        border-right: 1px solid var(--surface-border);
        border-bottom: none;
        border-radius: 0 !important;
    }
    .pipeline-step:first-child { border-radius: 14px 14px 0 0 !important; }
    .pipeline-step:last-child  { border-bottom: 1px solid var(--surface-border); border-radius: 0 0 14px 14px !important; }
    .pipeline-step--capture::before,
    .pipeline-step--ai::before { top: 0; left: 0; bottom: 0; right: auto; width: 3px; height: auto; }
}

@media (max-width: 560px) {
    .fault-grid { grid-template-columns: 1fr; }
    .button-row { flex-direction: column; }
    .button-row .btn { width: 100%; justify-content: center; }
}

.is-hidden { display: none !important; }
