/* ================================================================
   NECXSOFT — Solana development studio
   Design tokens, layout, and components
   ================================================================ */

:root {
  --bg: #050608;
  --bg-2: #0a0c10;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f5f7;
  --text-2: #b4bac4;
  --muted: #7d8592;

  --mint: #19e6a0;
  --mint-2: #0fbf84;
  --violet: #9562ff;
  --cyan: #4cc9f0;

  --grad: linear-gradient(100deg, var(--violet) 0%, var(--cyan) 50%, var(--mint) 100%);
  --grad-soft: linear-gradient(100deg, rgba(149, 98, 255, 0.18), rgba(25, 230, 160, 0.18));

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(25, 230, 160, 0.3);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--mint);
  color: #04110c;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ================================================================
   BACKGROUND ATMOSPHERE
   ================================================================ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}

.orb-1 {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -160px;
  background: rgba(149, 98, 255, 0.45);
}

.orb-2 {
  width: 560px;
  height: 560px;
  top: -200px;
  right: -180px;
  background: rgba(25, 230, 160, 0.32);
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(32px, 4.6vw, 54px);
}

.section-lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-2);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head-row .section-head {
  margin-bottom: 0;
  max-width: 640px;
}

.section-head-row > .section-lead {
  max-width: 420px;
  margin-top: 0;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--mint);
  color: #03130d;
  box-shadow: 0 0 0 0 rgba(25, 230, 160, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(25, 230, 160, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.link-arrow:hover {
  color: var(--mint);
}

/* ================================================================
   NAVBAR
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 6, 8, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 26px; }

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

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  padding: 150px 0 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-2);
}

.pill-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(25, 230, 160, 0.3);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero-sub {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.7vw, 19px);
  color: var(--text-2);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.hero-facts svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
  flex-shrink: 0;
}

/* Code window */

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: var(--grad);
  filter: blur(80px);
  opacity: 0.22;
  border-radius: 40px;
  z-index: -1;
}

.code-window {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.92), rgba(9, 10, 14, 0.96));
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}

.hero-visual:hover .code-window {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.code-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.code-file {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.code-badge {
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mint);
  padding: 3px 9px;
  border: 1px solid rgba(25, 230, 160, 0.3);
  border-radius: 999px;
}

.code-body {
  margin: 0;
  padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #c9d1d9;
  overflow-x: auto;
  counter-reset: line;
  white-space: normal;
}

.code-body .ln {
  display: block;
  min-height: 1.75em;
  white-space: pre;
}

.code-body .ln::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2ch;
  margin-right: 18px;
  text-align: right;
  color: rgba(255, 255, 255, 0.18);
}

.tk-k { color: #c39bff; }
.tk-m { color: #4cc9f0; }
.tk-t { color: #19e6a0; }
.tk-s { color: #f5c97a; }
.tk-c { color: #5d6573; font-style: italic; }
.tk-f { color: #82aaff; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 14, 19, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}

.float-chip strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
}

.float-chip span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.chip-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(25, 230, 160, 0.12);
  color: var(--mint);
}

.chip-dot svg {
  width: 16px;
  height: 16px;
}

.chip-dot.violet {
  background: rgba(149, 98, 255, 0.14);
  color: var(--violet);
}

.chip-a {
  left: -36px;
  bottom: 54px;
}

.chip-b {
  right: -20px;
  top: -24px;
  animation-delay: -3s;
}

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

/* ================================================================
   STACK MARQUEE
   ================================================================ */

.stack {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.stack-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: rgba(243, 245, 247, 0.5);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-track span:hover {
  color: var(--text);
}

.marquee-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ================================================================
   CARDS (shared)
   ================================================================ */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 230, 160, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--line-strong);
}

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

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(25, 230, 160, 0.22);
  background: linear-gradient(140deg, rgba(149, 98, 255, 0.16), rgba(25, 230, 160, 0.12));
  color: var(--mint);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

/* ================================================================
   SERVICES (BENTO)
   ================================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  min-height: 300px;
}

.service h3 {
  font-size: 22px;
  margin-top: 6px;
}

.service p {
  color: var(--text-2);
  font-size: 15px;
}

.service .tags {
  margin-top: auto;
}

.service-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-wide {
  grid-column: 1 / -1;
}

.plan-head {
  min-height: 26px;
}

.service-feature .service-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mini-graph {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.acct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.acct b {
  color: var(--text);
  font-weight: 500;
}

.acct em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(149, 98, 255, 0.14);
  color: #c4a6ff;
}

.acct em.ok {
  background: rgba(25, 230, 160, 0.12);
  color: var(--mint);
}

.acct-arrow {
  align-self: center;
  color: var(--muted);
  line-height: 1;
}

/* ================================================================
   PROJECTS
   ================================================================ */

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(149, 98, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(25, 230, 160, 0.1), transparent 55%),
    var(--surface);
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.project-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 230, 160, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(25, 230, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 230, 160, 0); }
}

.project h3 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.project-intro > p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.project-visual {
  display: block;
}

.pv-window {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #0a0f0d;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(25, 230, 160, 0.04);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.project-visual:hover .pv-window {
  transform: translateY(-4px);
  border-color: rgba(25, 230, 160, 0.35);
  box-shadow: 0 50px 120px -40px rgba(25, 230, 160, 0.25);
}

.pv-window .code-file {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-window img {
  width: 100%;
  height: auto;
}

/* ================================================================
   WHY SOLANA
   ================================================================ */

.why {
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(149, 98, 255, 0.16), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(25, 230, 160, 0.13), transparent 50%),
    var(--bg-2);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-2);
  padding: 28px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.why-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* ================================================================
   PRODUCTS
   ================================================================ */

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.product h3 {
  font-size: 20px;
  margin-top: 8px;
}

.product h3 span {
  color: var(--muted);
  font-weight: 500;
}

.product p {
  font-size: 15px;
  color: var(--text-2);
}

.products-foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--text-2);
}

/* ================================================================
   PROCESS
   ================================================================ */

.process {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--mint));
  opacity: 0.5;
}

.step {
  position: relative;
  padding-right: 18px;
}

.step-num {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step:hover .step-num {
  border-color: var(--mint);
  box-shadow: 0 0 0 6px rgba(25, 230, 160, 0.08);
}

.step h3 {
  margin-top: 22px;
  font-size: 17px;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.timeline {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline div {
  background: var(--bg);
  padding: 24px;
}

.timeline dt {
  font-size: 14px;
  color: var(--text-2);
}

.timeline dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ================================================================
   PRINCIPLES
   ================================================================ */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.principle {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle h3 {
  font-size: 18px;
}

.principle p {
  font-size: 14.5px;
  color: var(--text-2);
}

.mission {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mission .card {
  padding: 28px;
}

.mission h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.mission p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

/* ================================================================
   TEAM
   ================================================================ */

.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.member {
  padding: 10px;
}

.member-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.member:hover .member-photo img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05);
}

.member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 8, 0.7));
}

.member-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.7);
  border: 1px solid rgba(25, 230, 160, 0.35);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(6px);
}

.member-info {
  padding: 18px 10px 14px;
}

.member-info h3 {
  font-size: 17px;
}

.member-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
}

.member-info p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}

/* ================================================================
   PRICING
   ================================================================ */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 90px -40px rgba(25, 230, 160, 0.4);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.plan-flag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: #03130d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-price {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan-price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-right: 4px;
}

.plan-php {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.plan-desc {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-2);
  min-height: 72px;
}

.plan ul {
  list-style: none;
  padding: 24px 0 0;
  margin: 24px 0 30px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-2);
}

.plan li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--mint);
  margin-top: 2px;
}

.plan .btn {
  margin-top: auto;
}

/* ================================================================
   FAQ
   ================================================================ */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq-wrap .section-head {
  position: sticky;
  top: 110px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--mint);
}

.faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  padding: 0 52px 26px 0;
  color: var(--text-2);
}

/* ================================================================
   CONTACT
   ================================================================ */

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-panel {
  padding: clamp(26px, 4vw, 40px);
}

.contact-panel h3 {
  font-size: 24px;
}

.contact-panel > p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
}

.next-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 22px;
}

.next-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.next-steps b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-top: 2px;
}

.next-steps p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
}

.contact-direct {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.form {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5b626e;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(25, 230, 160, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  font-size: 14px;
  color: var(--text-2);
}

.form-status.success { color: var(--mint); }
.form-status.error { color: #ff8a8a; }

.form-consent {
  font-size: 13px;
  color: var(--muted);
}

.form-consent a,
.footer-bottom a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent a:hover,
.footer-bottom a:hover {
  color: var(--mint);
}

/* ================================================================
   LEGAL PAGES (privacy, terms)
   ================================================================ */

.legal {
  padding: 140px 0 40px;
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  margin-top: 18px;
  font-size: clamp(36px, 6vw, 52px);
}

.legal-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 22px;
}

.legal p,
.legal li {
  color: var(--text-2);
}

.legal p + p,
.legal ul + p {
  margin-top: 14px;
}

.legal-meta + p {
  margin-top: 32px;
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal b {
  color: var(--text);
  font-weight: 600;
}

.legal-inner a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .legal-see-also {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ================================================================
   CTA BAND
   ================================================================ */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(25, 230, 160, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% -20%, rgba(149, 98, 255, 0.22), transparent 70%),
    var(--bg-2);
}

.cta-band h2 {
  font-size: clamp(32px, 5vw, 58px);
  max-width: 820px;
  margin: 0 auto;
}

.cta-band p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--text-2);
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-about p {
  margin-top: 18px;
  max-width: 340px;
  font-size: 14.5px;
  color: var(--text-2);
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer ul a {
  font-size: 14.5px;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--mint);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ================================================================
   REVEAL ANIMATION
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@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;
    transform: none;
  }

  .code-window {
    transform: none;
  }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 620px;
  }

  .code-window {
    transform: none;
  }

  .bento,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-feature {
    grid-column: span 2;
  }

  .why,
  .project-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 40px;
  }

  .process::before {
    display: none;
  }

  .principles,
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }

  .plan-desc {
    min-height: 0;
  }

  .faq-wrap,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-wrap .section-head {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px;
    background: rgba(5, 6, 8, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .menu-btn {
    display: block;
  }

  .nav-cta .btn {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 120px 0 64px;
  }

  .float-chip,
  .code-badge {
    display: none;
  }

  .code-body {
    font-size: 11.5px;
    padding: 18px 14px;
  }

  .code-body .ln::before {
    margin-right: 12px;
  }

  .bento,
  .products,
  .principles,
  .mission,
  .team,
  .stats,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-feature,
  .service-wide {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 18px;
    padding-right: 0;
  }

  .step h3 {
    margin-top: 10px;
  }

  .step p {
    grid-column: 2;
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .member {
    padding: 6px;
  }

  .member-info {
    padding: 14px 6px 8px;
  }

  .member-info p {
    display: none;
  }

  .form-row,
  .project-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-item p {
    padding-right: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
