/* ============================================================
   Rahat Hossen — Portfolio Homepage
   Design tokens, base, components, layout, responsive.
   Theme: light (default) / dark. The code editor stays dark
   in both themes by design.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Light theme (default) */
  --bg: #f2f5f9;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #0c1524;
  --muted: #45556b;
  --faint: #7a8aa0;
  --line: rgba(12, 21, 36, 0.09);
  --grid: rgba(2, 132, 199, 0.06);
  --accent: #0284c7;
  --accent-rgb: 2, 132, 199;
  --on-accent: #ffffff;
  --accent2: #7c3aed;
  --green: #16a34a;
  --green-rgb: 22, 163, 74;
  --nav-bg: rgba(242, 245, 249, 0.7);
  --code-bg: #0c1524;
  --shadow: rgba(12, 21, 36, 0.14);

  /* Layout */
  --maxw: 1100px;
  --maxw-hero: 1180px;
  --nav-h: 68px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #05070d;
  --bg2: #080c15;
  --card: #0b1220;
  --text: #e8edf5;
  --muted: #9aa7ba;
  --faint: #5a6b82;
  --line: rgba(255, 255, 255, 0.06);
  --grid: rgba(56, 224, 255, 0.045);
  --accent: #38e0ff;
  --accent-rgb: 56, 224, 255;
  --on-accent: #05070d;
  --accent2: #b98cff;
  --green: #4ade80;
  --green-rgb: 74, 222, 128;
  --nav-bg: rgba(5, 7, 13, 0.65);
  --code-bg: #070b14;
  --shadow: rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s, color 0.4s;
}

/* Custom cursor is active only on fine-pointer devices */
@media (pointer: fine) {
  body.has-cursor {
    cursor: none;
  }
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
}

::selection {
  background: rgba(var(--accent-rgb), 0.3);
}

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

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.accent {
  color: var(--accent);
}

.faint {
  color: var(--faint);
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin: 0 0 14px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

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

/* ---------- Keyframes ---------- */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scanline {
  from { top: -10%; }
  to { top: 110%; }
}
@keyframes shimmer {
  from { background-position: -180% 0; }
  to { background-position: 180% 0; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.08); }
  66% { transform: translate(-20px, 14px) scale(0.96); }
}
@keyframes borderSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  display: none;
}

@media (pointer: fine) {
  .cursor { display: block; }
}

.cursor--ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.cursor--dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn--lg {
  font-size: 15.5px;
  padding: 15px 30px;
}

.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35);
}

.btn--solid:hover {
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.6);
  transform: translateY(-2px);
}

.btn--ghost-green {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(var(--green-rgb), 0.45);
}

.btn--ghost-green:hover {
  transform: translateY(-3px);
  background: rgba(var(--green-rgb), 0.08);
  box-shadow: 0 0 32px rgba(var(--green-rgb), 0.2);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 48px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav__logo {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  border-radius: 8px;
}

.nav__wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__theme {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.nav__theme:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.nav__cta {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
}

/* Mobile menu toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 48px 90px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at 50% 40%, rgba(var(--accent-rgb), 0.1), transparent 65%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  max-width: var(--maxw-hero);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Avatar with orbiting dot */
.avatar {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 0 30px;
  animation: floaty 5s ease-in-out infinite;
}

.avatar__ring {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--accent-rgb), 0.45);
  animation: spinSlow 16s linear infinite;
}

.avatar__orbit {
  position: absolute;
  inset: -11px;
  animation: spinSlow 16s linear infinite;
}

.avatar__orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.avatar__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), 0.18), var(--card));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.2);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.avatar__img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transform: translateY(5px);
}

.hero__eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  min-height: 20px;
  animation: riseIn 0.9s var(--ease-out) both;
}

.hero__title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  animation: riseIn 0.9s var(--ease-out) 0.1s both;
}

.hero__typed {
  display: flex;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--muted);
  height: 1.6em;
  margin: 0 0 24px;
  animation: riseIn 0.9s var(--ease-out) 0.2s both;
}

.hero__prompt {
  color: var(--faint);
  margin-right: 6px;
}

.hero__role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.caret {
  flex: none;
  display: inline-block;
  width: 10px;
  height: 1.15em;
  background: var(--accent);
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
}

.hero__lede {
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 34px;
  text-wrap: pretty;
  animation: riseIn 0.9s var(--ease-out) 0.3s both;
}

.hero__lede strong {
  color: var(--text);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  animation: riseIn 0.9s var(--ease-out) 0.4s both;
}

.hero__actions .btn--solid {
  will-change: transform;
}

.hero__socials {
  display: flex;
  gap: 12px;
  animation: riseIn 0.9s var(--ease-out) 0.5s both;
}

.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ---------- Code editor ---------- */
.hero__code {
  perspective: 1200px;
  animation: riseIn 1s var(--ease-out) 0.3s both;
}

.editor {
  position: relative;
  border-radius: 16px;
  background: var(--code-bg);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 30px 80px var(--shadow), 0 0 50px rgba(var(--accent-rgb), 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.editor__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(rgba(var(--accent-rgb), 0.06), transparent);
  animation: scanline 6s linear infinite;
  pointer-events: none;
}

.editor__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.editor__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.editor__dot--red { background: #ff5f57; }
.editor__dot--amber { background: #febc2e; }
.editor__dot--green { background: #28c840; }

.editor__label {
  margin-left: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: #6b7a92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor__badge {
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #38e0ff;
  border: 1px solid rgba(56, 224, 255, 0.35);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.editor__body {
  margin: 0;
  padding: 22px 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.85;
  min-height: 320px;
  color: #c3cddd;
  overflow-x: auto;
}

.editor__body .ln {
  min-height: 1.85em;
  white-space: pre;
}

.editor__body .ln-num {
  color: #3d4a5f;
  margin-right: 16px;
  user-select: none;
}

/* Syntax token colors */
.tok-c { color: var(--faint); }      /* comment */
.tok-k { color: #b98cff; }           /* keyword */
.tok-s { color: #6ee7a0; }           /* string */
.tok-f { color: #38e0ff; }           /* function */
.tok-p { color: #c3cddd; }           /* plain */
.tok-a { color: #ffd479; }           /* accent value */

.editor__caret {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: #38e0ff;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ---------- Stats ---------- */
.stats {
  padding-top: 50px;
  padding-bottom: 90px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.stats__item {
  background: var(--bg2);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.3s;
}

.stats__value {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stats__label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* ---------- Tech marquee ---------- */
.marquee {
  margin: 0 0 100px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  padding: 26px 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
  display: inline-block;
}

/* ---------- Services ---------- */
.services {
  padding-bottom: 110px;
}

.services__head {
  margin-bottom: 48px;
}

.services__title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s var(--ease-out);
  will-change: transform;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 20px 50px var(--shadow), 0 0 30px rgba(var(--accent-rgb), 0.08);
}

.card__sweep-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
}

.card__sweep {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card:hover .card__sweep {
  animation: borderSweep 1.1s var(--ease-out);
}

.card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(var(--accent-rgb), 0.12), transparent 70%);
}

.card__inner {
  position: relative;
  z-index: 1;
}

.card__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
}

.card__title {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Contact CTA ---------- */
.contact {
  padding-bottom: 120px;
}

.cta {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    var(--bg2);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.cta__orb--one {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 68%);
  animation: orbFloat 12s ease-in-out infinite;
}

.cta__orb--two {
  width: 240px;
  height: 240px;
  bottom: -70px;
  right: -30px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 68%);
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.1;
}

.cta__lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 38px;
  line-height: 1.65;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.shimmer-text {
  background: linear-gradient(100deg,
    var(--text) 0%, var(--text) 38%,
    var(--accent) 50%,
    var(--text) 62%, var(--text) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--faint);
}

.footer__links {
  display: flex;
  gap: 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .nav {
    padding: 14px 24px;
  }

  /* Collapse desktop links into a dropdown panel */
  .nav__toggle {
    display: flex;
    order: 3;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav__theme {
    justify-self: start;
    margin-top: 6px;
  }

  .nav__cta {
    text-align: center;
    justify-content: center;
    margin-top: 6px;
    padding: 12px 18px;
  }

  .hero {
    min-height: auto;
    padding: 112px 24px 72px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 560px;
  }

  .hero__intro {
    align-items: center;
    text-align: center;
  }

  .hero__lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions,
  .hero__socials,
  .hero__typed {
    justify-content: center;
  }

  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .editor__body {
    min-height: 300px;
    font-size: 12.5px;
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta {
    padding: 56px 26px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }

  .hero {
    padding: 100px 16px 56px;
  }

  .hero__grid {
    gap: 32px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta {
    padding: 48px 20px;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats__item {
    padding: 26px 12px;
  }

  .stats__value {
    font-size: 34px;
  }

  .editor__body {
    min-height: 270px;
    font-size: 11.5px;
    padding: 16px 14px;
  }
}

@media (max-width: 360px) {
  .editor__label {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }

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

  .cursor {
    display: none !important;
  }
}
