/* =========================================================
   Einfobase — design tokens
   Base: deep navy taken from the logo's "info" blue.
   Accents: the twelve triangle colours of the Einfobase mark.
   ========================================================= */
:root {
  --night: #0A1633;
  --night-2: #0F1F45;
  --night-3: #16295A;
  --paper: #EEF3FB;
  --mist: #A3B4D3;
  --line: rgba(163, 180, 211, 0.16);
  --line-strong: rgba(163, 180, 211, 0.3);

  --cyan: #0092C3;   --sky: #32C3F8;
  --violet: #893CDA; --pink: #FE6FBF;
  --wine: #9F0052;   --magenta: #FF0084;
  --flame: #EF4524;  --amber: #F9AC22;
  --cobalt: #0F5CA4; --azure: #51AAFE;
  --forest: #008141; --green: #33C943;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --r-lg: 28px;   /* sections, big tiles */
  --r-md: 16px;   /* mockups inside tiles */
  --r-sm: 10px;   /* small chips */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--night); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-variation-settings: "opsz" 96; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--night);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-go { background: var(--green); color: #05230D; }
.btn-go:hover { background: #4FDC5E; }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 22, 51, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.brand-mark { width: 26px; height: auto; }
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.w-info { color: var(--paper); }
.w-base { color: var(--sky); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: var(--mist);
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--paper); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.lattice {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 30%, transparent 85%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.92rem; font-weight: 600; color: var(--mist);
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 31, 69, 0.6);
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(51, 201, 67, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(51, 201, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(51, 201, 67, 0); } }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 28px;
  max-width: 50ch;
  font-size: 1.15rem;
  color: var(--mist);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { position: relative; display: grid; place-items: center; }
.glow {
  position: absolute; inset: 8% 6%;
  background:
    radial-gradient(circle at 70% 20%, rgba(50, 195, 248, .45), transparent 55%),
    radial-gradient(circle at 25% 50%, rgba(255, 0, 132, .35), transparent 55%),
    radial-gradient(circle at 70% 85%, rgba(51, 201, 67, .35), transparent 55%);
  filter: blur(50px);
  z-index: -1;
}
.big-mark { width: min(100%, 400px); height: auto; overflow: visible; }

/* each triangle: entrance + parallax */
.big-mark .t {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(calc(var(--mx, 0) * var(--z) * 14px), calc(var(--my, 0) * var(--z) * 14px));
  transition: transform .9s var(--ease);
}
.big-mark polygon {
  transform-box: fill-box;
  transform-origin: center;
  animation: assemble 1.3s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 150ms);
  transition: filter .3s;
}
.big-mark .t:nth-child(odd) polygon  { --sx: -120px; --sy: -60px; --sr: -90deg; }
.big-mark .t:nth-child(even) polygon { --sx: 140px; --sy: 80px; --sr: 120deg; }
.big-mark .t:nth-child(3n) polygon   { --sx: 60px; --sy: -150px; --sr: 200deg; }
@keyframes assemble {
  from { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(.4); }
  to   { opacity: 1; transform: none; }
}
.big-mark .t:hover polygon { filter: brightness(1.25); }

.hero-foot { margin-top: 64px; }
.capability-row {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  color: var(--mist); font-weight: 600; font-size: 0.95rem;
}
.capability-row li { display: inline-flex; align-items: center; gap: 10px; }
.capability-row li::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--c, var(--sky));
}
.capability-row li:nth-child(1) { --c: var(--sky); }
.capability-row li:nth-child(2) { --c: var(--amber); }
.capability-row li:nth-child(3) { --c: var(--pink); }
.capability-row li:nth-child(4) { --c: var(--azure); }
.capability-row li:nth-child(5) { --c: var(--magenta); }
.capability-row li:nth-child(6) { --c: var(--flame); }
.capability-row li:nth-child(7) { --c: var(--violet); }
.capability-row li:nth-child(8) { --c: var(--green); }
.capability-row li:nth-child(9) { --c: var(--cyan); }

/* ---------- Generic block ---------- */
.block { padding: 128px 0; position: relative; }
.block-alt { background: var(--night-2); }
.block-head { max-width: 760px; margin-bottom: 64px; }
.block-head p { margin-top: 20px; color: var(--mist); font-size: 1.12rem; max-width: 58ch; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "soft soft erp"
    "crm  lms  erp"
    "edu  plat plat";
  gap: 18px;
}
.tile-soft { grid-area: soft; }
.tile-erp  { grid-area: erp; }
.tile-crm  { grid-area: crm; }
.tile-lms  { grid-area: lms; }
.tile-edu  { grid-area: edu; }
.tile-plat { grid-area: plat; }

.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--a) 18%, transparent), transparent 55%),
    var(--night-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s;
}
.tile::before {
  /* corner triangle in the tile's pair of colours */
  content: "";
  position: absolute; top: 0; right: 0;
  width: 64px; height: 64px;
  background: linear-gradient(225deg, var(--b) 50%, transparent 50%);
  opacity: .9;
  transition: width .4s var(--ease), height .4s var(--ease);
}
.tile:hover { border-color: color-mix(in srgb, var(--b) 55%, transparent); }
.tile:hover::before { width: 84px; height: 84px; }
.tile-text { max-width: 44ch; position: relative; }
.tile-text h3 { margin-bottom: 10px; }
.tile-text p { color: var(--mist); font-size: 0.98rem; }

.mock {
  border-radius: var(--r-md);
  background: rgba(5, 12, 30, 0.55);
  border: 1px solid var(--line);
  font-size: 12px;
}

/* code */
.tile-soft { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: end; }
.code { overflow: hidden; }
.code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--mist);
}
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.code-bar i:first-child { background: var(--flame); }
.code-bar i:nth-child(2) { background: var(--amber); }
.code-bar i:nth-child(3) { background: var(--green); }
.code-bar span { margin-left: 8px; }
.code pre {
  margin: 0; padding: 16px 18px 20px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.75;
  color: #C9D6EE;
  white-space: pre; overflow-x: auto;
}
.code .k { color: var(--pink); }
.code .f { color: var(--sky); }
.code .s { color: var(--green); }
.caret {
  display: inline-block; width: 7px; height: 15px; margin-left: 2px;
  background: var(--sky); vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* erp */
.erp { padding: 16px; display: grid; gap: 14px; }
.erp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.erp-kpis div { background: rgba(255,255,255,.04); border-radius: var(--r-sm); padding: 10px 12px; }
.erp-kpis small { display: block; color: var(--mist); }
.erp-kpis b { font-family: var(--display); font-size: 1.15rem; }
.erp-bars { height: 120px; display: flex; align-items: flex-end; gap: 7px; padding: 0 4px; }
.erp-bars span {
  flex: 1; height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--a), var(--b));
  transform-origin: bottom;
}
.erp-mods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.erp-mods li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--mist); }

/* crm */
.crm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.crm .col { display: grid; gap: 6px; align-content: start; }
.crm small { color: var(--mist); margin-bottom: 2px; }
.crm i { display: block; height: 26px; border-radius: 7px; background: rgba(255,255,255,.07); border-left: 3px solid var(--a); }
.crm i.won { background: color-mix(in srgb, var(--b) 30%, transparent); border-left-color: var(--b); }

/* lms */
.lms { padding: 14px; display: grid; gap: 12px; }
.lms-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; color: var(--mist); }
.lms .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.lms .bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--b)); }

/* hub */
.hub { padding: 10px; }
.hub svg { width: 100%; height: auto; }
.hub-lines line { stroke: var(--b); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .7; }
.hub-core { fill: var(--a); stroke: var(--b); stroke-width: 2; }
.hub-core-t { fill: #fff; font: 700 9px var(--body); }
.hub-node rect { fill: rgba(255,255,255,.06); stroke: var(--line-strong); }
.hub-node text { fill: var(--paper); font: 600 9px var(--body); }

/* platform */
.tile-plat { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.plat { padding: 14px; display: grid; gap: 8px; }
.plat .layer { display: flex; gap: 6px; }
.plat .layer span {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); color: var(--mist);
}
.plat .layer:first-child span { background: color-mix(in srgb, var(--b) 22%, transparent); color: var(--paper); }
.plat .layer:nth-child(2) span { background: color-mix(in srgb, var(--a) 35%, transparent); color: var(--paper); }

/* ---------- Web & apps showcase ---------- */
.build-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.build-copy > p { margin-top: 20px; color: var(--mist); font-size: 1.1rem; max-width: 46ch; }
.tabs { margin-top: 36px; display: grid; gap: 8px; }
.tabs button {
  text-align: left; cursor: pointer;
  display: grid; gap: 2px;
  padding: 16px 20px 16px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  transition: background-color .25s, border-color .25s;
}
.tabs button b { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.tabs button span { color: var(--mist); font-size: 0.93rem; }
.tabs button::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  border-radius: 3px; background: var(--sky);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.tabs button:hover { border-color: var(--line-strong); }
.tabs button[aria-selected="true"] { background: var(--night-3); border-color: var(--line-strong); }
.tabs button[aria-selected="true"]::before { transform: scaleY(1); }

.device-stage { display: grid; justify-items: center; gap: 14px; }
.device {
  width: 100%; max-width: 620px;
  height: 420px;
  border-radius: 20px;
  background: #F7F9FD;
  color: #12203F;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: max-width .6s var(--ease), height .6s var(--ease), border-radius .6s var(--ease);
}
.device[data-view="app"] { max-width: 260px; height: 500px; border-radius: 40px; border: 8px solid #1B2A50; }
.device-bar {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #E8EDF6;
  transition: opacity .3s, margin .4s var(--ease);
}
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C7D0E0; }
.device-bar .url {
  margin-left: 12px; flex: 1; max-width: 260px;
  padding: 4px 12px; border-radius: 999px; background: #fff; color: #5A6B8C; font-size: 12px;
}
.device[data-view="app"] .device-bar { opacity: 0; margin-top: -40px; }
.device-body { position: relative; flex: 1; }
.view {
  position: absolute; inset: 0;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s;
  font-size: 13px;
}
.device[data-view="static"] .v-static,
.device[data-view="dynamic"] .v-dynamic,
.device[data-view="shop"] .v-shop,
.device[data-view="app"] .v-app {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .4s .15s, transform .5s .15s var(--ease), visibility 0s;
}

/* static mock */
.s-nav { display: flex; align-items: center; gap: 18px; color: #5A6B8C; }
.s-nav b { color: #12203F; margin-right: auto; font-family: var(--display); font-size: 15px; }
.s-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--cobalt); color: #fff; font-weight: 700; font-size: 12px; }
.s-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-top: 26px; align-items: center; }
.s-hero h4 { font-size: 26px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 10px; }
.s-hero p { color: #5A6B8C; margin-bottom: 14px; }
.s-img {
  height: 150px; border-radius: 14px;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255,255,255,.25) 50%),
    linear-gradient(160deg, var(--sky), var(--cobalt));
}
.s-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.s-cols div { height: 74px; border-radius: 12px; background: #E8EDF6; }

/* dynamic mock */
.v-dynamic { display: grid; grid-template-columns: 130px 1fr; gap: 0; padding: 0; }
.d-side { background: #12203F; color: #A3B4D3; padding: 18px 14px; display: grid; align-content: start; gap: 4px; }
.d-side b { color: #fff; font-family: var(--display); font-size: 15px; margin-bottom: 12px; }
.d-side span { padding: 7px 10px; border-radius: 8px; }
.d-side span.on { background: rgba(50,195,248,.18); color: #fff; }
.d-main { padding: 18px; display: grid; align-content: start; gap: 10px; }
.d-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.d-search { flex: 1; padding: 8px 12px; border-radius: 10px; background: #E8EDF6; color: #7D8BA6; }
.d-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 700; font-size: 11px; }
.d-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 #E2E8F2; }
.d-row i { width: 10px; height: 10px; border-radius: 3px; background: var(--sky); }
.d-row:nth-child(3) i { background: var(--green); }
.d-row:nth-child(4) i { background: var(--amber); }
.d-row:nth-child(5) i { background: var(--pink); }
.d-row span { flex: 1; }
.d-row em { font-style: normal; font-weight: 700; font-family: var(--display); font-size: 15px; }

/* shop mock */
.shop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shop-top b { font-family: var(--display); font-size: 16px; }
.cart {
  border: 0; cursor: default;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 14px; border-radius: 999px; background: #12203F; color: #fff; font-weight: 700; font-size: 12px;
}
.cart-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center; background: var(--green); color: #05230D;
}
.cart-n.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 #E2E8F2; }
.p-img {
  height: 130px; border-radius: 10px; margin-bottom: 6px;
  background:
    linear-gradient(135deg, transparent 50%, rgba(255,255,255,.3) 50%),
    color-mix(in srgb, var(--c) 85%, #fff);
}
.prod span { color: #5A6B8C; font-size: 12px; }
.prod b { font-family: var(--display); font-size: 15px; }
.add {
  margin-top: 6px; padding: 8px; border-radius: 10px; border: 0; cursor: pointer;
  background: #E8EDF6; color: #12203F; font-weight: 700; font-size: 12px;
  transition: background-color .2s, color .2s;
}
.add:hover { background: var(--cobalt); color: #fff; }
.add.added { background: var(--green); color: #05230D; }

/* app mock */
.v-app { padding: 14px 16px; display: grid; align-content: start; gap: 10px; background: linear-gradient(180deg, #EAF4FF, #F7F9FD 40%); }
.a-status { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.a-hi { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.a-card { padding: 14px; border-radius: 16px; color: #fff; display: grid; gap: 2px; }
.a-card small { opacity: .85; }
.a-card b { font-size: 14px; }
.a-card-1 { background: linear-gradient(135deg, var(--cobalt), var(--azure)); }
.a-card-2 { background: linear-gradient(135deg, var(--forest), var(--green)); }
.a-card-3 { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.a-tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; justify-content: space-around; padding: 12px; border-radius: 18px; background: #12203F;
}
.a-tabbar i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.25); }
.a-tabbar i.on { background: var(--sky); }

.device-note { color: var(--mist); font-size: 0.88rem; min-height: 1.4em; }

/* ---------- Process ---------- */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative;
  counter-reset: none;
}
.process::before {
  /* track */
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line);
}
.process::after {
  /* progress fill, driven by --p from script.js */
  content: ""; position: absolute; left: 0; top: 23px; height: 2px;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--sky), var(--violet), var(--magenta), var(--amber), var(--green));
}
.process li { position: relative; padding-right: 28px; }
.p-no {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 26px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--line-strong);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  transition: border-color .4s, background-color .4s, color .4s;
}
.process li.lit .p-no { border-color: var(--sky); background: var(--sky); color: var(--night); }
.process h3 { margin-bottom: 10px; }
.process p { color: var(--mist); font-size: 0.97rem; }

/* ---------- Phindbooks ---------- */
.block-books { padding: 0; }
.books-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 72px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 15% 100%, rgba(249, 172, 34, .25), transparent 50%),
    radial-gradient(circle at 90% 0%, rgba(255, 0, 132, .22), transparent 50%),
    var(--night-3);
  border: 1px solid var(--line);
}
.shelf { display: grid; }
.books { height: 260px; display: flex; align-items: flex-end; gap: 6px; padding: 0 20px; }
.books span {
  flex: 1; max-width: 46px; height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(to bottom, transparent 12%, rgba(255,255,255,.35) 12%, rgba(255,255,255,.35) 14%, transparent 14%,
                    transparent 84%, rgba(255,255,255,.25) 84%, rgba(255,255,255,.25) 86%, transparent 86%),
    var(--c);
  transform-origin: bottom left;
  transition: transform .45s var(--ease);
}
.books span.lean { transform: rotate(12deg); transform-origin: bottom left; }
.books span:hover { transform: translateY(-14px); }
.shelf-board { height: 12px; border-radius: 4px; background: linear-gradient(#5A3A1E, #3E2712); box-shadow: 0 12px 24px -8px rgba(0,0,0,.6); }
.books-copy h2 { margin-bottom: 22px; }
.books-copy p { color: var(--mist); font-size: 1.08rem; margin-bottom: 16px; max-width: 48ch; }
.books-copy .btn { margin-top: 12px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-year {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(6rem, 17vw, 15rem);
  line-height: .85;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 96;
  background: linear-gradient(135deg, var(--sky) 0%, var(--violet) 30%, var(--magenta) 52%, var(--amber) 75%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--mist); font-size: 1.08rem; margin-bottom: 16px; max-width: 54ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 32px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts div { background: var(--night); padding: 18px 20px; }
.facts dt { color: var(--mist); font-size: 0.88rem; }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }

/* ---------- Contact ---------- */
.block-contact { background: var(--night-2); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy p { margin-top: 20px; color: var(--mist); font-size: 1.1rem; max-width: 42ch; }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; max-width: 40ch; }
.contact-list span { color: var(--mist); font-size: 0.88rem; }
.contact-list a { font-weight: 700; text-decoration-color: var(--sky); text-underline-offset: 4px; }

.form {
  display: grid; gap: 18px;
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--night);
  border: 1px solid var(--line);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  font: inherit; font-weight: 500; font-size: 1rem;
  color: var(--paper);
  background: var(--night-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(50, 195, 248, .18); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; padding: 0; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mist); font-weight: 600; font-size: 0.88rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--paper); color: var(--paper); }
.chips input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--night); }
.chips input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tagline { margin-top: 10px; color: var(--green); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.footer-links a { color: var(--mist); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--paper); }
.footer-word {
  margin: 48px 0 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 19vw, 17rem);
  line-height: .8; letter-spacing: -0.06em;
  font-variation-settings: "opsz" 96;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap;
  user-select: none;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--mist); font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; justify-self: start; }
  .hero-art .glow { inset: -10%; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "soft soft"
      "erp  crm"
      "erp  lms"
      "edu  edu"
      "plat plat";
  }
  .build-grid, .about-grid, .contact-grid, .books-grid { grid-template-columns: 1fr; gap: 48px; }
  .books-grid { padding: 56px 40px; }
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before, .process::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process::after { height: calc(var(--p, 0) * 100%); bottom: auto; background: linear-gradient(180deg, var(--sky), var(--violet), var(--magenta), var(--amber), var(--green)); }
  .process li { padding: 0 0 0 76px; }
  .p-no { position: absolute; left: 0; top: -6px; margin: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: rgba(10, 22, 51, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility 0s .3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .3s; }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--paper); }
  .nav-links .btn { margin-top: 18px; }

  .hero { padding-top: 104px; }
  .hero-art { max-width: 118px; }
  .hero-grid { gap: 24px; }
  .hero-kicker { margin-bottom: 20px; }
  .hero-foot { margin-top: 48px; }
  .block { padding: 88px 0; }
  .block-head { margin-bottom: 44px; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "soft" "erp" "crm" "lms" "edu" "plat"; }
  .tile-soft, .tile-plat { grid-template-columns: 1fr; }
  .tile { padding: 24px; }

  .device { height: 400px; }
  .v-dynamic { grid-template-columns: 1fr; }
  .d-side { display: none; }
  .s-hero { grid-template-columns: 1fr; }
  .s-img { display: none; }
  .s-hero h4 { font-size: 22px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid .prod:nth-child(3) { display: none; }
  .p-img { height: 100px; }

  .books-grid { padding: 44px 24px; border-radius: 22px; }
  .books { height: 190px; padding: 0 8px; }
  .wrap.books-grid { width: min(1200px, 100% - 24px); }
  .form { padding: 24px; }
  .f-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .big-mark .t { transform: none !important; }
}
