:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --card: #161a24;
  --border: #232838;
  --text: #e8ebf2;
  --muted: #97a0b5;
  --accent: #6c8cff;
  --accent-2: #9b7bff;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,13,18,0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.brand .logo {
  width: 28px; height: 28px; display: block;
  filter: drop-shadow(0 0 10px rgba(108,140,255,0.55));
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  display: flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: var(--bg-soft);
}
.lang-toggle button {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600; font-family: inherit;
}
.lang-toggle button.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; }

/* ---------- SHARED GRAD TEXT ---------- */
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font-size: 0.82rem; font-weight: 500; margin-bottom: 26px;
}

/* ---------- HOMEPAGE HERO ---------- */
.hero { padding: 110px 0 90px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.18), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; max-width: 860px; margin: 0 auto 22px;
}
.hero p { color: var(--muted); font-size: 1.18rem; max-width: 640px; margin: 0 auto 36px; }
.hero .trust-line {
  font-size: 0.92rem; color: var(--muted); margin: 26px auto 0; max-width: 600px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero .trust-line::before {
  content: ""; width: 16px; height: 1px; background: var(--accent); opacity: .6;
}

/* ---------- BUTTONS ---------- */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 10px 30px rgba(108,140,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- SECTIONS ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- EYEBROW LABEL ---------- */
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(108,140,255,0.18), rgba(155,123,255,0.18));
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; margin-bottom: 20px; }
.card a.link {
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
}

/* Capability lede + bullet list inside solution cards */
.card-lede { color: var(--text); font-weight: 600; font-size: 0.98rem; margin-bottom: 14px; flex: none; }
.cap-list {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.cap-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.cap-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.cap-list li b { color: var(--text); font-weight: 600; }
.card a.link:hover { gap: 10px; }
.card.soon { opacity: 0.65; }
.tag-soon {
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}

/* Problem cards: muted, no hover-lift, amber accent on the icon */
.card.problem:hover { transform: none; border-color: var(--border); }
.card.problem h3 { font-size: 1.12rem; }
.card .icon.warn {
  background: linear-gradient(135deg, rgba(255,189,46,0.16), rgba(255,95,87,0.14));
  border-color: rgba(255,189,46,0.25);
}

/* Outcome cards: accent left edge to read as "the answer" */
.card.outcome { border-left: 3px solid transparent; border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1; }
.card.outcome h3 { font-size: 1.18rem; }

/* ---------- STATS / RESULTS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px;
  margin-bottom: 40px;
}
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
}
.stat .num {
  font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .num-unit { font-size: 1.1rem; font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: 0.92rem; margin-top: 14px; line-height: 1.5; }

/* ---------- CASE STUDY QUOTE ---------- */
.case {
  max-width: 820px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 44px; position: relative;
}
.case::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.case-quote { font-size: 1.18rem; line-height: 1.65; color: var(--text); font-weight: 500; }
.case-attr { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }
@media (max-width: 640px) { .case { padding: 30px 24px; } }

/* ---------- ABOUT / ALT SECTIONS ---------- */
.about, .section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about .wrap { max-width: 760px; text-align: center; }
.about h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 18px; }
.about p { color: var(--muted); font-size: 1.08rem; }

/* ---------- PRODUCT PAGE HERO ---------- */
.product-hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.product-hero::before {
  content: ""; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.16), transparent 60%);
  pointer-events: none;
}
.p-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 18px;
  display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, rgba(108,140,255,0.2), rgba(155,123,255,0.2));
  border: 1px solid var(--border);
}
.product-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.product-hero p { color: var(--muted); font-size: 1.15rem; max-width: 580px; margin: 0 auto; }

/* ---------- BACK LINK ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.back-link:hover { color: var(--text); }

/* ---------- OVERVIEW ---------- */
.overview {
  max-width: 760px; margin: 0 auto;
  text-align: center; color: var(--muted); font-size: 1.08rem; line-height: 1.75;
}

/* ---------- HOW IT WORKS STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
}
.step .num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- MOCKUP VISUALS ---------- */
.hero-mockup {
  margin: 56px auto 0;
  max-width: 900px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,140,255,0.12);
}
.hero-mockup svg { display: block; width: 100%; height: auto; }

/* Product page: 2-column hero */
.product-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.product-text .cta-row { justify-content: flex-start; margin-top: 28px; }
.product-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(108,140,255,0.1);
}
.product-visual svg { display: block; width: 100%; height: auto; }
@media (max-width: 820px) {
  .product-cols { grid-template-columns: 1fr; text-align: center; }
  .product-text .cta-row { justify-content: center; }
}

/* Product card previews */
.card-preview {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 18px;
}
.card-preview svg { display: block; width: 100%; height: auto; }

/* ---------- PHOTO / IMAGE PLACEHOLDERS ---------- */
/* A .ph is a photo slot. Drop in a real image like:
   <figure class="ph has-img"><img src="images/your-photo.jpg" alt="..."><figcaption class="ph-cap">Caption</figcaption></figure> */
.ph {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(108,140,255,0.20), transparent 55%),
    linear-gradient(135deg, rgba(155,123,255,0.14), rgba(108,140,255,0.06)),
    var(--bg-soft);
  display: grid; place-items: center; min-height: 200px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .ph-ic { width: 56px; height: 56px; color: var(--accent); opacity: .55; }
.ph .ph-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px; font-size: 0.74rem; line-height: 1.35; color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(11,13,18,0.85));
}
.ph.has-img .ph-ic { display: none; }
.ph.has-img .ph-cap { color: #e8ebf2; }

/* ---------- PEOPLE-FIRST HERO VISUAL ---------- */
.hero-visual { position: relative; max-width: 760px; margin: 56px auto 8px; }
.hero-visual .ph--hero {
  min-height: 380px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,140,255,0.12);
}
.hero-visual .ph--hero .ph-ic { width: 76px; height: 76px; }
.chip {
  position: absolute; display: flex; gap: 11px; align-items: center; text-align: left;
  background: rgba(18,21,29,0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 13px; padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.chip .chip-ic { font-size: 1.35rem; line-height: 1; }
.chip b { display: block; font-size: 0.92rem; color: var(--text); font-weight: 700; }
.chip i { font-style: normal; font-size: 0.78rem; color: var(--accent); }
.chip-tl { top: -18px; left: -14px; }
.chip-br { bottom: -18px; right: -14px; }
@media (max-width: 560px) {
  .chip-tl { top: -14px; left: 8px; }
  .chip-br { bottom: -14px; right: 8px; }
  .chip { padding: 10px 13px; }
}

/* ---------- MISSION BAND ---------- */
.mission .mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.mission-copy .eyebrow { margin-bottom: 12px; }
.mission-copy h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.18; margin-bottom: 16px;
}
.mission-copy p { color: var(--muted); font-size: 1.05rem; }
.mission-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.mission-photos .ph { min-height: 160px; }
.mission-photos .ph--wide { grid-column: 1 / -1; min-height: 150px; }
@media (max-width: 820px) {
  .mission .mission-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Case study photo */
.case-photo { margin-bottom: 28px; }
.case-photo .ph { min-height: 240px; }

/* Product/solution page human-context photo */
.product-photo { max-width: 900px; margin: 0 auto; }
.product-photo .ph { min-height: 340px; }
.product-photo .ph-cap { font-size: 0.95rem; padding: 28px 20px 16px; }

/* ---------- FOOTER ---------- */
footer { padding: 50px 0; text-align: center; border-top: 1px solid var(--border); }
footer .brand { justify-content: center; margin-bottom: 14px; }
footer p { color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--accent); text-decoration: none; }
