/* =========================================================
   malik — Vibe Coder
   Hand-crafted, dependency-free stylesheet.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plex-ar-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plex-ar-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plex-ar-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plex-ar-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plex-ar-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plex-ar-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plex-ar-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plex-ar-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #06070a;
  --bg-soft: #090b10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f2f4f7;
  --muted: #9aa2ae;
  --muted-2: #6d7480;
  --green: #4ade80;
  --amber: #fbbf24;
  --radius: 18px;
  --max: 1120px;
  --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 88% -12%, rgba(128, 148, 182, 0.11), transparent 62%),
    radial-gradient(720px 520px at 4% 14%, rgba(92, 112, 150, 0.07), transparent 62%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, 0.18); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #06070a; }
::-webkit-scrollbar-thumb { background: #22262e; border-radius: 10px; border: 2px solid #06070a; }
::-webkit-scrollbar-thumb:hover { background: #343a45; }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #fff);
}

/* ---------- Spotlight ---------- */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 20%), rgba(160, 178, 205, 0.055), transparent 42%);
}
body.pointer-fine .spotlight { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 7, 10, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    #0b0d12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 0, 0, 0.35);
  color: #fff;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-text small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.nav a:hover,
.nav a.active { color: #fff; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  place-items: center;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  width: 17px;
  height: 1.5px;
  background: #e9ecf1;
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }
body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: #fff;
  color: #07080b;
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  background: #e8ebf0;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15px; }
.btn:active { transform: translateY(0) scale(0.99); }

/* ---------- Shared section bits ---------- */
.section { position: relative; padding: 112px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.018));
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}
.section-head { max-width: 730px; margin-bottom: 54px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 23px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #d7dbe2;
  letter-spacing: 0.04em;
}
.section-head h2,
.contact-panel h2 {
  font-size: clamp(30px, 3.7vw, 47px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0;
  text-wrap: balance;
}
.section-sub {
  margin-top: 18px;
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.grad-text {
  background: linear-gradient(115deg, #ffffff 8%, #c6cedb 52%, #8d97a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 158px;
  padding-bottom: 0;
  overflow-x: clip;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 0%, #000 12%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 0%, #000 12%, transparent 76%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 58px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.07);
  color: #a7f3c6;
  font-size: 12px;
  font-weight: 500;
}
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.3vw, 63px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero h1 .grad-text { display: inline-block; }

.hero-lead {
  margin-top: 22px;
  max-width: 545px;
  color: #b3bac5;
  font-size: 16.5px;
  line-height: 1.85;
}
.hero-lead strong { color: #fff; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hero-tags li {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 12px 6px;
  isolation: isolate;
}
.glow-orb {
  position: absolute;
  z-index: -1;
  top: -50px;
  inset-inline-start: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 178, 210, 0.2), rgba(90, 110, 145, 0.07) 45%, transparent 68%);
  filter: blur(38px);
  pointer-events: none;
}

.editor {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, #0d1016 0%, #080a0e 100%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.62),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.hero-visual:hover .editor {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    0 46px 110px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(255, 255, 255, 0.05) inset;
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
}
.editor-dots { display: flex; gap: 6px; flex: none; }
.editor-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2e36;
}
.editor-dots i:nth-child(1) { background: #4a3a3a; }
.editor-dots i:nth-child(2) { background: #4a4535; }
.editor-dots i:nth-child(3) { background: #354a3b; }
.editor-file {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f9a88;
}
.editor-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.code {
  margin: 0;
  padding: 22px 22px 26px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: #c6cedb;
  direction: ltr;
  text-align: left;
  tab-size: 2;
}
.code code { font-family: inherit; }
.c-comment { color: #59616f; }
.c-key { color: #c792ea; }
.c-var { color: #82aaff; }
.c-str { color: #8fd694; }
.c-num { color: #f2a272; }
.c-bool { color: #ffcb6b; }
.c-fn { color: #82aaff; }
.c-prompt { color: #6ee7a0; }
.c-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: #c6cedb;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(11, 13, 18, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  color: #dfe4ea;
  white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: #cbd3df; flex: none; }
.chip-a { top: -16px; left: 22px; animation-delay: -1s; }
.chip-b { bottom: 26px; left: -24px; animation-delay: -3s; }
.chip-c { top: 42%; right: -22px; animation-delay: -5s; }
.chip-num {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 68px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 22px 24px;
  background: #080a0e;
  transition: background 0.3s ease;
}
.stat:hover { background: #0b0d12; }
.stat dt { font-size: 11.5px; color: var(--muted-2); }
.stat dd {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat dd span {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-inline-start: 1px;
}

/* Marquee */
.tech-marquee {
  margin-top: 48px;
  padding: 17px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.055);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.tech-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #7e8694;
  white-space: nowrap;
}
.marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #343943;
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: start;
}
.about-copy p {
  margin-bottom: 18px;
  color: #a6aeba;
  font-size: 16px;
  line-height: 1.9;
}
.about-copy p.lead {
  color: #d5dae2;
  font-size: 18.5px;
  line-height: 1.8;
}
.about-copy strong { color: #fff; font-weight: 600; }

.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.signature-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.signature strong { display: block; font-size: 14.5px; font-weight: 600; }
.signature small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted-2); }

.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.principle {
  position: relative;
  padding: 21px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}
.principle:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018));
  transform: translateY(-3px);
}
.p-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #d7dde6;
}
.p-icon svg { width: 18px; height: 18px; }
.principle h3 { margin-top: 15px; font-size: 14.5px; font-weight: 600; }
.principle p { margin-top: 6px; font-size: 12.8px; line-height: 1.7; color: var(--muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.service-card {
  position: relative;
  padding: 27px 25px 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s var(--ease), background 0.35s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018));
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.s-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  color: #e4e9f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.s-icon svg { width: 21px; height: 21px; }
.s-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #4f5661;
}
.service-card h3 { margin-top: 22px; font-size: 19.5px; font-weight: 600; letter-spacing: -0.005em; }
.service-card p { margin-top: 9px; font-size: 13.8px; line-height: 1.8; color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.chips li {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
  color: #8e96a3;
  font-size: 10.8px;
  white-space: nowrap;
}

.assurance {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  padding: 19px 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
}
.assurance-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd6e0;
}
.assurance-icon svg { width: 17px; height: 17px; }
.assurance p { flex: 1; font-size: 13px; color: var(--muted); }
.assurance p strong { color: #e8ecf1; font-weight: 600; }
.assurance a {
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  color: #dfe4ea;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.assurance a:hover { color: #fff; }

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}
.project:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.project-visual {
  position: relative;
  padding: 20px 20px 0;
  background:
    radial-gradient(520px 220px at 50% -20%, rgba(140, 160, 195, 0.13), transparent 70%),
    rgba(255, 255, 255, 0.012);
}

.mock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px 13px 0 0;
  border-bottom: 0;
  background: #0a0c11;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  height: 262px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.02);
}
.mock-dots { display: flex; gap: 5px; flex: none; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: #262a32; }
.mock-dots i:nth-child(1) { background: #433535; }
.mock-dots i:nth-child(2) { background: #43402f; }
.mock-dots i:nth-child(3) { background: #2f4337; }
.mock-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #5f6673;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-secure { flex: none; color: #566070; display: flex; }
.mock-secure svg { width: 11px; height: 11px; }

.mock-body { display: flex; height: calc(262px - 34px); }
.mock-side {
  width: 58px;
  flex: none;
  padding: 12px 9px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.012);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sk { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.sk-brand {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  margin-bottom: 5px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
}
.mock-main {
  flex: 1;
  min-width: 0;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-headline { display: flex; flex-direction: column; gap: 6px; }
.mock-headline b { display: block; width: 44%; height: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.17); }
.mock-headline span { display: block; width: 28%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); }
.mock-stats { display: flex; gap: 7px; }
.mock-stat {
  flex: 1;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mock-stat b { display: block; width: 58%; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.mock-stat i { display: block; width: 40%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); }
.mock-chart {
  flex: 1;
  min-height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 9px 9px 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}
.mock-chart span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(196, 209, 228, 0.55), rgba(120, 136, 158, 0.08));
}
.mock-chart span:nth-child(1) { height: 38%; }
.mock-chart span:nth-child(2) { height: 62%; }
.mock-chart span:nth-child(3) { height: 48%; }
.mock-chart span:nth-child(4) { height: 78%; }
.mock-chart span:nth-child(5) { height: 56%; }
.mock-chart span:nth-child(6) { height: 88%; }
.mock-chart span:nth-child(7) { height: 70%; }
.mock-chart span:nth-child(8) { height: 95%; }
.mock-rows { display: flex; flex-direction: column; gap: 5px; }
.mock-rows span { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.055); }
.mock-rows span:nth-child(1) { width: 100%; }
.mock-rows span:nth-child(2) { width: 82%; }
.mock-rows span:nth-child(3) { width: 64%; }

/* Soon project */
.mock-asalts { position: relative; }
.mock-body-blur { filter: blur(3.5px); opacity: 0.5; }
.mock-lock {
  position: absolute;
  inset: 34px 0 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(9, 11, 15, 0.25), rgba(9, 11, 15, 0.62) 72%);
}
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(12, 12, 12, 0.82);
  color: #fcd34d;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.lock-badge svg { width: 15px; height: 15px; }

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 25px 26px;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; }
.badge-live {
  color: #9af0bb;
  background: rgba(74, 222, 128, 0.075);
  border-color: rgba(74, 222, 128, 0.22);
}
.badge-live i { background: var(--green); box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); }
.badge-soon {
  color: #f6d27a;
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.22);
}
.badge-soon i { background: var(--amber); }
.project-label { font-size: 11.5px; color: var(--muted-2); }
.project-content h3 {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.project-content p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.project-content .chips { margin-top: 17px; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #eef1f5;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.25s var(--ease);
}
.project-link svg { width: 16px; height: 16px; }
.project-link:hover { color: #fff; gap: 11px; }
.project-link.muted { color: var(--muted); }
.project-link.muted:hover { color: #fff; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.step {
  position: relative;
  padding: 30px 26px 6px;
  border-inline-start: 1px solid var(--border);
}
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step::before {
  content: "";
  position: absolute;
  top: -3.5px;
  inset-inline-start: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f7784;
  box-shadow: 0 0 0 4px var(--bg-soft);
}
.step:first-child::before { inset-inline-start: 0; }
.step-num {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #a7aeb9;
}
.step h3 { margin-top: 16px; font-size: 16px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 13.2px; line-height: 1.8; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 64px 54px 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    #080a0e;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.contact-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 680px;
  height: 440px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 178, 210, 0.18), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.contact-panel > :not(.contact-glow) { position: relative; }
.contact-panel .eyebrow { justify-content: center; }
.contact-panel h2 { max-width: 680px; margin-inline: auto; }
.contact-panel > p {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.contact-panel > p strong { color: #fff; font-weight: 600; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 32px;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 34px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #c4cbd5;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), color 0.25s ease;
}
.socials a svg { width: 15px; height: 15px; }
.socials a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  color: #fff;
  transform: translateY(-2px);
}
.contact-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.contact-note svg { width: 14px; height: 14px; flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 46px 0 34px;
  background: #050609;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand p { margin-top: 12px; font-size: 12.5px; color: var(--muted-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 10px; }
.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 11.5px;
  color: var(--muted-2);
}
.made-with b { color: #c6ced9; font-weight: 600; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 250;
  transform: translate(-50%, 16px);
  padding: 11px 18px;
  border-radius: 11px;
  background: #fff;
  color: #07080b;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: 0.07s; }
.js [data-delay="2"] { transition-delay: 0.14s; }
.js [data-delay="3"] { transition-delay: 0.21s; }
.js [data-delay="4"] { transition-delay: 0.28s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { gap: 38px; }
  .about-grid { gap: 42px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; }
  .step { padding-inline: 18px; }
  .step::before { inset-inline-start: 18px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 82px;
    inset-inline: 16px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(9, 11, 15, 0.98);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 13px; border-radius: 10px; font-size: 14.5px; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.active { background: rgba(255, 255, 255, 0.055); }
  .nav-toggle { display: grid; }

  .hero { padding-top: 128px; }
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-lead { max-width: 620px; }
  .stats { margin-top: 52px; }

  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .principle-grid { max-width: 620px; }

  .projects { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step { padding: 26px 20px 22px; border-top: 1px solid var(--border); }
  .step:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .step::before { top: -3.5px; }
  .step:nth-child(odd)::before { inset-inline-start: 0; }
  .step:nth-child(even)::before { inset-inline-start: 20px; }

  .contact-panel { padding: 52px 28px 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav { padding-top: 0; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 82px 0; }
  .section-head { margin-bottom: 40px; }
  .header-inner { height: 66px; }
  .header-actions .btn { display: none; }
  .nav { top: 76px; }

  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero-lead { font-size: 15.5px; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
  .hero-tags { margin-top: 22px; }

  .float-chip { font-size: 11px; padding: 8px 11px; }
  .chip-a { top: -13px; left: 10px; }
  .chip-b { bottom: 14px; left: -8px; }
  .chip-c { top: 38%; right: -6px; }
  .code { font-size: 11px; padding: 18px 16px 22px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
  .stat dd { font-size: 27px; }
  .stat dt { font-size: 10.5px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .assurance { flex-wrap: wrap; }
  .assurance p { flex-basis: calc(100% - 50px); }
  .assurance a { margin-inline-start: 49px; }

  .principle-grid { grid-template-columns: 1fr; }
  .mock { height: 224px; }
  .mock-body { height: calc(224px - 34px); }
  .mock-side { width: 46px; }
  .project-content { padding: 22px 20px 24px; }
  .project-content h3 { font-size: 26px; }

  .process { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd), .step:nth-child(even) { padding: 22px 0 20px; border-inline-start: 0; }
  .step::before, .step:nth-child(odd)::before, .step:nth-child(even)::before { inset-inline-start: 0; }

  .contact-panel { padding: 44px 20px 34px; border-radius: 22px; }
  .contact-actions .btn { width: 100%; }
  .socials a { flex: 1; justify-content: center; min-width: 100px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero-actions .btn { min-width: 100%; }
  .float-chip { display: none; }
}

/* ---------- Error page ---------- */
.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}
.error-inner { max-width: 460px; }
.error-code {
  font-family: var(--mono);
  font-size: clamp(76px, 18vw, 132px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(115deg, #ffffff 8%, #c6cedb 52%, #7e8898 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-inner h1 { margin-top: 18px; font-size: 22px; font-weight: 600; }
.error-inner p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.error-inner .btn { margin-top: 26px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
