/* =====================================================================
   IYAMIQ — shared design system (light default, dark toggle)
   ===================================================================== */

:root{
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --surface-2: #F4F6F8;
  --border: #E4E8EC;
  --border-2: #D0D6DE;
  --text: #0F1419;
  --muted: #5C6570;
  --muted-2: #6B7480;
  --teal: #087F78;
  --teal-bright: #1AB5A8;
  --blue: #247FAF;
  --violet: #6E46D9;
  --grad: linear-gradient(100deg, var(--teal-bright), var(--violet));
  --grad-soft: linear-gradient(100deg, rgba(8,127,120,.1), rgba(110,70,217,.1));
  --shadow: 0 24px 60px -28px rgba(15,20,25,.12);
  --header-bg: rgba(250,251,252,0.88);
  --maxw: 1180px;
  --r: 12px;
}

[data-theme="dark"]{
  --bg: #0B0E11;
  --surface: #12161B;
  --surface-2: #161B21;
  --border: #20262D;
  --border-2: #2A323B;
  --text: #F5F3EE;
  --muted: #8B92A0;
  --muted-2: #737C88;
  --teal: #2DD8C9;
  --blue: #5BB7F0;
  --violet: #9B6BFF;
  --teal-bright: #2DD8C9;
  --grad: linear-gradient(100deg, var(--teal), var(--violet));
  --grad-soft: linear-gradient(100deg, rgba(45,216,201,.14), rgba(155,107,255,.14));
  --shadow: 0 24px 60px -28px rgba(0,0,0,.7);
  --header-bg: rgba(11,14,17,0.72);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; color-scheme:light; background:var(--bg); }
html[data-theme="dark"]{ color-scheme:dark; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.theme-transition{ transition:background .25s, color .25s; }

h1,h2,h3,h4{
  font-family:'Space Grotesk', system-ui, sans-serif;
  font-weight:600;
  letter-spacing:-0.02em;
  line-height:1.1;
}

p{ overflow-wrap:break-word; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.04em; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.grad-text{
  background:var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
::selection{ background:var(--violet); color:#fff; }
:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; border-radius:4px; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--text); color:var(--bg); padding:10px 16px; border-radius:6px;
}
.skip-link:focus{ left:16px; top:16px; }

/* ---------- ambient background glow ---------- */
.bg-fx{
  position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden;
}
.bg-fx::before, .bg-fx::after{
  content:''; position:absolute; width:60vw; height:60vw; border-radius:50%;
  filter:blur(120px); opacity:.12;
}
.bg-fx::before{ top:-20vw; right:-10vw; background:var(--violet); }
.bg-fx::after{ bottom:-25vw; left:-15vw; background:var(--teal); }
[data-theme="dark"] .bg-fx::before,
[data-theme="dark"] .bg-fx::after{ opacity:.16; }

/* ---------- NAV ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:var(--header-bg);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
nav{ display:flex; align-items:center; justify-content:flex-start; height:72px; gap:20px; }
.brand{ display:flex; align-items:center; gap:11px; font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:1.18rem; flex-shrink:0; }
.brand img{ width:34px; height:34px; flex-shrink:0; }
.brand .wm{
  color:var(--text);
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:1.22rem;
  letter-spacing:-0.035em;
  text-transform:lowercase;
  line-height:1;
}
[data-theme="dark"] .brand .wm{ color:#F5F3EE; }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-links{ display:flex; align-items:center; gap:34px; font-size:0.92rem; color:var(--muted); margin-left:auto; }
.nav-links a{ transition:color .2s; position:relative; }
.nav-links a:hover{ color:var(--text); }
.nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:var(--grad); border-radius:2px;
}
.nav-cta{
  border:1px solid var(--border-2); padding:9px 18px; border-radius:8px;
  font-family:'IBM Plex Mono', monospace; font-size:0.82rem; color:var(--text) !important;
  transition:border-color .2s, background .2s, transform .2s;
}
.nav-cta:hover{ border-color:var(--teal); background:var(--surface); transform:translateY(-1px); }

.theme-toggle{
  width:42px; height:42px; border:1px solid var(--border-2);
  background:var(--surface); border-radius:9px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); transition:border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover{ border-color:var(--teal); color:var(--text); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }

.nav-toggle{
  display:none; width:42px; height:42px; border:1px solid var(--border-2);
  background:var(--surface); border-radius:9px; cursor:pointer;
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.nav-toggle span{ width:18px; height:2px; background:var(--text); border-radius:2px; transition:.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:860px){
  .nav-links{
    position:fixed; top:72px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--header-bg); backdrop-filter:blur(18px);
    border-bottom:1px solid var(--border);
    padding:8px 0 18px; font-size:1.05rem;
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:.25s;
    margin-left:0;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a{ padding:14px 28px; }
  .nav-links a.active::after{ display:none; }
  .nav-links .nav-cta{ margin:10px 28px 0; text-align:center; }
  .nav-toggle{ display:flex; }
}

/* ---------- BUTTONS ---------- */
.btn-primary{
  background:var(--text); color:var(--bg) !important; padding:14px 26px; border-radius:9px;
  font-weight:600; font-size:0.95rem; display:inline-flex; align-items:center; gap:8px;
  transition:transform .2s, box-shadow .2s; border:none; cursor:pointer;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 34px -12px rgba(45,216,201,0.5); }
.btn-grad{
  background:var(--grad); color:#08110F !important; padding:14px 28px; border-radius:9px;
  font-weight:600; font-size:0.95rem; display:inline-flex; align-items:center; gap:8px;
  transition:transform .2s, box-shadow .2s; border:none; cursor:pointer;
}
.btn-grad:hover{ transform:translateY(-2px); box-shadow:0 14px 38px -12px rgba(155,107,255,0.55); }
.btn-ghost{
  color:var(--muted); font-family:'IBM Plex Mono', monospace; font-size:0.88rem;
  border-bottom:1px solid var(--border-2); padding-bottom:3px; display:inline-flex; gap:6px;
  transition:color .2s, border-color .2s;
}
.btn-ghost:hover{ color:var(--text); border-color:var(--teal); }
.btn-outline{
  border:1px solid var(--border-2); padding:13px 24px; border-radius:9px; color:var(--text) !important;
  font-weight:500; font-size:0.92rem; display:inline-flex; align-items:center; gap:8px;
  transition:border-color .2s, background .2s, transform .2s;
}
.btn-outline:hover{ border-color:var(--teal); background:var(--surface); transform:translateY(-2px); }

/* ---------- EYEBROW / TAGS ---------- */
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--teal);
  text-transform:uppercase; letter-spacing:0.14em; margin-bottom:22px;
  display:inline-flex; align-items:center; gap:10px;
}
.eyebrow::before{
  content:''; width:7px; height:7px; border-radius:50%; background:var(--teal);
  box-shadow:0 0 10px var(--teal);
}
.section-tag{
  font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--muted-2);
  text-transform:uppercase; letter-spacing:0.14em; margin-bottom:14px;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero{ padding:150px 0 70px; border-bottom:1px solid var(--border); }
.page-hero h1{ font-size:clamp(2.2rem, 5vw, 3.6rem); margin-bottom:20px; max-width:760px; }
.page-hero p{ color:var(--muted); font-size:1.12rem; max-width:560px; }

/* ---------- HOME HERO ---------- */
.hero{ min-height:92vh; display:flex; align-items:center; padding-top:120px; padding-bottom:70px; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.12fr 0.88fr; gap:48px; align-items:center; }
.hero h1{ font-size:clamp(2.5rem, 5.4vw, 4.4rem); margin-bottom:24px; }
.hero p.lede{ font-size:1.16rem; color:var(--muted); max-width:520px; margin-bottom:34px; }
.hero-cta-row{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:38px; margin-top:46px; flex-wrap:wrap; }
.hero-stats .stat .n{ font-family:'Space Grotesk',sans-serif; font-size:1.7rem; font-weight:700; }
.hero-stats .stat .l{ color:var(--muted); font-size:0.82rem; }

.hero-mark{ display:flex; align-items:center; justify-content:center; position:relative; }
.hero-mark .ring-art--dark{ display:none; }
[data-theme="dark"] .hero-mark .ring-art--light{ display:none; }
[data-theme="dark"] .hero-mark .ring-art--dark{ display:block; }
.hero-mark .ring-art{ width:100%; max-width:400px; height:auto; animation:float 7s ease-in-out infinite; filter:drop-shadow(0 20px 40px rgba(123,79,224,.15)); }
@keyframes float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }

@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-mark{ order:-1; }
  .hero-mark .ring-art{ max-width:230px; }
  .hero{ min-height:auto; }
}

/* ---------- SECTIONS ---------- */
section{ padding:104px 0; }
section + section{ border-top:1px solid var(--border); }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:32px; margin-bottom:58px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(1.8rem, 3vw, 2.6rem); max-width:580px; }
.section-head p{ color:var(--muted); max-width:380px; font-size:0.98rem; }
.section-head--solo h2{ max-width:760px; }
.section-head--stacked{
  display:block; max-width:760px; margin-bottom:46px;
}
.wrap.section-head--stacked{ max-width:var(--maxw); }
.section-head--stacked h2{ max-width:720px; }
.section-head--stacked > p{
  max-width:620px; margin-top:18px; padding-left:18px;
  border-left:2px solid var(--teal); line-height:1.65;
}

/* ---------- CARD GRID ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card-grid.two{ grid-template-columns:repeat(2,1fr); }
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  padding:30px 28px; transition:border-color .25s, transform .25s, background .25s, box-shadow .25s;
  position:relative; overflow:hidden; box-shadow:var(--shadow);
}
.card:hover{ border-color:var(--border-2); transform:translateY(-4px); background:var(--surface-2); }
.card .ic{
  width:46px; height:46px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:var(--grad-soft); border:1px solid var(--border-2); margin-bottom:20px;
}
.card .ic svg{ width:24px; height:24px; }
.card h3{ font-size:1.18rem; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:0.95rem; }
.card .tag{
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--teal);
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:14px; display:block;
}
.service-pill{
  display:inline-block; font-size:0.72rem; font-weight:600; font-family:'IBM Plex Sans',sans-serif;
  text-transform:uppercase; letter-spacing:0.07em; color:var(--teal);
  background:rgba(8,127,120,.08); border:1px solid rgba(8,127,120,.24);
  padding:5px 11px; border-radius:100px; margin-bottom:14px;
}
[data-theme="dark"] .service-pill{ background:rgba(45,216,201,.1); border-color:rgba(45,216,201,.25); }

a.service-card{ text-decoration:none; color:inherit; display:flex; flex-direction:column; }
a.service-card:hover .card-link{ color:var(--violet); }
.service-card .card-link{
  margin-top:auto; padding-top:18px; font-size:0.88rem; font-weight:500;
  color:var(--teal); transition:color .2s;
}

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

/* ---------- SERVICE INDEX (services page) ---------- */
.service-nav{
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px;
}
.service-nav a{
  font-size:0.86rem; padding:9px 16px; border-radius:100px;
  border:1px solid var(--border-2); color:var(--muted); background:var(--surface);
  transition:border-color .2s, color .2s, background .2s;
}
.service-nav a:hover{ border-color:var(--teal); color:var(--text); background:var(--surface-2); }

.service-groups{ display:flex; flex-direction:column; gap:48px; }
.service-group-head{ margin-bottom:8px; }
.service-group-head h3{
  font-size:0.78rem; font-family:'IBM Plex Sans',sans-serif; font-weight:600;
  text-transform:uppercase; letter-spacing:0.12em; color:var(--muted-2); margin-bottom:4px;
}
.service-group-head p{ color:var(--muted); font-size:0.92rem; max-width:520px; }

/* ---------- SERVICE ROWS (linked list) ---------- */
.manifest-list{ border-top:1px solid var(--border); }
.manifest-row{
  display:grid; grid-template-columns:52px 1.15fr 1.45fr auto; gap:28px; padding:28px 0;
  border-bottom:1px solid var(--border); align-items:center;
  transition:background .25s, padding-left .25s, border-color .25s;
}
.manifest-row:hover{ background:var(--surface-2); padding-left:10px; border-color:var(--border-2); }
.service-row-icon{
  width:46px; height:46px; border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--grad-soft); border:1px solid var(--border-2);
}
.service-row-icon svg{ width:22px; height:22px; }
.manifest-name{ font-family:'Space Grotesk',sans-serif; font-size:1.2rem; font-weight:600; line-height:1.25; }
.manifest-desc{ color:var(--muted); font-size:0.94rem; line-height:1.55; }
.manifest-arrow{
  font-size:0.88rem; font-weight:500; color:var(--muted-2); white-space:nowrap;
  transition:color .2s, transform .2s;
}
.manifest-row:hover .manifest-arrow{ color:var(--teal); transform:translateX(4px); }
@media (max-width:780px){
  .manifest-row{ grid-template-columns:46px 1fr; gap:14px 16px; padding:22px 0; }
  .manifest-desc{ grid-column:2; }
  .manifest-arrow{ grid-column:2; font-size:0.82rem; }
}

/* ---------- PROOF BAR ---------- */
.proof{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:42px 0; background:var(--surface); }
.proof .wrap{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.proof-dot{ width:9px; height:9px; border-radius:50%; background:var(--grad); flex-shrink:0; box-shadow:0 0 12px var(--teal); }
.proof p{ font-family:'IBM Plex Mono',monospace; font-size:0.9rem; color:var(--muted); line-height:1.75; }
.proof strong{ color:var(--text); font-weight:500; }

/* ---------- PHILOSOPHY / FEATURE GRID ---------- */
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:14px; overflow:hidden;
}
.feature-card{ background:var(--bg); padding:38px 32px; }
.feature-card .num{ font-family:'IBM Plex Mono',monospace; color:var(--muted-2); font-size:0.85rem; margin-bottom:18px; }
.feature-card h3{ font-size:1.15rem; margin-bottom:12px; }
.feature-card p{ color:var(--muted); font-size:0.93rem; }
@media (max-width:780px){ .feature-grid{ grid-template-columns:1fr; } }

/* ---------- PROCESS ---------- */
.process-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:34px; }
.process-step .step-num{
  font-family:'Space Grotesk',sans-serif; font-size:2.4rem; font-weight:700;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:16px; display:block;
}
.process-step h3{ font-size:1.08rem; margin-bottom:10px; }
.process-step p{ color:var(--muted); font-size:0.93rem; }
@media (max-width:900px){ .process-row{ grid-template-columns:1fr 1fr; gap:40px; } }
@media (max-width:560px){ .process-row{ grid-template-columns:1fr; } }

/* ---------- STATS BAND ---------- */
.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.stat-band .cell{ background:var(--bg); padding:34px 26px; text-align:center; }
.stat-band .cell .n{ font-family:'Space Grotesk',sans-serif; font-size:2.2rem; font-weight:700; }
.stat-band .cell .l{ color:var(--muted); font-size:0.85rem; margin-top:4px; }
@media (max-width:780px){ .stat-band{ grid-template-columns:1fr 1fr; } }

/* ---------- CTA ---------- */
.cta-section{ text-align:center; padding:130px 0; }
.cta-section .eyebrow{ justify-content:center; }
.cta-section h2{ font-size:clamp(2rem, 4.4vw, 3.3rem); max-width:760px; margin:0 auto 26px; }
.cta-section p{ color:var(--muted); max-width:500px; margin:0 auto 38px; font-size:1.05rem; }
.cta-buttons{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }

/* ---------- CONTACT ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-info .info-item{ display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--border); }
.contact-info .info-item:last-child{ border-bottom:none; }
.contact-info .ic{
  width:42px; height:42px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:var(--grad-soft); border:1px solid var(--border-2);
}
.contact-info .ic svg{ width:20px; height:20px; }
.contact-info .info-item .k{ font-size:0.8rem; color:var(--muted-2); font-family:'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:.1em; }
.contact-info .info-item .v{ font-size:1.02rem; }
.placeholder-note{ color:var(--violet); font-size:0.78rem; font-family:'IBM Plex Mono',monospace; }

form.lead-form{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:32px; box-shadow:var(--shadow); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:0.85rem; color:var(--muted); margin-bottom:8px; }
.field label .req{ color:var(--teal); }
.field input, .field select, .field textarea{
  width:100%; background:var(--bg); border:1px solid var(--border-2); border-radius:9px;
  padding:13px 15px; color:var(--text); font-family:inherit; font-size:0.95rem; transition:border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--teal); }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:0.82rem; color:var(--muted-2); margin-top:14px; }
.form-status{ margin-top:16px; font-size:0.92rem; display:none; }
.form-status.ok{ display:block; color:var(--teal); }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; gap:36px; } }

/* ---------- AUDIENCE pills ---------- */
.pill-row{ display:flex; flex-wrap:wrap; gap:12px; }
.pill{
  border:1px solid var(--border-2); border-radius:100px; padding:9px 18px; font-size:0.88rem;
  color:var(--muted); background:var(--surface); transition:.2s;
}
.pill:hover{ color:var(--text); border-color:var(--teal); }

/* ---------- TRUST / PROOF SECTIONS ---------- */
.principle-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.principle-card{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--border); border-radius:16px;
  padding:30px 26px 28px; min-height:220px; box-shadow:var(--shadow);
}
.principle-card::before{
  content:''; position:absolute; left:0; right:0; top:0; height:3px;
  background:var(--grad);
}
.principle-card .num{
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--teal);
  letter-spacing:.12em; margin-bottom:24px; display:block;
}
.principle-card h3{ font-size:1.18rem; margin-bottom:12px; }
.principle-card p{ color:var(--muted); font-size:0.94rem; line-height:1.6; }

.trust-band{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:14px; overflow:hidden;
}
.trust-band .trust-cell{
  background:var(--surface); padding:28px 24px;
}
.trust-band .trust-cell .k{
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--teal);
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:10px;
}
.trust-band .trust-cell .v{
  color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:1.05rem; font-weight:600; line-height:1.25;
}
.trust-band .trust-cell p{ color:var(--muted); font-size:0.9rem; margin-top:8px; }

.standards-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.standard-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:30px 28px; box-shadow:var(--shadow);
}
.standard-card .tag{
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--muted-2);
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:14px;
}
.standard-card h3{ font-size:1.18rem; margin-bottom:10px; }
.standard-card p{ color:var(--muted); font-size:0.95rem; }

.industry-strip{
  display:flex; flex-wrap:wrap; gap:12px; margin-top:28px;
}
.industry-strip span{
  border:1px solid var(--border-2); background:var(--surface); border-radius:999px;
  color:var(--muted); padding:9px 14px; font-size:0.86rem;
}

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; background:none; border:none; color:var(--text); text-align:left; cursor:pointer;
  font-family:'Space Grotesk',sans-serif; font-size:1.1rem; font-weight:500; padding:24px 0;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
}
.faq-q .pm{ color:var(--teal); font-size:1.4rem; transition:transform .25s; flex-shrink:0; }
.faq-q[aria-expanded="true"] .pm{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; color:var(--muted); }
.faq-a p{ padding-bottom:24px; max-width:760px; }

/* ---------- LEGAL PAGES ---------- */
.legal-content{ max-width:760px; }
.legal-content h2{ font-size:1.35rem; margin:36px 0 14px; }
.legal-content h3{ font-size:1.1rem; margin:24px 0 10px; }
.legal-content p, .legal-content li{ color:var(--muted); margin-bottom:14px; }
.legal-content ul{ padding-left:24px; margin-bottom:18px; }

/* ---------- FOOTER ---------- */
footer{ border-top:1px solid var(--border); padding:64px 0 40px; background:var(--surface); }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.foot-brand p{ color:var(--muted); font-size:0.92rem; max-width:280px; margin-top:16px; }
.foot-col h4{ font-size:0.82rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted-2); font-family:'IBM Plex Mono',monospace; margin-bottom:16px; font-weight:500; }
.foot-col a, .foot-col span{ display:block; color:var(--muted); font-size:0.92rem; padding:6px 0; transition:color .2s; }
.foot-col a:hover{ color:var(--text); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding-top:28px; border-top:1px solid var(--border); }
.foot-bottom .foot-meta{ font-family:'IBM Plex Mono',monospace; font-size:0.8rem; color:var(--muted-2); display:flex; gap:22px; flex-wrap:wrap; }
.foot-legal{ display:flex; gap:20px; flex-wrap:wrap; }
.foot-legal a{ font-size:0.85rem; color:var(--muted); transition:color .2s; }
.foot-legal a:hover{ color:var(--text); }

/* Clearance for floating discovery agent (homepage) */
body:has(.agent-fab) footer .foot-bottom{
  padding-right:96px;
}
body:has(.agent-fab) footer{
  padding-bottom:48px;
}
@media (max-width:640px){
  body:has(.agent-fab) footer .foot-bottom{
    padding-right:0;
    padding-bottom:80px;
    align-items:flex-start;
  }
  body:has(.agent-fab) .foot-legal{
    width:100%;
    padding-right:72px;
  }
}

.foot-social{ display:flex; gap:12px; }
.foot-social a{ width:38px; height:38px; border:1px solid var(--border-2); border-radius:9px; display:flex; align-items:center; justify-content:center; color:var(--muted); transition:.2s; }
.foot-social a:hover{ color:var(--text); border-color:var(--teal); }
.foot-social svg{ width:18px; height:18px; }
@media (max-width:860px){ .foot-grid{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:520px){ .foot-grid{ grid-template-columns:1fr; } }

@media (max-width:1100px){
  .principle-grid{ grid-template-columns:repeat(2,1fr); }
  .principle-card{ min-height:190px; }
}

/* ---------- DISCOVERY AGENT ---------- */
.discovery-section{ background:var(--surface-2); }
.discovery-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:48px; align-items:start; }
.discovery-intro h2{ font-size:clamp(1.8rem, 3vw, 2.4rem); margin-bottom:16px; }
.discovery-intro p{ color:var(--muted); margin-bottom:20px; }
.discovery-intro ul{ list-style:none; padding:0; }
.discovery-intro li{
  padding:10px 0 10px 28px; position:relative; color:var(--muted); font-size:0.95rem;
}
.discovery-intro li::before{
  content:''; position:absolute; left:0; top:16px; width:8px; height:8px;
  border-radius:50%; background:var(--grad);
}

.discovery-panel{
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  box-shadow:var(--shadow); overflow:hidden;
}
.discovery-header{
  display:flex; align-items:center; gap:14px; padding:18px 22px;
  border-bottom:1px solid var(--border); background:var(--grad-soft);
}
.discovery-header img{ display:none; }
.discovery-header .agent-avatar{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background:var(--surface); border:2px solid var(--border-2);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(15,20,25,.08);
}
.discovery-header .agent-avatar img{
  display:block; width:28px; height:28px; border:none; border-radius:0;
}
.discovery-header .agent-name{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1rem; }
.discovery-header .agent-status{ font-size:0.78rem; color:var(--teal); font-family:'IBM Plex Mono',monospace; }
.discovery-header .agent-status::before{
  content:''; display:inline-block; width:7px; height:7px; border-radius:50%;
  background:var(--teal); margin-right:6px; box-shadow:0 0 8px var(--teal);
}

.discovery-body{ padding:22px; min-height:280px; }
.discovery-step{ display:none; }
.discovery-step.active{ display:block; }
.discovery-question{ font-size:1.02rem; margin-bottom:18px; color:var(--text); }
.discovery-step-meta{
  font-size:0.78rem; color:var(--muted-2); font-family:'IBM Plex Mono',monospace;
  margin-bottom:14px; letter-spacing:0.04em;
}
.discovery-hint kbd{
  font-family:'IBM Plex Mono',monospace; font-size:0.75rem;
  padding:2px 6px; border-radius:4px; border:1px solid var(--border-2);
  background:var(--surface-2); color:var(--muted);
}
.discovery-body .field-error{
  display:none; font-size:0.85rem; color:var(--violet); margin-top:8px;
}
.discovery-body .field-error.show{ display:block; }
.discovery-body .field input.invalid,
.discovery-body .field select.invalid,
.discovery-body .field textarea.invalid{ border-color:var(--violet); }
.discovery-status{
  padding:14px 16px; border-radius:10px; font-size:0.92rem; margin-top:12px;
}
.discovery-status.ok{
  background:rgba(26,181,168,.12); border:1px solid var(--teal); color:var(--teal);
}
.discovery-status.err{
  background:rgba(123,79,224,.1); border:1px solid var(--violet); color:var(--violet);
}
.discovery-actions .btn-grad:disabled,
.discovery-actions .btn-outline:disabled{ opacity:0.55; cursor:not-allowed; transform:none; }
.discovery-progress{
  height:4px; background:var(--border); border-radius:2px; margin-bottom:20px; overflow:hidden;
}
.discovery-progress-bar{
  height:100%; background:var(--grad); border-radius:2px; transition:width .3s ease; width:0%;
}

.discovery-summary{
  background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:18px;
  margin-bottom:18px; font-size:0.9rem;
}
.discovery-summary dt{ color:var(--muted-2); font-family:'IBM Plex Mono',monospace; font-size:0.72rem; text-transform:uppercase; letter-spacing:.08em; margin-top:12px; }
.discovery-summary dt:first-child{ margin-top:0; }
.discovery-summary dd{ color:var(--text); margin:4px 0 0; }

.fit-badge{
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:100px;
  font-family:'IBM Plex Mono',monospace; font-size:0.78rem; margin-bottom:16px;
}
.fit-badge.strong{ background:rgba(26,181,168,.15); color:var(--teal); border:1px solid var(--teal); }
.fit-badge.moderate{ background:rgba(123,79,224,.12); color:var(--violet); border:1px solid var(--violet); }
.fit-badge.explore{ background:rgba(139,147,158,.15); color:var(--muted); border:1px solid var(--border-2); }

.discovery-actions{ display:flex; gap:12px; flex-wrap:wrap; padding:0 22px 22px; }
.discovery-actions .btn-grad, .discovery-actions .btn-outline{ font-size:0.88rem; padding:12px 20px; }

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

/* ---------- FLOATING AGENT FAB ---------- */
.agent-fab{
  position:fixed; bottom:28px; right:28px; z-index:90;
  width:60px; height:60px; border-radius:50%;
  background:var(--surface);
  border:2px solid transparent;
  background-image:linear-gradient(var(--surface), var(--surface)), var(--grad);
  background-origin:border-box;
  background-clip:padding-box, border-box;
  box-shadow:0 8px 32px -8px rgba(15,20,25,.18), 0 4px 16px -4px rgba(123,79,224,.25);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:transform .2s, box-shadow .2s;
}
[data-theme="dark"] .agent-fab{
  box-shadow:0 8px 32px -8px rgba(0,0,0,.45), 0 0 0 1px rgba(45,216,201,.15);
}
.agent-fab:hover{ transform:scale(1.06); box-shadow:0 12px 40px -8px rgba(123,79,224,.35); }
.agent-fab img{
  width:34px; height:34px;
  filter:drop-shadow(0 1px 2px rgba(15,20,25,.12));
}
.agent-fab .fab-dot{
  position:absolute; top:2px; right:2px; width:12px; height:12px;
  background:#22C55E; border:2px solid var(--surface); border-radius:50%;
  box-shadow:0 0 0 1px rgba(15,20,25,.08);
}

/* Agent avatar — logo on solid circle for contrast */
.agent-avatar{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background:var(--surface); border:2px solid var(--border-2);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(15,20,25,.08);
}
.agent-avatar img{ width:28px; height:28px; }
.discovery-header .agent-avatar{ width:44px; height:44px; }
.discovery-header .agent-avatar img{ width:28px; height:28px; }

.agent-widget{
  position:fixed; bottom:100px; right:28px; z-index:89;
  width:380px; max-width:calc(100vw - 56px); max-height:calc(100vh - 140px);
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  box-shadow:0 24px 60px -16px rgba(15,20,25,.2);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(20px) scale(0.95); opacity:0; pointer-events:none;
  transition:transform .25s, opacity .25s;
}
.agent-widget.open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.agent-widget .discovery-body{ flex:1; overflow-y:auto; min-height:200px; max-height:360px; }
.agent-widget .discovery-actions{ padding:12px 18px 18px; }
.agent-widget .discovery-header{ padding:14px 18px; }
.agent-widget-close{
  margin-left:auto; background:none; border:none; color:var(--muted);
  cursor:pointer; font-size:1.4rem; line-height:1; padding:4px;
}
.agent-widget-close:hover{ color:var(--text); }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner{
  position:fixed; bottom:0; left:0; right:0; z-index:95;
  background:var(--surface); border-top:1px solid var(--border);
  padding:18px 28px; box-shadow:0 -8px 32px rgba(15,20,25,.08);
  transform:translateY(100%); transition:transform .3s ease;
}
.cookie-banner.show{ transform:translateY(0); }
.cookie-banner .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  max-width:var(--maxw); margin:0 auto; padding:0;
}
.cookie-banner p{ color:var(--muted); font-size:0.9rem; max-width:640px; margin:0; }
.cookie-banner a{ color:var(--teal); text-decoration:underline; }
.cookie-banner-actions{ display:flex; gap:12px; flex-shrink:0; }
.cookie-banner .btn-grad, .cookie-banner .btn-outline{ padding:10px 18px; font-size:0.85rem; }

@media (max-width:780px){
  .wrap{ padding:0 22px; }
  section{ padding:76px 0; }
  .page-hero{ padding:128px 0 56px; }
  .hero{ padding-top:112px; padding-bottom:58px; }
  .hero h1{ font-size:clamp(2.25rem, 13vw, 3.2rem); }
  .hero p.lede, .page-hero p{ font-size:1rem; }
  .hero-cta-row .btn-grad,
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-outline,
  .cta-buttons .btn-grad,
  .cta-buttons .btn-outline{
    width:100%; justify-content:center; text-align:center;
  }
  .section-head{ margin-bottom:40px; }
  .trust-band{ grid-template-columns:1fr; }
  .principle-grid{ grid-template-columns:1fr; }
  .standards-grid{ grid-template-columns:1fr; }
  .stat-band{ grid-template-columns:1fr; }
  .cookie-banner-actions{ width:100%; }
  .cookie-banner-actions button{ flex:1; justify-content:center; }
}

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; }
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
  .hero-mark .ring-art{ animation:none; }
}
