/* ─────────────────────────────────────────────────────────────
   BasiliosDev — Premium dark developer landing
   Synthesis: ui-ux-pro-max (portfolio/agency, technical dark)
   + frontend-design (distinctive type, atmosphere, motion)
   ───────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  /* Brand */
  --blue:   #2563eb;
  --cyan:   #00d4ff;
  --aqua:   #00f0c8;
  --green:  #22c55e;

  /* Surfaces */
  --bg:         #0a0f1e;
  --surface:    #131b2e;
  --surface-2:  #1a2336;
  --surface-3:  #1e2940;
  --border:     #2a3956;
  --border-dim: rgba(51, 65, 85, 0.55);

  /* Text */
  --fg:     #f8fafc;
  --muted:  #9fb0c8;
  --dim:    #64748b;

  /* Glow / shadow */
  --glow-blue: rgba(37, 99, 235, 0.35);
  --glow-cyan: rgba(0, 212, 255, 0.22);

  /* Gradients */
  --grad-accent: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 45%, var(--aqua) 100%);

  /* Type */
  --font:         "Inter", "Segoe UI", sans-serif;
  --display:      "Exo 2", "Inter", sans-serif;       /* H2/H3 — cyberpunk legível */
  --display-hero: "Orbitron", "Exo 2", sans-serif;   /* H1 hero — sci-fi puro    */
  --mono:         "JetBrains Mono", "Consolas", monospace;

  /* Spacing scale (8dp) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s7: 64px; --s8: 96px;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -5%,  rgba(37,99,235,.30)  0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 12%, rgba(0,212,255,.14)  0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 108%, rgba(0,240,200,.08) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, transparent 75%);
}

/* Fine grain / noise overlay for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: rgba(0,212,255,.28); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 100px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ── Layout shell ── */
.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px));
  height: 70px;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(1,4,13,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: height 300ms var(--ease), background 300ms var(--ease);
}

.nav.scrolled {
  height: 60px;
  background: rgba(1,4,13,.8);
}

.brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
  transition: color 200ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transition: width 250ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(0,212,255,.35);
  border-radius: 100px;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 200ms, background 200ms, transform 200ms, box-shadow 200ms;
  white-space: nowrap;
}

.nav-cta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(0,240,200,.6);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,240,200,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(0,240,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,240,200,0); }
}

.nav-cta:hover, .nav-cta:focus-visible {
  border-color: var(--cyan);
  background: rgba(0,212,255,.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,255,.15);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  background: rgba(19,27,46,.6);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--s7);
  min-height: calc(100dvh - 70px);
  padding: calc(70px + var(--s7)) 0 var(--s8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 var(--s3);
  padding: 6px 14px;
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 100px;
  background: rgba(0,212,255,.06);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
}

h1 {
  margin: 0;
  font-family: var(--display-hero);
  font-size: clamp(1.85rem, 4vw, 3.8rem); /* menor: Orbitron é mais largo */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em; /* Orbitron já tem espaçamento, só um toque */
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

h1 span.load { display: block; }

.h1-accent {
  display: inline;
  background: var(--grad-accent);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-text {
  margin: var(--s4) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--s5);
}

.trust-avatars {
  display: flex;
}

.trust-avatars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: linear-gradient(135deg, var(--surface-3), var(--surface));
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.trust-avatars span:first-child { margin-left: 0; }

.hero-trust p {
  margin: 0;
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.5;
}
.hero-trust strong { color: var(--muted); font-weight: 600; }

/* ── Buttons ── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms ease,
    background 200ms ease, border-color 200ms ease;
  overflow: hidden;
}

.button:active { transform: translateY(1px) scale(0.99) !important; }

.button svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 250ms var(--ease);
}

.primary {
  color: #04121f;
  background: var(--grad-accent);
  background-size: 160% auto;
  box-shadow: 0 8px 30px rgba(0,212,255,.22), inset 0 1px 0 rgba(255,255,255,.3);
  border: none;
}

.primary:hover, .primary:focus-visible {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 0 34px var(--glow-cyan), 0 18px 50px rgba(0,212,255,.32);
}
.primary:hover svg { transform: translate(3px, -3px); }

.secondary {
  color: var(--fg);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
}

.secondary:hover, .secondary:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(0,212,255,.06);
}

/* ── Terminal (hero visual) ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  perspective: 1200px;
}

/* ── Iso-hero (holographic isometric pyramid) ── */
.iso-hero {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 65% 60% at 50% 55%, rgba(0,212,255,.12), transparent 65%),
    linear-gradient(160deg, #0a1322 0%, #060b16 100%);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform 400ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

/* gradient border */
.iso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,212,255,.55), rgba(37,99,235,.2) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 6;
}

/* main SVG */
.iso-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* float wrapper — animates a simple div, não o SVG pesado */
.iso-float-wrap {
  animation: iso-float 5.5s ease-in-out infinite;
}

@keyframes iso-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* HUD corner brackets */
.hud-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(0,212,255,.5);
  z-index: 5;
  pointer-events: none;
}
.hud-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* HUD readouts */
.hud-readout {
  position: absolute;
  z-index: 5;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(0,212,255,.85);
  text-transform: uppercase;
  pointer-events: none;
}
.hud-readout i { color: var(--dim); font-style: normal; }
.hud-readout.r-tl { top: 20px; left: 46px; }
.hud-readout.r-tr { top: 20px; right: 46px; }
.hud-readout.r-bl { bottom: 20px; left: 46px; color: rgba(100,116,139,.7); letter-spacing: 0.2em; }
.hud-readout.r-br { bottom: 20px; right: 46px; color: rgba(0,240,200,.8); }

/* floating mini terminal */
.iso-terminal {
  position: absolute;
  top: 18px; right: 54px;
  z-index: 5;
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 8px;
  background: rgba(6,12,28,.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  min-width: 140px;
}
.it-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(0,212,255,.15);
  background: rgba(0,12,28,.6);
}
.it-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.it-bar span:nth-child(1) { background: #ff5f57; }
.it-bar span:nth-child(2) { background: #febc2e; }
.it-bar span:nth-child(3) { background: #28c840; }

.it-body {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
}
.it-body p { margin: 0; color: var(--dim); }
.it-body .t-prompt { color: var(--cyan); }
.it-body .t-cyan { color: var(--cyan); }
.it-body .t-green { color: var(--green); }

/* scanline overlay */
.iso-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,212,255,.03) 0 1px, transparent 1px 3px);
}
.iso-scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(0,212,255,.09), transparent);
  animation: scan-move 4.5s ease-in-out infinite;
}

@keyframes scan-move {
  0%   { top: -28%; }
  100% { top: 100%; }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

.stat-card {
  position: relative;
  padding: var(--s3);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  transition: transform 250ms var(--ease), border-color 250ms;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,212,255,.3);
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.stat-highlight {
  border-color: rgba(0,212,255,.25);
  background: linear-gradient(160deg, rgba(37,99,235,.16), rgba(0,212,255,.05));
}

/* ── Tech stack strip (marquee) ── */
.stack-strip {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  margin: 0 auto var(--s8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), rgba(19,27,46,.6));
  width: min(1160px, calc(100% - 40px));
  overflow: hidden;
}

.strip-label {
  margin: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.stack-marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
  container-type: inline-size;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.stack-track {
  display: flex;
  width: max-content;
  animation: marquee 18s ease-in-out infinite alternate;
}

.stack-strip:hover .stack-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(calc(-100% + 100cqw)); }
}

.stack-track span {
  flex-shrink: 0;
  margin-right: var(--s2);
  padding: 6px 16px;
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms, border-color 200ms, background 200ms;
}

.stack-track span:hover {
  color: var(--cyan);
  border-color: rgba(0,212,255,.4);
  background: rgba(0,212,255,.05);
}

/* ── Sections ── */
.section {
  padding-bottom: var(--s8);
  scroll-margin-top: 90px;
}

.section-head {
  margin-bottom: var(--s6);
}

.section-head.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  margin: var(--s2) 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 var(--s1);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Cards grid (soluções) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.card {
  position: relative;
  padding: var(--s5) var(--s4) var(--s4);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface), rgba(19,27,46,.55));
  transition: border-color 300ms, transform 300ms var(--ease), box-shadow 300ms;
  overflow: hidden;
}

/* spotlight glow following cursor */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0,212,255,.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(0,212,255,.32);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  transform: translateY(-5px);
}

.card:hover::before { opacity: 1; }

.card-index {
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--border);
  letter-spacing: 0.05em;
  transition: color 300ms;
}
.card:hover .card-index { color: var(--cyan); }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  color: var(--cyan);
  transition: transform 300ms var(--ease), border-color 300ms;
}
.card:hover .card-icon {
  transform: scale(1.06) rotate(-3deg);
  border-color: rgba(0,212,255,.4);
}

.card-icon svg { width: 24px; height: 24px; }

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Process steps ── */
.process-section { padding-top: 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface), rgba(19,27,46,.5));
  transition: border-color 300ms, transform 300ms var(--ease), box-shadow 300ms;
}

.step:hover {
  border-color: rgba(0,212,255,.28);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.step-num-wrap {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(0,212,255,.3);
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,.06);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,212,255,.35), transparent);
}

.step.last .step-line { display: none; }

.step-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Quote / social proof ── */
.quote-section {
  padding-bottom: var(--s8);
}

.quote-card {
  position: relative;
  margin: 0;
  max-width: 860px;
  margin-inline: auto;
  padding: var(--s7) var(--s6);
  text-align: center;
  border: 1px solid rgba(0,212,255,.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(37,99,235,.14), transparent 70%),
    linear-gradient(160deg, var(--surface), rgba(19,27,46,.6));
  overflow: hidden;
}

.quote-mark {
  width: 44px; height: 44px;
  margin: 0 auto var(--s3);
  color: rgba(0,212,255,.4);
}

.quote-card blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.quote-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: var(--s4);
}

.quote-name { font-weight: 600; color: var(--fg); }
.quote-role {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

/* ── About section ── */
.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: var(--s7);
  align-items: center;
}

.about-visual { position: relative; }

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(34,197,94,.35);
  border-radius: 100px;
  background: rgba(13,30,22,.85);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 2;
}

.about-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.about-copy p:not(.eyebrow) {
  margin: var(--s3) 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-copy h2 { margin-bottom: 0; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s5);
}

.about-tags span {
  padding: 7px 16px;
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  background: rgba(19,27,46,.6);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 200ms, border-color 200ms;
}
.about-tags span:hover {
  color: var(--cyan);
  border-color: rgba(0,212,255,.35);
}

/* ── Contact section ── */
.contact-section {
  padding-bottom: var(--s8);
  scroll-margin-top: 90px;
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  padding: var(--s7) var(--s6);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(37,99,235,.16), transparent 60%),
    linear-gradient(160deg, var(--surface), rgba(19,27,46,.7));
  box-shadow: 0 30px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}

.contact-copy p:not(.eyebrow) {
  margin: var(--s3) 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.contact-perks {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.contact-perks li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-perks li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  stroke: var(--green);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-self: start;
  padding: var(--s4);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: rgba(10,15,30,.5);
  backdrop-filter: blur(6px);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label span {
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-form input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10,15,30,.7);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
}

.contact-form input::placeholder { color: var(--dim); }

.contact-form input:focus {
  border-color: rgba(0,212,255,.7);
  background: rgba(10,15,30,.9);
  box-shadow: 0 0 0 4px rgba(0,212,255,.1);
}

.contact-form .button {
  border: none;
  width: 100%;
}

.form-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0,212,255,.15);
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,.04);
  color: var(--dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 28px max(20px, calc((100vw - 1160px) / 2 + 20px));
  background: transparent;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img {
  width: 200px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.footer-brand p { display: none; }

.footer-copy {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 50%;
  background: rgba(10,15,30,.85);
  color: var(--cyan);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease, border-color 200ms, background 200ms;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,.12);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Load animation (hero, on first paint) ── */
.load {
  opacity: 0;
  transform: translateY(22px);
  animation: load-in 800ms var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes load-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Reveal animation (scroll) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .load { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .t-cursor { animation: none; }
  .stack-track { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: var(--s6); }
  .hero-visual { max-width: 600px; }
  .hero-stats { max-width: 600px; }
  .about-section { grid-template-columns: 1fr; }
  .about-visual { max-width: 400px; }
  .about-badge { right: var(--s2); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step-line { display: none; }
}

@media (max-width: 768px) {
  .site-shell { width: calc(100% - 32px); }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(10,15,30,.97);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(16px);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 15px 24px;
    border-top: 1px solid var(--border-dim);
    font-size: 1rem;
  }

  .nav-links a::after { display: none; }

  .menu-toggle { display: flex; }

  .hero { padding-top: calc(70px + var(--s5)); }

  .stack-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    margin-bottom: var(--s7);
  }
  .stack-marquee { width: 100%; }

  .cards-grid { grid-template-columns: 1fr; }
  .quote-card { padding: var(--s6) var(--s4); }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: var(--s4) var(--s3);
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: var(--s2);
    height: auto;
    padding-block: var(--s4);
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-copy { white-space: normal; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(1.5rem, 7.5vw, 2.3rem); letter-spacing: 0; }
  h2 { font-size: clamp(1.5rem, 7vw, 2.2rem); }

  .hero-actions, .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .about-badge { right: 50%; transform: translateX(50%); }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}
