/* AiOpt design system — shared by every page.
   Edit here, not in individual Blade views. */

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

:root {
    --page:        #ffffff;
    --page-alt:    #f4f5f6;
    --ink:         #0a0d0f;
    --ink-soft:    #11171a;
    --accent:      #00e0c6;
    --accent-deep: #06b39d;

    --on-light:       #0a0d0f;
    --on-light-muted: #5b6469;
    --on-dark:        #ffffff;
    --on-dark-muted:  rgba(255, 255, 255, 0.62);

    --line-light: rgba(10, 13, 15, 0.10);
    --line-dark:  rgba(255, 255, 255, 0.12);

    --r-panel: 32px;
    --r-card:  20px;
    --r-btn:   10px;   /* one radius for every interactive control */

    --gutter: clamp(20px, 3vw, 40px);
    --pad-y:  clamp(64px, 7.5vw, 132px);
    --pad-x:  clamp(24px, 4.5vw, 88px);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--page);
    color: var(--on-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Plus Jakarta Sans has no basic Cyrillic block, so the Bulgarian
   page is set entirely in Manrope — one consistent face per language
   rather than a per-glyph mix mid-sentence. */
html[lang="bg"] body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------------------------------------------------------------
   Typography
---------------------------------------------------------------- */
.display {
    font-size: clamp(2.6rem, 5.4vw, 4.25rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.032em;
}

.h2 {
    font-size: clamp(2rem, 3.7vw, 3.05rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.028em;
}

.h3 {
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.lead {
    font-size: clamp(1.02rem, 1.25vw, 1.18rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--on-light-muted);
}

.panel-dark .lead { color: var(--on-dark-muted); }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.muted { color: var(--on-light-muted); }
.panel-dark .muted { color: var(--on-dark-muted); }

/* ---------------------------------------------------------------
   Layout primitives
---------------------------------------------------------------- */
.shell { padding: 0 var(--gutter); }

/* Anchor targets must clear the fixed nav */
[id] { scroll-margin-top: calc(66px + 20px); }

.panel {
    max-width: 1400px;
    margin: 0 auto var(--gutter);
    border-radius: var(--r-panel);
    padding: var(--pad-y) var(--pad-x);
    position: relative;
    overflow: hidden;
}

.panel-dark {
    background: var(--ink);
    color: var(--on-dark);
}

.panel-light {
    background: var(--page-alt);
    color: var(--on-light);
}

.panel-plain {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

/* Ambient accent glow used inside dark panels.
   Scoped to .panel so it outranks `.hero > *`, which would otherwise
   make it position:relative and add it to the flex flow as dead space. */
.panel .glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.5;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
}

/* ---------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 0.95rem 1.35rem;
    border-radius: var(--r-btn);
    font-size: 0.98rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
    white-space: nowrap;
}

.btn svg { flex: none; }

.btn-accent {
    background: var(--accent);
    color: var(--ink);
}
.btn-accent:hover { background: #4defd6; transform: translateY(-1px); }

.btn-ghost-dark {
    border-color: var(--line-dark);
    color: var(--on-dark);
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.05); }

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

.btn-sm { padding: 0.62rem 1.05rem; gap: 0.6rem; font-size: 0.9rem; }

/* Outlined square arrow control */
.arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r-btn);
    border: 1px solid var(--line-dark);
    display: grid;
    place-items: center;
    flex: none;
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.arrow-btn:hover { border-color: var(--accent); background: rgba(0, 224, 198, 0.09); transform: translateX(2px); }
.panel-light .arrow-btn { border-color: var(--line-light); }

/* Keyboard focus for every interactive control */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-btn);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap .25s ease;
}
.text-link:hover { gap: 0.85rem; }

/* ---------------------------------------------------------------
   Navigation — floating glass pill
---------------------------------------------------------------- */
/* Full-width bar that rides transparently over the hero panel,
   then firms into a solid bar once you scroll past it. */
.nav-wrap {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding-top: var(--gutter);
    border-bottom: 1px solid transparent;
    transition: padding-top .3s ease, background-color .3s ease, border-color .3s ease;
}

.nav-wrap.is-stuck {
    padding-top: 0;
    background: rgba(10, 13, 15, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    height: 74px;
    padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: #fff;
    transition: height .3s ease;
}

.nav-wrap.is-stuck .nav { height: 66px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.brand svg { width: 26px; height: 26px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.94rem;
}
.nav-links a { color: rgba(255, 255, 255, 0.76); transition: color .2s ease; }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Language switcher */
.lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--r-btn);
    border: 1px solid var(--line-dark);
    margin-right: 0.35rem;
}
.lang a {
    padding: 0.3rem 0.55rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.62);
    transition: color .2s ease, background-color .2s ease;
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero {
    margin-top: var(--gutter);
    /* clear the overlaying nav bar at every breakpoint */
    padding-top: calc(74px + clamp(36px, 4.5vw, 72px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(44px, 5vw, 72px);
    background: radial-gradient(120% 90% at 78% 22%, #123037 0%, #0b1417 44%, var(--ink) 78%);
}

#neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.42;
    pointer-events: none;
    /* Keep the field off the headline — it reads strongest on the right. */
    -webkit-mask-image: linear-gradient(to right, transparent 6%, rgba(0,0,0,.30) 34%, #000 72%);
            mask-image: linear-gradient(to right, transparent 6%, rgba(0,0,0,.30) 34%, #000 72%);
}

.hero > * { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 30rem; margin-bottom: 2.4rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

.notice {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 30rem;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--on-dark-muted);
}
.notice strong { color: #fff; font-weight: 500; }

/* Live console card */
.console {
    border-radius: var(--r-card);
    border: 1px solid var(--line-dark);
    background: rgba(12, 20, 22, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(22px, 2.4vw, 32px);
}

.console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-dark);
}

.console-label { font-size: 0.8rem; color: var(--on-dark-muted); }

.pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--accent);
}
.pulse i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 224, 198, 0.5); }
    50%      { opacity: .55; box-shadow: 0 0 0 6px rgba(0, 224, 198, 0); }
}

.console-value {
    font-size: clamp(2.2rem, 3.6vw, 2.9rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 1.5rem 0 0.35rem;
    font-variant-numeric: tabular-nums;
}

.console-sub { font-size: 0.88rem; color: var(--on-dark-muted); margin-bottom: 1.75rem; }

.console-rows { display: grid; gap: 0.85rem; }

.console-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.9rem;
}
.console-row span:first-child { display: inline-flex; align-items: center; gap: 0.7rem; color: rgba(255,255,255,0.82); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.up { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Stat strip */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--line-dark);
}
.stat-label { font-size: 0.85rem; color: var(--on-dark-muted); margin-bottom: 0.2rem; }
.stat-value { font-size: clamp(1rem, 1.3vw, 1.16rem); font-weight: 500; letter-spacing: -0.015em; }

/* ---------------------------------------------------------------
   Logo strip
---------------------------------------------------------------- */
.logo-strip {
    max-width: 1400px;
    margin: 0 auto var(--gutter);
    padding: clamp(40px, 5vw, 64px) var(--pad-x);
    text-align: center;
}
.logo-strip p { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-light-muted); margin-bottom: 2rem; }
.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}
.logo-row span {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    color: rgba(10, 13, 15, 0.34);
    transition: color .3s ease;
}
.logo-row span:hover { color: rgba(10, 13, 15, 0.68); }

/* ---------------------------------------------------------------
   Rule-divided feature columns
---------------------------------------------------------------- */
.rule-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 44px);
    margin-top: clamp(48px, 6vw, 80px);
}

.rule-col {
    padding-left: clamp(20px, 2vw, 32px);
    border-left: 1px solid var(--line-dark);
}
.panel-light .rule-col { border-left-color: var(--line-light); }

.rule-col-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-badge {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.rule-col h3 { margin-bottom: 0.9rem; }
.rule-col p { font-size: 0.96rem; color: var(--on-dark-muted); }
.panel-light .rule-col p { color: var(--on-light-muted); }

/* ---------------------------------------------------------------
   Product cards
---------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: clamp(44px, 5vw, 68px);
}

.product-card {
    border-radius: var(--r-card);
    border: 1px solid var(--line-light);
    background: #fff;
    padding: clamp(28px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.product-card:hover {
    border-color: rgba(10, 13, 15, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 24px 60px -30px rgba(10, 13, 15, 0.35);
}

.product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.product-name { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.product-kind { font-size: 0.85rem; color: var(--on-light-muted); margin-top: 0.15rem; }

.product-card > p { color: var(--on-light-muted); font-size: 0.98rem; margin-bottom: 1.75rem; }

.spec-list { display: grid; gap: 0.05rem; margin-bottom: 2rem; }
.spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.94rem;
}
.spec:last-child { border-bottom: 0; }
.spec dt { color: var(--on-light-muted); }
.spec dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

.product-card .text-link { margin-top: auto; color: var(--ink); }
.product-card .text-link:hover { color: var(--accent-deep); }

/* ---------------------------------------------------------------
   Bento grid
---------------------------------------------------------------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: clamp(44px, 5vw, 68px);
}

.tile {
    border-radius: var(--r-card);
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.035);
    padding: clamp(26px, 2.8vw, 38px);
    transition: border-color .3s ease, background-color .3s ease;
}
.tile:hover { border-color: rgba(0, 224, 198, 0.38); background: rgba(0, 224, 198, 0.05); }
.tile-span-2 { grid-column: span 2; }
.tile h3 { margin: 1.1rem 0 0.7rem; }
.tile p { font-size: 0.95rem; color: var(--on-dark-muted); }

.tile-metric {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------
   Testimonials
---------------------------------------------------------------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: clamp(44px, 5vw, 68px);
}

.quote-card {
    border-radius: var(--r-card);
    border: 1px solid var(--line-light);
    background: #fff;
    padding: clamp(26px, 2.8vw, 38px);
    display: flex;
    flex-direction: column;
}

.quote-card blockquote {
    font-size: 1.06rem;
    line-height: 1.5;
    letter-spacing: -0.015em;
    margin-bottom: 2rem;
}

.quote-meta { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line-light); }
.quote-meta strong { display: block; font-weight: 500; font-size: 0.98rem; }
.quote-meta span { font-size: 0.88rem; color: var(--on-light-muted); }
.quote-result {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    background: rgba(0, 224, 198, 0.14);
    color: var(--accent-deep);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------------------------------------------------------------
   FAQ
---------------------------------------------------------------- */
.faq { margin-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line-light); }

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

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.55rem 3rem 1.55rem 0;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    font-weight: 400;
    letter-spacing: -0.018em;
    position: relative;
    transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }

.faq summary::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 12px; height: 12px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }

.faq-body { padding: 0 4rem 1.75rem 0; color: var(--on-light-muted); font-size: 0.99rem; max-width: 64ch; }

/* ---------------------------------------------------------------
   Closing CTA
---------------------------------------------------------------- */
.cta-panel {
    text-align: center;
    background: radial-gradient(100% 130% at 50% 0%, #12363c 0%, #0b1518 45%, var(--ink) 80%);
}
.cta-panel h2 { max-width: 20ch; margin: 0 auto 1.25rem; }
.cta-panel .lead { max-width: 46ch; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(56px, 6vw, 88px) var(--pad-x) clamp(32px, 4vw, 48px);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--line-light);
}

.footer-intro p { font-size: 0.95rem; color: var(--on-light-muted); max-width: 30ch; margin-top: 1.1rem; }

.footer h4 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-light-muted);
    margin-bottom: 1.15rem;
}
.footer li { margin-bottom: 0.7rem; }
.footer li a { font-size: 0.95rem; color: var(--on-light); transition: color .2s ease; }
.footer li a:hover { color: var(--accent-deep); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: clamp(24px, 3vw, 36px);
    font-size: 0.88rem;
    color: var(--on-light-muted);
}

.socials { display: flex; gap: 0.5rem; }
.socials a {
    width: 38px; height: 38px;
    border-radius: var(--r-btn);
    border: 1px solid var(--line-light);
    display: grid;
    place-items: center;
    transition: border-color .25s ease, color .25s ease;
}
.socials a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------
   Reveal on scroll
---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .rule-cols, .quote-grid { grid-template-columns: 1fr; }
    .rule-col { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line-dark); }
    .panel-light .rule-col { border-top-color: var(--line-light); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-span-2 { grid-column: span 2; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    :root { --r-panel: 24px; }
    /* Anchor links drop out below 760px. The nav keeps only the
       language switcher and the CTA — adding a menu button here
       overflows the bar once translated CTAs get longer. */
    .nav-links { display: none; }
    .lang { margin-right: 0.2rem; }
    .nav { gap: 0.75rem; padding: 0 clamp(16px, 4vw, 24px); }
    .product-grid, .bento { grid-template-columns: 1fr; }
    .tile-span-2 { grid-column: span 1; }
    .hero { min-height: 0; }
    .btn { flex: 1 1 auto; justify-content: center; gap: 0.75rem; }
    .footer-top { grid-template-columns: 1fr; }
    .faq summary { padding-right: 2.5rem; }
    .faq-body { padding-right: 0; }
}
    

/* ---------------------------------------------------------------
   Footer contact + legal
---------------------------------------------------------------- */
.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.5rem;
}
.footer-phones a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--on-light);
    transition: color .2s ease;
}
.footer-phones a:hover { color: var(--accent-deep); }
.footer-phones svg { color: var(--accent-deep); flex: none; }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--on-light-muted); transition: color .2s ease; }
.footer-legal a:hover { color: var(--ink); }

/* ---------------------------------------------------------------
   Sub-page header — same panel language as the home hero
---------------------------------------------------------------- */
.page-head {
    margin-top: var(--gutter);
    padding-top: calc(74px + clamp(44px, 5vw, 88px));
    background: radial-gradient(120% 90% at 78% 18%, #123037 0%, #0b1417 46%, var(--ink) 80%);
}

.page-head .eyebrow { display: block; margin-bottom: 1.1rem; }
.page-head h1 { max-width: 18ch; margin-bottom: 1.4rem; }
.page-head .lead { max-width: 52ch; }

.page-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
}

/* Generic prose block for legal / long-form pages */
.prose { max-width: 68ch; }
.prose h2 {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 2.75rem 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--on-light-muted); margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.1rem 1.1rem; }
.prose li {
    position: relative;
    color: var(--on-light-muted);
    margin-bottom: 0.6rem;
    padding-left: 1rem;
}
.prose li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.62em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-deep);
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gutter);
    margin-top: clamp(40px, 5vw, 64px);
}
.contact-card {
    border-radius: var(--r-card);
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.035);
    padding: clamp(24px, 2.6vw, 34px);
}
.panel-plain .contact-card,
.panel-light .contact-card {
    border-color: var(--line-light);
    background: #fff;
}
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.95rem; color: var(--on-dark-muted); margin-bottom: 1.25rem; }
.panel-plain .contact-card p,
.panel-light .contact-card p { color: var(--on-light-muted); }

.contact-value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.contact-value + .contact-value { margin-top: 0.7rem; }

/* Simple two-column list used on careers / case-study pages */
.stack-list { margin-top: clamp(40px, 5vw, 64px); }
.stack-item {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(24px, 3vw, 38px) 0;
    border-top: 1px solid var(--line-light);
}
.panel-dark .stack-item { border-top-color: var(--line-dark); }
.stack-item:last-child { border-bottom: 1px solid var(--line-light); }
.panel-dark .stack-item:last-child { border-bottom-color: var(--line-dark); }
.stack-item h3 { margin-bottom: 0.4rem; }
.stack-item .muted { font-size: 0.92rem; }
.stack-item p { color: var(--on-light-muted); }
.panel-dark .stack-item p { color: var(--on-dark-muted); }

@media (max-width: 1080px) {
    .page-head-grid { grid-template-columns: 1fr; align-items: start; }
    .stack-item { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 760px) {
    .footer-legal { gap: 1rem; }
}
