/* =========================================================================
   MELYQRATECH — premium technology studio site
   Design system / components
   ========================================================================= */

:root {
  /* palette — midnight navy + electric blue / cyan / violet */
  --bg: #080b12;
  --bg-2: #0b0f18;
  --surface: #10151f;
  --raised: #161c28;
  --raised-2: #1b2231;
  --line: rgba(230, 236, 246, 0.08);
  --line-strong: rgba(230, 236, 246, 0.16);

  --text: #eef1f7;
  --secondary: #aab2c5;
  --muted: #79839a;

  --blue: #3b82f6;
  --blue-bright: #5b95ff;
  --cyan: #22d3ee;
  --violet: #7c5cff;
  --mint: #b9e2d3;
  --amber: #f2b66b;

  --grad-accent: linear-gradient(120deg, #3b82f6 0%, #22d3ee 55%, #7c5cff 100%);
  --glow-blue: rgba(59, 130, 246, 0.4);
  --glow-cyan: rgba(34, 211, 238, 0.25);
  --glow-violet: rgba(124, 92, 255, 0.28);

  --display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page: min(1200px, calc(100% - 56px));
  --page-wide: min(1320px, calc(100% - 56px));
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(900px 620px at 8% 12%, rgba(124, 92, 255, 0.12), transparent 62%),
    radial-gradient(800px 700px at 50% 108%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.06; font-weight: 600; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(59, 130, 246, 0.4); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell { width: var(--page); margin-inline: auto; }
.shell-wide { width: var(--page-wide); margin-inline: auto; }

/* ---------------- typography helpers ---------------- */
.eyebrow,
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}
.kicker.tone-blue { color: var(--blue-bright); }
.kicker.tone-cyan { color: var(--cyan); }
.kicker.tone-violet { color: var(--violet); }

.lead { font-size: 1.075rem; color: var(--secondary); line-height: 1.7; }
.muted { color: var(--muted); }

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- buttons ---------------- */
.btn {
  --btn-pad-y: 13px;
  --btn-pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: var(--grad-accent);
  color: #06101c;
  box-shadow: 0 10px 30px -10px var(--glow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px var(--glow-blue), 0 0 0 1px rgba(91, 149, 255, 0.4);
}
.btn-ghost {
  background: rgba(230, 236, 246, 0.03);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 149, 255, 0.55);
  background: rgba(59, 130, 246, 0.08);
}
.btn-block { width: 100%; }

/* ---------------- header / nav ---------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
}
.topbar {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-tile {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4f5f8;
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), transform 0.4s var(--ease);
}
.brand:hover .brand-tile { border-color: var(--blue-bright); transform: rotate(-4deg); }
.brand-mark {
  width: 21px;
  height: 21px;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-8deg);
}
.brand-mark span { display: block; border-radius: 3px; }
.brand-mark span:nth-child(1) { background: var(--blue); }
.brand-mark span:nth-child(2) { background: var(--violet); transform: translateY(5px); }
.brand-mark span:nth-child(3) { background: var(--bg); transform: translateY(-3px); }
.brand-mark span:nth-child(4) { background: var(--cyan); }

.head-right { display: flex; align-items: center; gap: 18px; }
.head-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.head-meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(185, 226, 211, 0.16);
}
.clock { font-family: var(--mono); font-size: 12px; color: var(--secondary); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(230, 236, 246, 0.05); }
.nav-links a.active { color: var(--text); background: rgba(59, 130, 246, 0.12); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--grad-accent);
  color: #06101c;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--glow-blue); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(230, 236, 246, 0.03);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------------- progress line ---------------- */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: var(--grad-accent);
  box-shadow: 0 0 12px var(--glow-blue);
}

/* ---------------- layout primitives ---------------- */
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin-top: 18px; }
.section-head .lead { margin-top: 20px; }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.section-head.split .aside { color: var(--secondary); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 92px);
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 600;
  margin: 22px 0 0;
}
.hero h1 .line { display: block; }
.hero-copy { margin-top: 26px; font-size: 1.1rem; color: var(--secondary); max-width: 52ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-location {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-location .pin {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

/* hero visual composition */
.hero-visual { position: relative; min-height: 440px; }
#network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-orbit { position: absolute; inset: 0; z-index: 1; }
.hero-float { position: absolute; z-index: 2; }

.hero-window {
  position: relative;
  z-index: 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(59, 130, 246, 0.08);
  transform: perspective(1400px) rotateY(-9deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out);
}
.hero-window:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateY(-4px); }
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.6);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: block; }
.win-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hero-window img { width: 100%; }

/* floating glass cards */
.glass {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(22, 28, 40, 0.86), rgba(16, 21, 31, 0.82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.75);
}
.glass-pad { padding: 14px 16px; }
.glass-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.glass-value { font-family: var(--display); font-size: 20px; font-weight: 600; margin-top: 4px; }

.float-tl { top: -26px; left: -34px; width: 196px; }
.float-br { bottom: -30px; right: -26px; width: 210px; }
.float-mr { top: 44%; right: -40px; width: 178px; }

/* mini bar chart */
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 38px; margin-top: 10px; }
.minibars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(59, 130, 246, 0.35));
  opacity: 0.85;
}
/* mini ledger rows */
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .amt { font-family: var(--mono); }
.ledger-row .amt.in { color: var(--mint); }
.ledger-row .amt.out { color: var(--amber); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.hero-badge {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--secondary);
  background: rgba(16, 21, 31, 0.8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.hero-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(185, 226, 211, 0.15); }

/* ---------------- credibility ---------------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cred-cell {
  background: var(--bg);
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s var(--ease);
}
.cred-cell:hover { background: var(--bg-2); }
.cred-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cred-label { color: var(--secondary); font-size: 0.95rem; }
.cred-note { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }

.cred-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.cred-strip b { color: var(--secondary); font-weight: 600; }
.cred-strip .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ---------------- products ---------------- */
.products-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8); }
.product-card .glow {
  position: absolute;
  inset: -1px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.product-card.tone-blue .glow { background: radial-gradient(600px 320px at 12% 0%, rgba(59, 130, 246, 0.16), transparent 70%); }
.product-card.tone-violet .glow { background: radial-gradient(600px 320px at 12% 0%, rgba(124, 92, 255, 0.16), transparent 70%); }
.product-card:hover .glow { opacity: 1; }
.product-card > * { position: relative; z-index: 1; }

.product-shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #05070c;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-shot { transform: translateY(-4px) scale(1.01); }
.product-shot .win-bar { background: rgba(8, 11, 18, 0.7); }

.product-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 10px 0 6px; }
.product-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.product-card.tone-violet .product-cat { color: var(--violet); }
.product-desc { color: var(--secondary); font-size: 1.02rem; line-height: 1.7; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 24px 0 28px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--secondary); }
.feature-list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--cyan); }

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.product-cta svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.product-cta:hover { transform: translateY(-2px); border-color: var(--blue-bright); background: rgba(59, 130, 246, 0.1); color: #fff; }
.product-cta:hover svg { transform: translate(3px, -3px); }
.product-card.tone-violet .product-cta:hover { border-color: var(--violet); background: rgba(124, 92, 255, 0.12); }

/* ---------------- capabilities (what we build) ---------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.cap-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease-out), background 0.4s var(--ease);
}
.cap-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  opacity: 0.7;
}
.cap-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--raised); }
.cap-card:hover::after { transform: scaleX(1); }
.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue-bright);
  margin-bottom: 22px;
}
.cap-icon svg { width: 24px; height: 24px; }
.cap-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.cap-card > p { color: var(--secondary); font-size: 0.98rem; margin-bottom: 20px; }
.cap-card ul { display: grid; gap: 9px; }
.cap-card li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--secondary); }
.cap-card li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

/* ---------------- why ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.why-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.why-aside h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 18px; }
.why-aside .lead { margin-top: 20px; }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.why-item:hover { padding-left: 10px; }
.why-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
}
.why-item h3 { font-size: 1.22rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.why-item h3 .ic {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--blue-bright);
  flex: none;
}
.why-item h3 .ic svg { width: 18px; height: 18px; }
.why-item p { color: var(--secondary); font-size: 0.96rem; }

/* ---------------- process ---------------- */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 12px;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.process-stage { position: relative; }
.process-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.process-stage:nth-child(1) .process-node { color: var(--blue-bright); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.5); }
.process-stage:nth-child(2) .process-node { color: var(--cyan); box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.5); }
.process-stage:nth-child(3) .process-node { color: var(--violet); box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.12); border-color: rgba(124, 92, 255, 0.5); }
.process-stage:nth-child(4) .process-node { color: var(--mint); box-shadow: 0 0 0 5px rgba(185, 226, 211, 0.12); border-color: rgba(185, 226, 211, 0.45); }
.process-stage h3 { font-size: 1.25rem; margin-bottom: 10px; }
.process-stage p { color: var(--secondary); font-size: 0.95rem; }

/* ---------------- technology ecosystem ---------------- */
.tech-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 360px at 15% 0%, rgba(59, 130, 246, 0.08), transparent 65%),
    radial-gradient(620px 340px at 92% 100%, rgba(124, 92, 255, 0.08), transparent 65%),
    var(--surface);
  padding: clamp(26px, 3.4vw, 44px);
}
.tech-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(230, 236, 246, 0.03);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tech-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 149, 255, 0.5);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 16px 34px -18px var(--glow-blue);
}
.tech-chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tech-chip.t-blue .dot { background: var(--blue); }
.tech-chip.t-cyan .dot { background: var(--cyan); }
.tech-chip.t-violet .dot { background: var(--violet); }
.tech-chip.t-mint .dot { background: var(--mint); }

.tech-note { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.tech-note svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* ---------------- contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-headline h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 18px; }
.contact-headline .lead { margin-top: 22px; }
.contact-channels { display: grid; gap: 14px; margin-top: 34px; }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.channel:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--raised); }
.channel .ch-ic {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--blue-bright);
}
.channel .ch-ic svg { width: 22px; height: 22px; }
.channel .ch-meta { display: flex; flex-direction: column; }
.channel .ch-label { font-size: 0.8rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.channel .ch-value { font-weight: 600; }
.channel .ch-arrow { margin-left: auto; color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.channel:hover .ch-arrow { transform: translate(3px, -3px); color: var(--text); }

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(22px, 3vw, 34px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--secondary); margin-bottom: 8px; }
.field label .req { color: var(--blue-bright); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 11, 18, 0.55);
  color: var(--text);
  font-size: 0.97rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-bright);
  background: rgba(8, 11, 18, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  outline: none;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 182, 107, 0.14); }
.field .err { color: var(--amber); font-size: 0.8rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 34px 18px;
  border: 1px solid rgba(185, 226, 211, 0.3);
  border-radius: var(--radius);
  background: rgba(185, 226, 211, 0.05);
}
.form-success.show { display: block; }
.form-success .ok {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px;
  background: rgba(185, 226, 211, 0.12);
  border: 1px solid rgba(185, 226, 211, 0.3);
  color: var(--mint);
}
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--secondary); font-size: 0.95rem; margin-bottom: 20px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.form-foot .note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0 36px;
  margin-top: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.04));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
}
.footer-brand p { color: var(--secondary); font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  color: var(--secondary);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--text); }
.footer-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); }

/* ---------------- reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-26px); }
.reveal.from-right { transform: translateX(26px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }
.reveal.scale { transform: scale(0.96); }
.reveal.scale.in { transform: none; }

/* ---------------- 404 ---------------- */
.err-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.err-code {
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 600;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 18px 0 14px; }
.err-page p { color: var(--secondary); max-width: 46ch; margin: 0 auto 30px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 560px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: rgba(8, 11, 18, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
  .nav.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin-top: 8px; justify-content: center; }
  .head-meta, .clock { display: none; }
  .product-card { grid-template-columns: 1fr; }
  .product-shot { order: -1; }
  .cap-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .process-track::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .float-tl { left: -8px; width: 158px; }
  .float-br { right: -8px; width: 168px; }
  .float-mr { right: -8px; width: 150px; }
  .hero-window { transform: none; }
  .hero-window:hover { transform: translateY(-4px); }
  .feature-list { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 1fr; gap: 8px; }
  .btn { width: 100%; }
  .hero-actions .btn, .contact-headline .btn { width: auto; }
}

/* ---------------- reduced motion ---------------- */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  #network { display: none; }
}
