@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   TRUTEC LANDING — "night asphalt" measurement system
   Dark asphalt canvas, brand blue, mono survey annotations,
   dashed lane-line motifs. The product footage is the hero.
   ============================================================ */

:root {
    --void: #0b0d10;
    --void-deep: #07090b;
    --panel: #11141a;
    --panel-raised: #161a21;
    --line: rgba(235, 240, 248, 0.09);
    --line-strong: rgba(235, 240, 248, 0.16);
    --text: #eef1f5;
    --text-dim: rgba(238, 241, 245, 0.62);
    --text-faint: rgba(238, 241, 245, 0.38);
    --blue: #1080e8;
    --blue-bright: #4da3ff;
    --blue-glow: rgba(16, 128, 232, 0.35);
    --blue-wash: rgba(16, 128, 232, 0.1);
    --paper: #f2f1ec;
    --ink: #16150f;
    --sans: 'Space Grotesk', -apple-system, sans-serif;
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html { background: var(--void); }

body {
    /* transparent so the fixed aurora layer (z-index -1) shows through */
    background: transparent;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { margin: 0; font-family: var(--sans); }

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2.5rem;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .wrap { padding: 0 1.35rem; }
}

/* dashed lane-line divider */
.lane {
    height: 1px;
    border: none;
    margin: 0;
    background: repeating-linear-gradient(90deg,
        var(--line-strong) 0 28px, transparent 28px 52px);
}

/* ------------------------------------------------------------
   Entrance
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

.no-entrance-anim .reveal,
.no-entrance-anim .reveal.active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ------------------------------------------------------------
   Buttons & links
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-blue {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 0 var(--blue-glow);
}

.btn-blue:hover {
    background: #1a8cf5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px -6px var(--blue-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

/* explicit background: base.html's app-wide .btn-ghost:hover paints a light fill */
.btn-ghost:hover {
    background: rgba(235, 240, 248, 0.06);
    border-color: rgba(235, 240, 248, 0.4);
    color: #fff;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); transform: translateY(-1px); }

.btn-sm { padding: 0.58rem 1.15rem; font-size: 0.86rem; }

.link-arrow {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-bright);
    text-decoration: none;
}

.link-arrow .arr { transition: transform 0.25s ease; }
.link-arrow:hover { color: #7cbcff; }
.link-arrow:hover .arr { transform: translateX(4px); }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.scrolled {
    background: rgba(11, 13, 16, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.05rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    transition: padding 0.35s ease;
}

.site-nav.scrolled .nav-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    text-decoration: none;
    color: var(--text);
}

.nav-brand img { width: 26px; height: 26px; object-fit: contain; display: block; }

.nav-brand .brand-word { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }

.nav-right { display: flex; align-items: center; gap: 1.9rem; }

.nav-menu { display: flex; gap: 1.75rem; }

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu a:hover { color: var(--text); }

.nav-login {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 1023px) {
    .nav-menu { display: none; }
    .nav-right { gap: 1.15rem; }
}

/* ------------------------------------------------------------
   Survey tags (section labels)
   ------------------------------------------------------------ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.tag .tag-num { color: var(--blue-bright); }

.tag::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--blue-bright);
}

.tag.tag-bare::before { display: none; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: 7rem 0; position: relative; }

.section + .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1240px - 5rem, calc(100% - 5rem));
    height: 1px;
    background: repeating-linear-gradient(90deg,
        var(--line-strong) 0 28px, transparent 28px 52px);
}

.section-head { max-width: 640px; margin-bottom: 3.5rem; }

.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-head.centered .tag { justify-content: center; }

.section-head h2 {
    margin-top: 1.4rem;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-head h2 .hl { color: var(--blue-bright); }

.section-head .lede {
    margin: 1.15rem 0 0;
    font-size: 1.03rem;
    line-height: 1.65;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .section { padding: 4.5rem 0; }
    .section-head { margin-bottom: 2.5rem; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    padding: 8.5rem 0 5.5rem;
    text-align: center;
    overflow: hidden;
}

/* faint blueprint grid + blue bloom behind the hero */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 55% 42% at 50% 0%, rgba(16, 128, 232, 0.14), transparent 68%),
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 78%);
    pointer-events: none;
}

.hero-inner { position: relative; }

.hero .tag { justify-content: center; }

.hero h1 {
    margin: 1.4rem auto 0;
    max-width: 17ch;
    font-size: clamp(2.7rem, 6.2vw, 5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero h1 .hl { color: var(--blue-bright); }

.hero-sub {
    margin: 1.5rem auto 0;
    max-width: 56ch;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-dim);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero { padding-top: 7.5rem; }
}

/* ------------------------------------------------------------
   HUD viewport (hero product frame)
   ------------------------------------------------------------ */
.hud {
    position: relative;
    margin: 4rem auto 0;
    max-width: 1080px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 60px 120px -40px rgba(0, 0, 0, 0.8),
        0 0 90px -30px var(--blue-glow);
    overflow: hidden;
}

.hud-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.72rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.hud-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 8px var(--blue-glow);
    flex-shrink: 0;
}

.hud-addr { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hud-status { color: var(--blue-bright); white-space: nowrap; }

.hud-stage { position: relative; }

.hud-stage video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #0a0c0f; }

/* corner ticks */
.hud-stage .tick {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--blue-bright);
    opacity: 0.9;
    pointer-events: none;
}

.hud-stage .tick.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.hud-stage .tick.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.hud-stage .tick.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-stage .tick.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

/* floating measurement chips */
.hud-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 7px;
    border: 1px solid rgba(77, 163, 255, 0.35);
    background: rgba(9, 12, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
    animation: chip-drift 7s ease-in-out infinite;
}

.hud-chip b {
    font-weight: 600;
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.hud-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border: 1.5px solid var(--blue-bright);
    border-radius: 1px;
}

.hud-chip.c2 { animation-delay: 1.4s; }
.hud-chip.c3 { animation-delay: 2.8s; }

@keyframes chip-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width: 720px) {
    .hud-chip { display: none; }
    .hud-top { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hud-chip { animation: none; }
}

/* ------------------------------------------------------------
   Logo marquee (light-ink logos on dark)
   ------------------------------------------------------------ */
.logo-marquee-section {
    margin-top: 3.5rem;
    padding-bottom: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-marquee-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 2.25rem;
}

.logo-marquee {
    position: relative;
    overflow: hidden;
    display: flex;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.logo-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4.5rem;
    padding-right: 4.5rem;
    animation: logo-marquee-scroll 48s linear infinite;
}

.logo-marquee-item {
    height: 42px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
    opacity: 0.95;
    filter: brightness(1.08);
    transition: opacity 0.3s ease;
}

.logo-marquee-item:hover { opacity: 1; }

.logo-marquee-item.tall { height: 58px; }

@keyframes logo-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .logo-marquee-section { margin-top: 2.5rem; }
    .logo-marquee-item { height: 32px; max-width: 108px; }
    .logo-marquee-item.tall { height: 44px; }
    .logo-marquee-group { gap: 2.9rem; padding-right: 2.9rem; animation-duration: 34s; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee-group { animation: none; }
    .logo-marquee { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
}

/* ------------------------------------------------------------
   Site strip
   ------------------------------------------------------------ */
.site-strip { padding: 4rem 0 5rem; overflow: hidden; position: relative; }

.site-strip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1240px - 5rem, calc(100% - 5rem));
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 28px, transparent 28px 52px);
}

.site-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.25rem;
}

.site-strip-track {
    display: flex;
    gap: 1.1rem;
    width: max-content;
    animation: site-strip-scroll 58s linear infinite;
}

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

.site-card {
    width: 330px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
    transition: border-color 0.25s ease;
}

.site-card:hover { border-color: rgba(77, 163, 255, 0.4); }

.site-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    display: block;
}

.site-card-label {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-top: 1px solid var(--line);
}

.site-card-label .idx { color: var(--blue-bright); }

@media (prefers-reduced-motion: reduce) {
    .site-strip-track { animation: none; flex-wrap: wrap; }
}

/* ------------------------------------------------------------
   Plates (simple media frames)
   ------------------------------------------------------------ */
.plate {
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    background: #0a0c0f;
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.85);
}

.plate video, .plate img { width: 100%; display: block; }

video.lazy-video { aspect-ratio: 16 / 9; object-fit: cover; background: #0a0c0f; }

/* ------------------------------------------------------------
   Steps with lane-line connector
   ------------------------------------------------------------ */
.step-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step-row::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: repeating-linear-gradient(90deg,
        rgba(77, 163, 255, 0.45) 0 26px, transparent 26px 48px);
}

.step { position: relative; }

.step .step-pin {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--void);
    border: 1px solid rgba(77, 163, 255, 0.5);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--blue-bright);
    box-shadow: 0 0 22px -6px var(--blue-glow);
}

.step h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.06rem;
    font-weight: 600;
}

.step p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.62;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .step-row { grid-template-columns: 1fr; gap: 2.25rem; }
    .step-row::before { display: none; }
}

/* ------------------------------------------------------------
   Splits & bento
   ------------------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .split { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
    .split .split-media { order: -1; }
}

.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bento-tile {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 1.35rem 1.4rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.bento-tile:hover { border-color: rgba(77, 163, 255, 0.35); background: var(--panel-raised); }

.bento-tile.wide { grid-column: 1 / -1; }

.bento-tile .b-key {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-bright);
}

.bento-tile h3 {
    margin: 0.55rem 0 0.4rem;
    font-size: 0.99rem;
    font-weight: 600;
}

.bento-tile p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.58;
    color: var(--text-dim);
}

@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
}

/* phone plate */
.phone-plate-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.phone-plate {
    width: 285px;
    aspect-ratio: 9 / 19;
    border-radius: 42px;
    border: 1px solid var(--line-strong);
    background: #08090b;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9), 0 0 60px -30px var(--blue-glow);
}

.phone-plate video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 33px;
    display: block;
    background: #08090b;
    aspect-ratio: auto;
}

.media-note {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ------------------------------------------------------------
   Billing panel (dark app card)
   ------------------------------------------------------------ */
.billing-panel {
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.billing-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--line);
}

.billing-panel-head .doc-title { font-weight: 600; font-size: 0.95rem; }

.billing-panel-head .doc-meta {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.billing-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.billing-summary > div {
    padding: 1.05rem 1.4rem;
    border-left: 1px solid var(--line);
}

.billing-summary > div:first-child { border-left: none; }

.billing-summary .amt {
    font-size: 1.3rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.billing-summary .amt.pos { color: #59c98a; }
.billing-summary .amt.due { color: var(--blue-bright); }

.billing-summary .amt-label {
    margin-top: 0.3rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 1.4rem;
    border-bottom: 1px solid var(--line);
}

.invoice-row:last-of-type { border-bottom: none; }

.invoice-row .inv-name { font-weight: 500; font-size: 0.9rem; }

.invoice-row .inv-meta {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.35rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.invoice-row .inv-amt {
    font-weight: 600;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.inv-status { display: inline-flex; align-items: center; gap: 0.4rem; }

.inv-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }

.inv-status.paid { color: #59c98a; }
.inv-status.paid::before { background: #59c98a; }
.inv-status.open { color: var(--blue-bright); }
.inv-status.open::before { background: var(--blue-bright); }

.billing-panel-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--line);
}

.billing-panel-foot .pay-link {
    flex: 1;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-panel-foot .pay-copy {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-bright);
    white-space: nowrap;
}

.billing-sync-note {
    margin-top: 0.9rem;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

@media (max-width: 560px) {
    .billing-panel-head,
    .billing-panel-foot { padding-left: 1rem; padding-right: 1rem; }
    .billing-summary > div { padding: 0.9rem 0.85rem; }
    .billing-summary .amt { font-size: 1.05rem; }
    .billing-summary .amt-label { font-size: 0.55rem; letter-spacing: 0.1em; }
    .invoice-row { padding-left: 1rem; padding-right: 1rem; }
    .invoice-row .inv-meta { gap: 0.6rem; }
}

/* ------------------------------------------------------------
   Waitlist / inputs
   ------------------------------------------------------------ */
.soon-flag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-bright);
    border: 1px solid rgba(77, 163, 255, 0.4);
    border-radius: 5px;
    padding: 0.32rem 0.6rem;
    margin-left: 0.9rem;
    vertical-align: middle;
}

.field-dark {
    width: 100%;
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.85rem 1.05rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.field-dark::placeholder { color: var(--text-faint); }

.field-dark:focus { outline: none; border-color: var(--blue); }

.waitlist-form {
    display: flex;
    gap: 0.7rem;
    max-width: 470px;
    margin: 2rem auto 0;
}

.waitlist-form .field-dark { flex: 1; min-width: 0; }

.form-success {
    display: none;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(89, 201, 138, 0.35);
    border-radius: 8px;
    background: rgba(89, 201, 138, 0.08);
    color: #a9e3c3;
    font-size: 0.92rem;
    margin-top: 2rem;
}

@media (max-width: 560px) {
    .waitlist-form { flex-direction: column; }
}

/* ------------------------------------------------------------
   ROI calculator
   ------------------------------------------------------------ */
.calc-sliders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1rem;
    margin-bottom: 2.5rem;
}

.calc-slider-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 1.15rem 1.3rem 1rem;
}

.calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.9rem;
}

.calc-label {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.calc-value {
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--line-strong);
    outline: none;
    cursor: pointer;
    accent-color: var(--blue);
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue-bright);
    border: none;
    box-shadow: 0 0 12px -2px var(--blue-glow);
    transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

.calc-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue-bright);
    border: none;
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text-faint);
}

.calc-results {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 1rem;
}

.calc-headline {
    border: 1px solid rgba(77, 163, 255, 0.35);
    border-radius: 12px;
    background:
        radial-gradient(ellipse 90% 90% at 15% 0%, rgba(16, 128, 232, 0.16), transparent 70%),
        var(--panel);
    padding: 1.5rem 1.6rem;
}

.calc-headline-label {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.calc-headline-number {
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0.55rem 0 0.35rem;
    color: var(--blue-bright);
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s ease;
}

.calc-headline-number.bump { opacity: 0.55; }

.calc-headline-sub { font-size: 0.88rem; color: var(--text-dim); }

.calc-payback { margin-top: 1.2rem; font-size: 0.84rem; color: var(--text-dim); }

.calc-payback strong { color: var(--text); }

.calc-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 1.5rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.calc-card:hover { border-color: rgba(77, 163, 255, 0.3); }

.calc-card-amount {
    font-size: 1.5rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.calc-card-title {
    margin-top: 0.45rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-bright);
}

.calc-card-desc {
    margin-top: 0.6rem;
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.calc-card-math {
    display: none;
    margin-top: 0.6rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
}

.calc-card.show-math .calc-card-math { display: block; }

.calc-cta { margin-top: 2.5rem; text-align: center; }

@media (max-width: 1024px) {
    .calc-results { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .calc-sliders { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Light band (walkthrough + CTA inversion moment)
   ------------------------------------------------------------ */
.light-band {
    background: var(--paper);
    color: var(--ink);
    padding: 6.5rem 0;
}

.light-band .tag { color: rgba(22, 21, 15, 0.45); }
.light-band .tag .tag-num { color: var(--blue); }
.light-band .tag::before { background: var(--blue); }

.light-band h2 {
    margin-top: 1.4rem;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.light-band h2 .hl { color: var(--blue); }

.light-band .lede {
    margin: 1.15rem 0 0;
    font-size: 1.03rem;
    line-height: 1.65;
    color: rgba(22, 21, 15, 0.65);
    max-width: 46ch;
}

.walkthrough-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.walkthrough-points { margin: 2rem 0 0; padding: 0; list-style: none; }

.walkthrough-points li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.7rem;
    font-size: 0.95rem;
    color: rgba(22, 21, 15, 0.75);
}

.walkthrough-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 14px;
    height: 2px;
    background: var(--blue);
}

.calendly-plate {
    border: 1px solid rgba(22, 21, 15, 0.14);
    border-radius: 14px;
    background: #fff;
    padding: 0.55rem;
    box-shadow: 0 40px 80px -50px rgba(22, 21, 15, 0.5);
}

.calendly-inline-widget {
    min-width: 300px;
    height: 560px;
    border: none;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 900px) {
    .light-band { padding: 4.5rem 0; }
    .walkthrough-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.contact-form-grid .full { grid-column: 1 / -1; }

@media (max-width: 560px) {
    .contact-form-grid { grid-template-columns: 1fr; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list { border-top: 1px solid var(--line-strong); }

.faq-item { border-bottom: 1px solid var(--line-strong); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.45rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--sans);
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text);
}

.faq-question .faq-toggle {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-faint);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--blue-bright); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-answer > div {
    overflow: hidden;
    min-height: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 64ch;
}

.faq-item.active .faq-answer { grid-template-rows: 1fr; }

.faq-item.active .faq-answer > div { padding-bottom: 1.5rem; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
    border-top: 1px solid var(--line-strong);
    background: var(--void-deep);
    padding: 4.5rem 0 2.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.8fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .brand-mark {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-brand .brand-mark img { width: 30px; height: 30px; object-fit: contain; }

.footer-brand p {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 30ch;
}

.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 1.1rem;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.28rem 0;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-col .soon-mini {
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-left: 0.45rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--text-faint);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   AMBIENT MOTION LAYER
   ============================================================ */

/* hero blueprint grid drifts diagonally, very slowly */
@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: grid-drift 90s linear infinite;
    }
}

@keyframes grid-drift {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: 0 0, 72px 72px, 72px 72px; }
}

/* AI scan sweep across the hero video */
.hud-stage::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -18%;
    width: 14%;
    background: linear-gradient(90deg,
        transparent,
        rgba(16, 128, 232, 0.05) 55%,
        rgba(77, 163, 255, 0.14) 96%,
        rgba(120, 190, 255, 0.75) 99.6%,
        transparent);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (prefers-reduced-motion: no-preference) {
    .hud-stage::after {
        animation: hud-scan 8.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    }
}

@keyframes hud-scan {
    0%   { left: -18%; opacity: 0; }
    6%   { opacity: 1; }
    44%  { left: 108%; opacity: 1; }
    50%  { left: 108%; opacity: 0; }
    100% { left: 108%; opacity: 0; }
}

/* dashed lane-lines crawl like road striping under headlights */
@media (prefers-reduced-motion: no-preference) {
    .section + .section::before,
    .site-strip::before {
        animation: lane-crawl 5.5s linear infinite;
    }

    .step-row::before {
        animation: lane-crawl-blue 4.5s linear infinite;
    }
}

@keyframes lane-crawl {
    from { background-position: 0 0; }
    to   { background-position: 52px 0; }
}

@keyframes lane-crawl-blue {
    from { background-position: 0 0; }
    to   { background-position: 48px 0; }
}

/* step pins breathe */
@media (prefers-reduced-motion: no-preference) {
    .step .step-pin {
        animation: pin-breathe 4s ease-in-out infinite;
    }

    .step:nth-child(2) .step-pin { animation-delay: 1.3s; }
    .step:nth-child(3) .step-pin { animation-delay: 2.6s; }
}

@keyframes pin-breathe {
    0%, 100% { box-shadow: 0 0 22px -6px var(--blue-glow); }
    50%      { box-shadow: 0 0 30px -2px var(--blue-glow); }
}

/* hero primary CTA: soft glow breathing */
@media (prefers-reduced-motion: no-preference) {
    .hero-cta .btn-blue {
        animation: cta-breathe 3.6s ease-in-out infinite;
    }
}

.hero-cta .btn-blue:hover { animation-play-state: paused; }

@keyframes cta-breathe {
    0%, 100% { box-shadow: 0 6px 24px -8px var(--blue-glow); }
    50%      { box-shadow: 0 10px 42px -6px rgba(16, 128, 232, 0.55); }
}

/* section tag rule draws in on reveal */
.tag.reveal::before {
    width: 0;
    transition: width 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) 0.25s;
}

.tag.reveal.active::before { width: 22px; }

.no-entrance-anim .tag.reveal::before { width: 22px; transition: none; }

/* site strip images: slow ken-burns on hover */
.site-card { overflow: hidden; }

.site-card img { transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }

.site-card:hover img { transform: scale(1.05); }

/* bento tiles: lift on hover */
.bento-tile { transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s ease; }

.bento-tile:hover { transform: translateY(-3px); }

/* logo marquee items get a touch of life */
.logo-marquee-item { transition: opacity 0.3s ease, transform 0.3s ease; }

.logo-marquee-item:hover { transform: translateY(-3px); }

/* HUD frame: faint idle glow pulse */
@media (prefers-reduced-motion: no-preference) {
    .hud {
        animation: hud-glow 9s ease-in-out infinite;
    }
}

@keyframes hud-glow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4),
                    0 60px 120px -40px rgba(0, 0, 0, 0.8),
                    0 0 90px -30px var(--blue-glow);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4),
                    0 60px 120px -40px rgba(0, 0, 0, 0.8),
                    0 0 130px -25px rgba(16, 128, 232, 0.5);
    }
}

/* ============================================================
   HERO HUD POINTER TILT + LIGHT BAND SWEEP
   ============================================================ */
.hud { will-change: transform; }

.light-band { position: relative; overflow: hidden; }

.light-band::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -30%;
    width: 18%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-12deg);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .light-band::after {
        animation: band-sweep 9s ease-in-out infinite;
    }
}

@keyframes band-sweep {
    0%, 62%  { left: -30%; opacity: 0; }
    66%      { opacity: 1; }
    82%, 100% { left: 118%; opacity: 0; }
}

/* ============================================================
   LIVE LEDGER (real prod aggregates)
   ============================================================ */
.ledger {
    position: relative;
    padding: 4.25rem 0;
}

.ledger::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1240px - 5rem, calc(100% - 5rem));
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 28px, transparent 28px 52px);
}

@media (prefers-reduced-motion: no-preference) {
    .ledger::before { animation: lane-crawl 5.5s linear infinite; }
}

.ledger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.ledger-num {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.ledger-label {
    margin-top: 0.55rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
}

@media (max-width: 768px) {
    .ledger { padding: 3rem 0; }
    .ledger-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ============================================================
   CUSTOMER STORY
   ============================================================ */
.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.story h2 {
    margin-top: 1.4rem;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.story h2 .hl { color: var(--blue-bright); }

.story .lede {
    margin: 1.15rem 0 0;
    font-size: 1.03rem;
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 52ch;
}

.story-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.25rem;
}

.story-brand img { height: 58px; width: auto; opacity: 0.9; }

.story-brand span {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.story-figure { text-align: center; }

.story-x {
    font-size: clamp(6rem, 13vw, 10.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--blue-bright);
    text-shadow: 0 0 70px rgba(16, 128, 232, 0.45);
    font-variant-numeric: tabular-nums;
}

.story-x-label {
    margin-top: 0.9rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

@media (max-width: 900px) {
    .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .story-figure { order: -1; text-align: left; }
}

/* spelled-out unit next to the big ledger number */
.ledger-unit {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--text-dim);
}

/* live-update pulse when a ledger number grows */
.ledger-num { transition: color 0.5s ease, text-shadow 0.5s ease; }

.ledger-num.pulse {
    color: var(--blue-bright);
    text-shadow: 0 0 30px rgba(16, 128, 232, 0.5);
}

@media (max-width: 768px) {
    .ledger-grid { text-align: center; }
}

/* ============================================================
   BACKGROUND ANIMATION LAYER
   ============================================================ */

/* aurora: two slow-drifting blue glows behind the whole page */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-aurora span {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.bg-aurora .a1 {
    width: 70vmax;
    height: 70vmax;
    top: -28vmax;
    left: -18vmax;
    background: radial-gradient(circle, rgba(16, 128, 232, 0.09), transparent 62%);
}

.bg-aurora .a2 {
    width: 58vmax;
    height: 58vmax;
    bottom: -24vmax;
    right: -16vmax;
    background: radial-gradient(circle, rgba(77, 163, 255, 0.06), transparent 62%);
}

@media (prefers-reduced-motion: no-preference) {
    .bg-aurora .a1 { animation: aurora-1 56s ease-in-out infinite; }
    .bg-aurora .a2 { animation: aurora-2 72s ease-in-out infinite; }
}

@keyframes aurora-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(9vmax, 6vmax) scale(1.12); }
    66%      { transform: translate(-4vmax, 10vmax) scale(0.94); }
}

@keyframes aurora-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%      { transform: translate(-10vmax, -7vmax) scale(1.15); }
    75%      { transform: translate(5vmax, -3vmax) scale(0.92); }
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integrations {
    position: relative;
    padding: 5rem 0;
}

.integrations::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1240px - 5rem, calc(100% - 5rem));
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 28px, transparent 28px 52px);
}

@media (prefers-reduced-motion: no-preference) {
    .integrations::before { animation: lane-crawl 5.5s linear infinite; }
}

.integ-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.integ-head h2 {
    margin-top: 1.2rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.integ-head h2 .hl { color: var(--blue-bright); }

.integ-lede {
    margin: 0;
    max-width: 40ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.integ-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.integ-tile {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.3rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    transition: border-color 0.25s ease, transform 0.3s ease, background 0.25s ease;
}

.integ-tile:hover {
    border-color: rgba(77, 163, 255, 0.35);
    background: var(--panel-raised);
    transform: translateY(-3px);
}

.integ-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 0.65rem;
    align-self: flex-start;
}

.integ-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.005em;
}

.integ-role {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.integ-more { border-style: dashed; }

.integ-more .integ-name { color: var(--text-dim); }

@media (max-width: 1024px) {
    .integ-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .integ-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 560px) {
    .integ-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HERO BACKGROUND — night aerial imagery under the survey grid
   ============================================================ */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(118vh, 1150px);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* generative takeoff linework */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* shade: soften linework near edges, dissolve into the page at the bottom */
.hero-bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(11, 13, 16, 0.55) 0%,
            transparent 22%,
            transparent 62%,
            var(--void) 97%);
}

/* layer order: imagery (0) < grid overlay (1) < content (2) */
.hero::before { z-index: 1; }

.hero-inner { z-index: 2; }
