@import url("styles.base.css");

.bg-photo-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bg-photo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--section-bg-image);
  background-size: cover;
  background-position: center;
  opacity: .18;
  z-index: -2;
}

.bg-photo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6,13,20,.96), rgba(6,13,20,.78)),
    radial-gradient(circle at 70% 30%, rgba(0,212,242,.16), transparent 45%);
  z-index: -1;
}

.bg-photo-section > * {
  position: relative;
  z-index: 1;
}

.bg-photo-section.bg-photo-strong::before {
  opacity: .28;
}

.bg-photo-section.bg-photo-soft::before {
  opacity: .12;
}

.bg-photo-section > .hero-grid,
.bg-photo-section > .cta-radial,
.bg-photo-section > .cta-grid,
.bg-photo-section > .cta-ghost {
  position: absolute;
  z-index: 0;
}

.proof-image {
  margin: 0;
  border-radius: var(--r);
  border: 1px solid var(--bd);
  overflow: hidden;
  background: var(--surf);
  box-shadow: var(--sh-md);
}

.proof-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-caption {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-top: .5rem;
}

#hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 9vh, 108px) 0 clamp(56px, 8vh, 84px);
}

#hero .hero-bg {
  background:
    radial-gradient(ellipse 55% 60% at 68% 35%, rgba(0,212,242,.12) 0%, transparent 68%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(0,130,180,.10) 0%, transparent 60%),
    linear-gradient(160deg, rgba(11,28,45,.74) 0%, rgba(6,13,20,.80) 55%, rgba(4,9,15,.88) 100%);
}

.hero-bg,
.hero-grid,
.hero-orb,
.noise,
.hero-ghost-word {
  position: absolute;
  pointer-events: none;
}

.page-hero.bg-photo-section,
#cta.bg-photo-section {
  background: transparent;
}

.cs-visuals-balanced {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cs-visual-slot.proof-image {
  padding: 0;
  display: block;
}

.cs-visual-slot.proof-image::before {
  display: none;
}

.cs-visual-slot.proof-image img {
  position: static;
}

.cs-visual-slot .proof-caption,
.role-proof .proof-caption {
  position: absolute;
  left: .65rem;
  bottom: .6rem;
  margin: 0;
  padding: .24rem .42rem;
  max-width: calc(100% - 1.3rem);
  color: var(--tx-2);
  background: rgba(6,13,20,.84);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  line-height: 1.35;
  z-index: 2;
}

.role-proof {
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  position: relative;
  z-index: 1;
}

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

*,
*::before,
*::after {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.hero-hl,
.hero-sub,
.sec-hl,
.sec-sub,
.b-title,
.b-desc,
.proj-title,
.proj-desc,
.step-name,
.step-desc,
.why-pt-title,
.why-pt p,
.cta-title,
.cta-sub,
.page-title,
.page-sub {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 768px) {
  .wrap {
    width: min(100% - 1.25rem, 1200px);
  }

  #hero {
    min-height: auto;
    padding: 88px 0 52px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .hero-tag {
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
    align-items: flex-start;
  }

  .hero-hl {
    font-size: clamp(2.25rem, 14vw, 3.4rem);
    line-height: .98;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-sub,
  .hero-tag,
  .hero-stat-lbl,
  .dash-title,
  .dp-main,
  .dp-sub {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat {
    min-width: 0;
    padding: .75rem .65rem;
  }

  .hero-stat:nth-child(2) {
    border-right: none;
  }

  .hero-stat:nth-child(1),
  .hero-stat:nth-child(2) {
    border-bottom: 1px solid var(--bd);
  }

  .hero-stat-val,
  .hero-stat-lbl {
    overflow-wrap: anywhere;
  }

  .hero-dash {
    width: 100%;
    max-width: 100%;
  }

  .hero-dash > div {
    padding: 0 !important;
  }

  .dash-card {
    max-width: 100%;
  }

  .dash-hdr {
    gap: .75rem;
    align-items: flex-start;
  }

  .dash-title,
  .dash-live {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dash-metrics {
    grid-template-columns: 1fr;
  }

  .dash-pill {
    position: static;
    width: 100%;
    margin-top: .75rem;
    white-space: normal;
  }

  .dp-1,
  .dp-2 {
    animation: none;
  }

  .dp-main,
  .dp-sub {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .marquee-wrap {
    mask-image: none;
  }

  .m-item {
    padding: 1rem 1.25rem;
  }

  .m-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .bento,
  .proj-grid,
  .process-grid,
  .why-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .b-ai,
  .b-iot,
  .b-emb,
  .b-e2e {
    grid-column: auto;
    grid-row: auto;
  }

  .b-e2e {
    flex-direction: column;
    gap: 1.25rem;
  }

  .b-badge-strip {
    min-width: 0;
    width: 100%;
  }

  .proj-top {
    flex-direction: column;
  }

  .proj-metric-big {
    text-align: left;
  }

  .proc-panel {
    position: relative;
    top: auto;
    padding: 1.25rem;
  }

  .pv-row {
    flex-wrap: wrap;
  }

  .pv-bar-outer {
    flex-basis: 100%;
    order: 4;
  }

  .hero-ghost-word,
  .ghost-num {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 1rem, 1200px);
  }

  #hero {
    padding-top: 82px;
  }

  .hero-hl {
    font-size: clamp(2.1rem, 16vw, 3rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: none !important;
    border-bottom: 1px solid var(--bd);
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .btn {
    padding: .75rem 1rem;
    font-size: .95rem;
  }

  .dash-hdr,
  .dash-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media(max-width:768px) {
  body.menu-open .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 199;
    padding: 1.35rem 2rem;
    background: rgba(6,13,20,.97);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    backdrop-filter: blur(24px);
  }

  .cs-visual-slot.proof-image {
    aspect-ratio: 16 / 9;
  }
}


/* ===== Legal / Trust pages ===== */
.legal-hero{position:relative;overflow:hidden;padding:150px 0 80px;background:var(--bg-lift)}
.legal-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.8fr);gap:2rem;align-items:start}
.legal-sidebar{position:sticky;top:6rem;background:var(--surf);border:1px solid var(--bd);border-radius:var(--r);padding:1.25rem}
.legal-sidebar-title{font-family:var(--f-mono);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cy);margin-bottom:.85rem}
.legal-sidebar a{display:block;font-family:var(--f-mono);font-size:.72rem;color:var(--tx-2);padding:.55rem 0;border-bottom:1px solid var(--bd)}
.legal-sidebar a:last-child{border-bottom:none}.legal-sidebar a:hover{color:var(--cy)}
.legal-content{display:flex;flex-direction:column;gap:1rem}.legal-card{background:var(--surf);border:1px solid var(--bd);border-radius:var(--r);padding:1.6rem;position:relative;overflow:hidden}
.legal-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,212,242,.045),transparent 60%);opacity:.75;pointer-events:none}.legal-card>*{position:relative;z-index:1}
.legal-card h2,.legal-card h3{font-family:var(--f-dis);text-transform:uppercase;letter-spacing:.02em;color:var(--tx);line-height:1.1;margin-bottom:.75rem}.legal-card h2{font-size:1.45rem}.legal-card h3{font-size:1.1rem;margin-top:1.1rem}
.legal-card p,.legal-card li{color:var(--tx-2);font-size:.92rem;line-height:1.75}.legal-card ul{padding-left:1.1rem;margin-top:.65rem}
.legal-summary{background:rgba(0,212,242,.07);border:1px solid var(--cy-bd);border-radius:var(--r);padding:1.4rem}
.legal-summary-title{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cy);margin-bottom:.5rem}
.legal-note{background:var(--bg);border:1px solid var(--bd);border-left:3px solid var(--cy);border-radius:var(--r-sm);padding:1rem;color:var(--tx-2);font-size:.85rem;line-height:1.65;margin-top:1rem}
.policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.policy-mini-card{background:var(--bg-lift);border:1px solid var(--bd);border-radius:var(--r-sm);padding:1rem}
.policy-mini-card-title{font-family:var(--f-dis);font-weight:700;text-transform:uppercase;color:var(--tx);line-height:1.1;margin-bottom:.4rem}.policy-mini-card p{font-size:.82rem;color:var(--tx-2);line-height:1.65}
.trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.trust-principle{background:var(--surf);border:1px solid var(--bd);border-radius:var(--r);padding:1.35rem}
.trust-principle-num{font-family:var(--f-dis);font-weight:800;font-size:2.4rem;color:transparent;-webkit-text-stroke:1px rgba(0,212,242,.22);line-height:1;margin-bottom:.5rem}
.trust-principle-title{font-family:var(--f-dis);font-weight:700;text-transform:uppercase;color:var(--tx);line-height:1.1;margin-bottom:.5rem}.trust-principle p{color:var(--tx-2);font-size:.86rem;line-height:1.68}
@media (max-width:900px){.legal-layout{grid-template-columns:1fr}.legal-sidebar{position:relative;top:auto}.policy-grid,.trust-grid{grid-template-columns:1fr}.legal-hero{padding:120px 0 60px}}
