/* =====================================================================
   CAN Technologies · thecancloud.com
   Cinematic dark system — near-black canvas, deep magenta accent,
   light geometric display type (Outfit) + DM Sans body.
   ===================================================================== */

:root {
  --black: #08080a;
  --ink-900: #0e0e12;
  --ink-800: #15151b;
  --ink-700: #1e1e26;
  --ink-600: #2a2a34;
  --line-d: rgba(255,255,255,.1);
  --text-d: #f4f2f5;
  --muted-d: #a19faa;

  --paper: #f5f3f0;
  --white: #ffffff;
  --ink: #121216;
  --ink-2: #4a4852;
  --line: #e2dfdb;

  --magenta: #c2156b;
  --magenta-2: #e0237f;
  --magenta-soft: #ff5aa5;
  --plum: #4d1460;
  --glow: radial-gradient(60% 60% at 70% 30%, rgba(194,21,107,.45), transparent 70%);

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1320px;
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--text-d);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
[id] { scroll-margin-top: 100px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.sec { padding: 120px 0; position: relative; }
.sec-sm { padding: 72px 0; }
.light { background: var(--paper); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.ink { background: var(--ink-900); }
.muted { color: var(--muted-d); }
.light .muted, .white .muted { color: var(--ink-2); }
.kicker { display: block; font: 500 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta-soft); margin-bottom: 22px; }
.light .kicker, .white .kicker { color: var(--magenta); }
.intro { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--muted-d); max-width: 760px; font-weight: 300; }
.light .intro, .white .intro { color: var(--ink-2); }
.hl { color: var(--magenta-soft); }
.light .hl, .white .hl { color: var(--magenta); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.head-row h2 { margin: 0; max-width: 820px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer;
  padding: 16px 28px; border-radius: var(--r); font: 500 .98rem/1 var(--body);
  transition: background .25s var(--ease), color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-mag { background: var(--magenta); color: #fff; }
.btn-mag:hover { background: var(--magenta-2); box-shadow: 0 12px 40px -12px rgba(224,35,127,.8); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.light .btn-line:hover, .white .btn-line:hover { background: rgba(0,0,0,.05); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--magenta-soft); }
.light .more, .white .more { color: var(--magenta); }
.more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.more:hover svg, a:hover > .more svg, a:hover .more svg { transform: translateX(5px); }
.tagpill { display: inline-block; padding: 5px 12px; border: 1px solid var(--line-d); border-radius: 999px; font-size: .74rem; letter-spacing: .04em; color: var(--muted-d); }
.tagpill.mag { border-color: transparent; background: rgba(194,21,107,.18); color: var(--magenta-soft); }
.light .tagpill, .white .tagpill { border-color: var(--line); color: var(--ink-2); }
.light .tagpill.mag, .white .tagpill.mag { background: rgba(194,21,107,.08); color: var(--magenta); }

/* ---------- Utility bar & header ---------- */
.utility { background: var(--black); font-size: .8rem; color: var(--muted-d); border-bottom: 1px solid var(--line-d); }
.utility .wrap { display: flex; justify-content: flex-end; gap: 26px; height: 36px; align-items: center; }
.utility a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 90; background: rgba(8,8,10,.86); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line-d); }
.header .wrap { display: flex; align-items: center; height: 74px; gap: 48px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { height: 32px; width: auto; }
.brand-text { font: 500 1.35rem/1 var(--display); letter-spacing: -.02em; }
.brand-text small { display: block; font: 400 .62rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); margin-top: 5px; }

.menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; flex: 1; }
.menu > li { position: static; }
.menu-btn { display: flex; align-items: center; gap: 6px; height: 74px; padding: 0 16px; background: none; border: 0; cursor: pointer; font-size: .97rem; color: #dedce3; position: relative; }
.menu-btn:hover, .menu > li.open > .menu-btn, .menu-btn.current { color: #fff; }
.menu-btn::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--magenta-2); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu > li.open > .menu-btn::after, .menu-btn.current::after { transform: scaleX(1); }
.menu-btn svg { width: 12px; height: 12px; opacity: .7; transition: transform .25s; }
.menu > li.open > .menu-btn svg { transform: rotate(180deg); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; border-radius: 50%; color: #dedce3; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.head-actions .btn { padding: 12px 20px; font-size: .9rem; }
.burger { display: none; }

/* Mega panel (full width, Amdocs-style) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-900); border-bottom: 1px solid var(--line-d);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.menu > li.open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding-top: 44px; padding-bottom: 48px; height: auto; align-items: start; }
.mega-intro h3 { font-size: 1.7rem; margin-bottom: 12px; }
.mega-intro p { color: var(--muted-d); font-size: .95rem; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mega-cols.two { grid-template-columns: repeat(2, 1fr); }
.mega-col h5 { font: 500 .74rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-d); }
.mega-col a { display: block; padding: 9px 0; color: #e9e7ec; transition: color .2s, padding .2s; }
.mega-col a span { display: block; font-size: .84rem; color: var(--muted-d); margin-top: 2px; }
.mega-col a:hover { color: var(--magenta-soft); padding-left: 4px; }
.mega-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; padding: 24px; }
.mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,.95), rgba(8,8,10,.1)); z-index: 1; }
.mega-card > div { position: relative; z-index: 2; }
.mega-card h4 { margin-bottom: 8px; }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,10,.97); display: none; padding-top: 14vh; }
.search.open { display: block; }
.search .wrap { max-width: 900px; }
.search-field { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-d); padding-bottom: 18px; }
.search-field svg { width: 28px; height: 28px; color: var(--muted-d); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: 300 clamp(1.6rem, 4vw, 2.6rem) var(--display); outline: none; }
.search-results { margin-top: 26px; display: grid; gap: 4px; max-height: 56vh; overflow: auto; }
.search-results a { display: block; padding: 14px 16px; border-radius: var(--r); }
.search-results a:hover, .search-results a:focus { background: var(--ink-700); outline: none; }
.search-results small { display: block; color: var(--muted-d); }
.search-close { position: absolute; top: 24px; right: 24px; }
.search-hint { color: var(--muted-d); font-size: .9rem; margin-top: 20px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(92vh, 880px); min-height: 620px; overflow: hidden; background: var(--black); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.slide.active img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.65) 45%, rgba(8,8,10,.15) 100%), linear-gradient(0deg, rgba(8,8,10,.9), transparent 45%); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(50% 60% at 85% 20%, rgba(194,21,107,.35), transparent 70%); mix-blend-mode: screen; }
.slide .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 80px; }
.slide-eyebrow { font: 300 clamp(1.1rem, 1.6vw, 1.5rem) var(--display); color: #d9d6de; margin-bottom: 14px; }
.slide h1, .slide h2.h1 { max-width: 900px; font-size: clamp(2.6rem, 6vw, 5.4rem); margin-bottom: 24px; }
.slide p { max-width: 620px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: #cfccd5; font-weight: 300; margin-bottom: 36px; }
.slide .reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.active .reveal-up { opacity: 1; transform: none; }
.slide.active .reveal-up:nth-child(2) { transition-delay: .12s; }
.slide.active .reveal-up:nth-child(3) { transition-delay: .24s; }
.slide.active .reveal-up:nth-child(4) { transition-delay: .36s; }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 5; }
.hero-nav .wrap { display: flex; gap: 28px; align-items: flex-end; }
.hero-tab { flex: 1; max-width: 260px; text-align: left; background: none; border: 0; cursor: pointer; padding: 14px 0 0; color: var(--muted-d); font-size: .88rem; position: relative; }
.hero-tab::before, .hero-tab i { content: ""; position: absolute; top: 0; left: 0; height: 2px; }
.hero-tab::before { right: 0; background: rgba(255,255,255,.2); }
.hero-tab i { width: 0; background: var(--magenta-2); }
.hero-tab.active { color: #fff; }
.hero-tab.active i { animation: fill var(--dur, 7s) linear forwards; }
.hero-tab.done i { width: 100%; }
.hero-pause { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-d); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-pause svg { width: 14px; height: 14px; }
.hero.paused .hero-tab.active i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* Page hero (inner pages) */
.phero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; padding: 160px 0 90px; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,10,.94), rgba(8,8,10,.55) 60%, rgba(8,8,10,.25)), linear-gradient(0deg, rgba(8,8,10,.95), transparent 55%); }
.phero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(45% 60% at 90% 10%, rgba(194,21,107,.3), transparent 70%); }
.phero .wrap { position: relative; z-index: 2; }
.phero h1 { max-width: 980px; font-size: clamp(2.5rem, 5.4vw, 4.8rem); }
.phero .intro { color: #cfccd5; }
.phero.plain { min-height: 0; padding: 150px 0 80px; background: var(--black); }
.phero.plain::before { background: radial-gradient(50% 80% at 85% 0%, rgba(194,21,107,.32), transparent 70%); }
.phero.plain::after { display: none; }
.crumbs { font-size: .84rem; color: var(--muted-d); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 10px; opacity: .5; }
.phero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* In-page sticky subnav */
.subnav { position: sticky; top: 74px; z-index: 50; background: rgba(14,14,18,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-d); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: 18px 16px; font-size: .9rem; color: var(--muted-d); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.on { color: #fff; border-color: var(--magenta-2); }

/* ---------- Spotlight ---------- */
.spot-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.spot { display: flex; flex-direction: column; gap: 18px; }
.spot-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-800); }
.spot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.spot:hover .spot-media img { transform: scale(1.05); }
.spot-media .badge { position: absolute; left: 20px; bottom: 20px; z-index: 2; font: 300 clamp(1.6rem, 3vw, 2.6rem)/1.05 var(--display); color: #fff; max-width: 70%; }
.spot-media.shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,.75), transparent 60%); }
.spot-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.spot h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin: 0; transition: color .2s; }
.spot:hover h3 { color: var(--magenta-soft); }
.spot-side { display: grid; gap: 28px; align-content: start; }
.spot-side .spot-media { aspect-ratio: 16 / 8; }

/* ---------- Statement band ---------- */
.statement { position: relative; overflow: hidden; padding: 160px 0; }
.statement > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--black), rgba(8,8,10,.4) 30%, rgba(8,8,10,.4) 70%, var(--black)); }
.statement .wrap { position: relative; z-index: 2; }
.statement blockquote { margin: 0; font: 300 clamp(1.9rem, 4vw, 3.6rem)/1.15 var(--display); letter-spacing: -.02em; max-width: 1080px; }
.statement cite { display: block; margin-top: 30px; font: 400 .95rem var(--body); color: var(--muted-d); font-style: normal; }

/* ---------- Topic explorer (tabs) ---------- */
.explorer { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: stretch; }
.ex-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.ex-list button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-d); padding: 22px 0; cursor: pointer; font: 300 1.45rem var(--display); color: var(--muted-d); display: flex; justify-content: space-between; align-items: center; transition: color .2s, padding .3s var(--ease); }
.ex-list button svg { width: 20px; height: 20px; opacity: 0; transform: translateX(-10px); transition: .3s var(--ease); color: var(--magenta-soft); }
.ex-list button:hover { color: #fff; }
.ex-list button[aria-selected="true"] { color: #fff; padding-left: 10px; }
.ex-list button[aria-selected="true"] svg { opacity: 1; transform: none; }
.ex-panel { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; }
.ex-panel[hidden] { display: none; }
.ex-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoomin 1.2s var(--ease); }
.ex-panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,8,10,.96) 10%, rgba(8,8,10,.2) 70%); }
.ex-body { position: relative; z-index: 2; padding: 44px; max-width: 680px; animation: rise .7s var(--ease); }
.ex-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 300; }
.ex-body p { color: #cfccd5; }
.ex-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }
@keyframes zoomin { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Product rail (horizontal scroll) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--ink-600) transparent; }
.rail > * { scroll-snap-align: start; }
.prod {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px;
  padding: 32px; border-radius: var(--r-lg); background: var(--ink-800); border: 1px solid var(--line-d);
  overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease);
}
.prod::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(194,21,107,.28), transparent 70%); opacity: 0; transition: opacity .4s; }
.prod:hover { border-color: rgba(224,35,127,.55); transform: translateY(-6px); }
.prod:hover::before { opacity: 1; }
.prod .num { font: 300 .9rem var(--display); color: var(--muted-d); }
.prod .p-ico { width: 56px; height: 56px; color: var(--magenta-soft); margin: 30px 0 auto; }
.prod h3 { font-size: 1.9rem; margin: 28px 0 10px; }
.prod p { color: var(--muted-d); font-size: .96rem; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-d); background: none; cursor: pointer; display: grid; place-items: center; color: #fff; transition: background .2s; }
.rail-ctrl button:hover { background: var(--magenta); border-color: var(--magenta); }
.rail-ctrl svg { width: 18px; height: 18px; }
.rail-ctrl button:first-child svg { transform: rotate(180deg); }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.numbers > div { padding: 40px 32px 0 0; }
.numbers > div + div { padding-left: 32px; border-left: 1px solid var(--line-d); }
.big { font: 200 clamp(3rem, 6vw, 5.4rem)/1 var(--display); letter-spacing: -.04em; margin-bottom: 14px; }
.big sup { font-size: .45em; color: var(--magenta-soft); margin-left: 2px; }
.numbers p { color: var(--muted-d); margin: 0; max-width: 240px; }
.light .numbers, .light .numbers > div + div { border-color: var(--line); }
.light .numbers p { color: var(--ink-2); }
.light .big sup { color: var(--magenta); }

/* ---------- Image tiles (industries) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 26px; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,8,10,.92), rgba(8,8,10,.05) 65%); transition: background .4s; }
.tile:hover img { transform: scale(1.07); }
.tile:hover::before { background: linear-gradient(to top, rgba(77,20,96,.95), rgba(194,21,107,.2) 75%); }
.tile h4 { font: 400 1.35rem var(--display); margin: 0 0 6px; }
.tile p { font-size: .9rem; color: #d3d0d8; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.tile:hover p, .tile:focus p { max-height: 120px; opacity: 1; }
.tiles.wide { grid-template-columns: repeat(3, 1fr); }
.tiles.wide .tile { aspect-ratio: 4 / 3; }

/* ---------- Insight cards ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-d); background: none; cursor: pointer; font-size: .9rem; color: var(--muted-d); transition: .2s; }
.chip:hover { color: #fff; border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.icard { display: flex; flex-direction: column; gap: 16px; }
.icard .spot-media { aspect-ratio: 16 / 10; }
.icard h3 { font-size: 1.3rem; margin: 0; transition: color .2s; }
.icard:hover h3 { color: var(--magenta-soft); }
.icard p { color: var(--muted-d); font-size: .95rem; margin: 0; }
.light .icard p, .white .icard p { color: var(--ink-2); }
.light .icard:hover h3, .white .icard:hover h3 { color: var(--magenta); }
.meta { font-size: .84rem; color: var(--muted-d); }

/* ---------- Generic feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-d); }
.feat { padding: 40px 36px 44px 0; border-bottom: 1px solid var(--line-d); }
.feat:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid var(--line-d); }
.feat .f-ico { width: 40px; height: 40px; color: var(--magenta-soft); margin-bottom: 26px; }
.feat h4 { font: 400 1.35rem var(--display); margin-bottom: 10px; }
.feat p { color: var(--muted-d); margin: 0; font-size: .97rem; }
.light .feats, .light .feat, .white .feats, .white .feat { border-color: var(--line); }
.light .feat p, .white .feat p { color: var(--ink-2); }
.light .feat .f-ico, .white .feat .f-ico { color: var(--magenta); }
.feats.two { grid-template-columns: repeat(2, 1fr); }
.feats.two .feat:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.feats.two .feat:nth-child(2n) { padding-left: 36px; border-left: 1px solid var(--line-d); }
.light .feats.two .feat:nth-child(2n), .white .feats.two .feat:nth-child(2n) { border-color: var(--line); }
.feats.four { grid-template-columns: repeat(4, 1fr); }
.feats.four .feat:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.feats.four .feat:not(:nth-child(4n+1)) { padding-left: 30px; border-left: 1px solid var(--line-d); }
.light .feats.four .feat, .white .feats.four .feat { border-color: var(--line); }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split.flip > :first-child { order: 2; }
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .float {
  position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(14,14,18,.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-d); border-radius: 12px; padding: 18px 20px; color: #fff; font-size: .9rem;
}
.float-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-d); }
.float-row:last-child { border-bottom: 0; }
.dot { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: #9ff0b5; white-space: nowrap; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.amber { color: #ffd27a; } .dot.red { color: var(--magenta-soft); }
.ticks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted-d); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 1px; background: var(--magenta-soft); }
.light .ticks li, .white .ticks li { color: var(--ink-2); }
.light .ticks li::before, .white .ticks li::before { background: var(--magenta); }

/* ---------- Platform diagram ---------- */
.stack { display: grid; gap: 12px; }
.stack-row { display: grid; gap: 12px; }
.stack-row.c4 { grid-template-columns: repeat(4, 1fr); }
.stack-row.c5 { grid-template-columns: repeat(5, 1fr); }
.layer { border: 1px solid var(--line-d); border-radius: 10px; padding: 18px; background: var(--ink-800); font-size: .92rem; }
.layer b { display: block; font: 400 1.1rem var(--display); margin-bottom: 4px; }
.layer span { color: var(--muted-d); font-size: .85rem; }
.layer.ai { background: linear-gradient(90deg, rgba(77,20,96,.6), rgba(194,21,107,.45)); border-color: rgba(224,35,127,.5); text-align: center; }
.layer.base { text-align: center; background: var(--ink-700); }
.stack-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); margin: 10px 0 2px; }

/* ---------- Steps (approach) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.stp { padding: 30px 26px 34px; border-radius: var(--r-lg); background: var(--ink-800); border: 1px solid var(--line-d); position: relative; }
.stp::before { counter-increment: s; content: "0" counter(s); font: 200 3rem/1 var(--display); color: var(--magenta-soft); display: block; margin-bottom: 26px; }
.stp h4 { font: 400 1.3rem var(--display); }
.stp p { color: var(--muted-d); font-size: .94rem; margin: 0; }
.stp small { display: block; margin-top: 18px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.light .stp { background: #fff; border-color: var(--line); }
.light .stp p, .light .stp small { color: var(--ink-2); }
.light .stp::before { color: var(--magenta); }

/* ---------- Accordion ---------- */
.acc details { border-bottom: 1px solid var(--line-d); }
.acc summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; font: 300 1.4rem var(--display); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 8px; border-right: 1.5px solid var(--magenta-soft); border-bottom: 1.5px solid var(--magenta-soft); transform: rotate(45deg); transition: transform .3s; }
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc details p { color: var(--muted-d); max-width: 860px; padding-bottom: 26px; margin: 0; }
.light .acc details { border-color: var(--line); }
.light .acc details p { color: var(--ink-2); }
.light .acc summary::after { border-color: var(--magenta); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 130px 0; isolation: isolate; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(77,20,96,.94), rgba(194,21,107,.82) 60%, rgba(194,21,107,.55)); }
.cta .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta h2 { max-width: 760px; margin: 0; }
.cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 18px 0 0; font-weight: 300; font-size: 1.15rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; font-size: 1.12rem; line-height: 1.8; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 1.8em 0 .6em; }
.article p, .article li { color: #d6d3db; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 2em 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--magenta-2); font: 300 1.6rem/1.35 var(--display); color: #fff; }
.article-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted-d); font-size: .9rem; margin-top: 26px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; margin: -40px auto 70px; max-width: var(--container); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; gap: 10px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line-d); align-items: center; color: var(--muted-d); font-size: .9rem; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; }
.form .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: .85rem; color: var(--muted-d); margin-bottom: 8px; }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 15px 0; background: transparent; color: #fff; border: 0; border-bottom: 1px solid var(--ink-600);
  font: 300 1.1rem var(--body); transition: border-color .2s; border-radius: 0;
}
.fld select { -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a19faa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.fld select option { background: var(--ink-800); }
.fld textarea { min-height: 120px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--magenta-2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted-d); }
.consent input { accent-color: var(--magenta); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.ok-msg { display: none; padding: 18px 22px; border-radius: var(--r); background: rgba(159,240,181,.08); color: #9ff0b5; border: 1px solid rgba(159,240,181,.25); }
.ok-msg.show { display: block; }

.office { padding: 30px 0; border-top: 1px solid var(--line-d); }
.office h4 { font: 400 1.3rem var(--display); margin-bottom: 8px; }
.office p, .office a { color: var(--muted-d); margin: 0; }
.office a:hover { color: var(--magenta-soft); }

/* Roles list (careers) */
.roles a { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-d); transition: padding .3s var(--ease); }
.roles a:hover { padding-left: 12px; }
.roles a:hover h4 { color: var(--magenta-soft); }
.roles h4 { margin: 0; font: 400 1.3rem var(--display); transition: color .2s; }
.roles span { color: var(--muted-d); font-size: .92rem; }
.roles svg { width: 20px; height: 20px; color: var(--magenta-soft); }

/* Logos/partners text row */
.ecosys { display: flex; flex-wrap: wrap; gap: 14px; }
.ecosys span { padding: 14px 22px; border: 1px solid var(--line-d); border-radius: 999px; color: #d6d3db; font-size: .95rem; }
.light .ecosys span { border-color: var(--line); color: var(--ink-2); background: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid var(--line-d); padding: 90px 0 36px; font-size: .93rem; color: var(--muted-d); }
.f-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; }
.f-top h5 { font: 500 .76rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 20px; }
.f-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-top a:hover { color: var(--magenta-soft); }
.f-brand p { max-width: 340px; margin: 22px 0 28px; }
.subscribe { display: flex; border-bottom: 1px solid var(--ink-600); max-width: 360px; }
.subscribe input { flex: 1; min-width: 0; background: none; border: 0; padding: 14px 0; color: #fff; font: inherit; outline: none; }
.subscribe button { background: none; border: 0; color: var(--magenta-soft); cursor: pointer; display: grid; place-items: center; padding: 0 4px; }
.subscribe button svg { width: 20px; height: 20px; }
.f-social { display: flex; gap: 10px; margin-top: 30px; }
.f-social a { width: 40px; height: 40px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.f-social a:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.f-social svg { width: 16px; height: 16px; }
.f-bottom { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; }
.f-bottom nav { display: flex; gap: 26px; flex-wrap: wrap; }
.f-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 300; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--r); }
:focus-visible { outline: 2px solid var(--magenta-soft); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .slide img { transform: none !important; }
  .hero-tab.active i { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu, .head-actions .btn, .utility { display: none; }
  .burger { display: grid; }
  .header.open .menu {
    display: block; position: fixed; top: 74px; left: 0; right: 0; bottom: 0; overflow-y: auto;
    background: var(--black); padding: 8px 32px 40px;
  }
  .header.open .menu > li { border-bottom: 1px solid var(--line-d); }
  .menu-btn { width: 100%; height: auto; padding: 22px 0; justify-content: space-between; font: 300 1.5rem var(--display); }
  .menu-btn::after { display: none; }
  .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; }
  .menu > li.open > .mega { display: block; }
  .mega .wrap { grid-template-columns: 1fr; padding: 0 0 24px; gap: 20px; }
  .mega-intro, .mega-card { display: none; }
  .mega-cols, .mega-cols.two { grid-template-columns: 1fr; gap: 20px; }
  .menu .mobile-cta { display: block; padding: 28px 0; border: 0; }
  .f-top { grid-template-columns: repeat(2, 1fr); }
  .f-brand { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .explorer { grid-template-columns: 1fr; gap: 28px; }
  .ex-list { display: flex; overflow-x: auto; border: 0; gap: 8px; scrollbar-width: none; }
  .ex-list li { flex: none; }
  .ex-list button { border: 1px solid var(--line-d); border-radius: 999px; padding: 10px 18px; font: 400 .95rem var(--body); }
  .ex-list button svg { display: none; }
  .ex-list button[aria-selected="true"] { padding-left: 18px; background: #fff; color: var(--ink); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stack-row.c5 { grid-template-columns: repeat(3, 1fr); }
  .feats.four { grid-template-columns: repeat(2, 1fr); }
  .feats.four .feat:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .feats.four .feat:nth-child(2n) { padding-left: 30px; border-left: 1px solid var(--line-d); }
}
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .sec { padding: 84px 0; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.flip > :first-child { order: 0; }
  .spot-grid, .cards { grid-template-columns: 1fr; }
  .cards { gap: 40px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers > div { padding-bottom: 32px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feat:nth-child(2n) { padding-left: 30px; border-left: 1px solid var(--line-d); }
  .light .feat:nth-child(2n), .white .feat:nth-child(2n) { border-color: var(--line); }
  .tiles.wide { grid-template-columns: 1fr 1fr; }
  .roles a { grid-template-columns: 1fr auto; }
  .roles a span { display: none; }
  .hero-tab { font-size: .78rem; }
  .statement { padding: 110px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header.open .menu { padding: 8px 20px 40px; }
  .hero { min-height: 640px; height: 88vh; }
  .hero-nav .wrap { gap: 12px; }
  .hero-tab span { display: none; }
  .hero-tab { padding-top: 0; height: 20px; }
  .feats, .feats.two, .feats.four, .form, .tiles, .tiles.wide, .steps, .stack-row.c4, .stack-row.c5 { grid-template-columns: 1fr; }
  .feat, .feat:nth-child(2n), .feats.two .feat:nth-child(2n), .feats.four .feat:nth-child(2n) { padding: 32px 0; border-left: 0 !important; }
  .numbers { grid-template-columns: 1fr; }
  .numbers > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); padding-top: 32px; }
  .tile { aspect-ratio: 16 / 11; }
  .tile p { max-height: 120px; opacity: 1; }
  .ex-panel { min-height: 460px; }
  .ex-body { padding: 26px; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .phero { min-height: 480px; padding: 120px 0 60px; }
  .phero.plain { padding: 110px 0 56px; }
  .cta { padding: 90px 0; }
  .rail { grid-auto-columns: 82%; }
  .article-cover { margin: -20px 20px 50px; aspect-ratio: 16 / 10; }
}

/* Additions */
.feature-spot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; margin-bottom: 90px; }
.white .spot:hover h3, .light .spot:hover h3 { color: var(--magenta); }
@media (max-width: 900px) { .feature-spot { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; } }
/* backdrop-filter makes the header a containing block for fixed children — drop it while the mobile menu is open */
.header.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }

/* Server-side forms */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; max-width: calc(100% - 32px);
  background: #fff; color: var(--ink); padding: 16px 24px; border-radius: var(--r); box-shadow: 0 20px 60px -10px rgba(0,0,0,.6);
  border-left: 4px solid #1f9d55; font-size: .95rem; animation: toast 6s var(--ease) forwards; }
.toast.error { border-left-color: var(--magenta); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }
.fld-err { display: block; color: var(--magenta-soft); font-size: .84rem; margin-top: 6px; }
.fld-err:empty { display: none; }
.input-validation-error { border-color: var(--magenta-soft) !important; }
.form-error { padding: 16px 20px; border-radius: var(--r); background: rgba(194,21,107,.12); border: 1px solid rgba(224,35,127,.4); color: #ffd3e6; }
.form-error a { color: #fff; text-decoration: underline; }
.sent-panel { padding: 48px; border-radius: var(--r-lg); background: var(--ink-800); border: 1px solid var(--line-d); }
.sent-panel h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Brand logo (CAN Technologies artwork) */
.brand img { display: block; height: 52px; width: auto; }
.brand-lg img { height: 72px; }
@media (max-width: 640px) { .brand img { height: 40px; } }
