/* ============================================================
   DOLZTECH — Minecraft-inspired professional tech portfolio
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0f0e;
  --bg-2: #121614;
  --bg-3: #171c19;
  --panel: #1b211e;
  --panel-2: #212823;
  --line: #2c3530;
  --line-2: #3a4540;

  --text: #f4f7f5;
  --muted: #a8b3ad;
  --dim: #77827c;

  --green: #4ade80;
  --green-2: #22c55e;
  --green-soft: rgba(74, 222, 128, .12);
  --earth: #8b5e3c;
  --earth-2: #6d4a30;
  --stone: #6b7671;
  --white-block: #e8ece9;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;

  --pixel: 4px;
  --radius: 0px;
  --shadow: 0 0 0 var(--pixel) var(--line);
  --font-pixel: "Press Start 2P", monospace;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1160px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--green); color: #06110a; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* Subtle pixel grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
main, .nav, .footer, .modal { position: relative; z-index: 1; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 3.4vw, 30px);
  line-height: 1.4;
  letter-spacing: 1px;
}

.section__sub { color: var(--muted); max-width: 620px; margin-top: 14px; }

.section__head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; align-items: center; }
.section__head--left { text-align: left; align-items: flex-start; }

/* ---------- Buttons (pixel style) ---------- */
.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow:
    inset -4px -4px 0 rgba(0,0,0,.35),
    inset 4px 4px 0 rgba(255,255,255,.08);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); box-shadow: inset 4px 4px 0 rgba(0,0,0,.35); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.btn--primary {
  --btn-bg: var(--green-2);
  --btn-fg: #04140a;
  box-shadow:
    inset -4px -4px 0 #15803d,
    inset 4px 4px 0 rgba(255,255,255,.3);
}
.btn--primary:hover { background: var(--green); }

.btn--ghost { --btn-bg: var(--panel); border: 2px solid var(--line-2); box-shadow: inset -3px -3px 0 rgba(0,0,0,.3); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--green); }

.btn--outline { --btn-bg: transparent; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 9px; }
.btn--block { width: 100%; }
.btn--card { width: 100%; margin-top: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 15, 14, .88);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--line);
}
.nav.is-scrolled { border-bottom-color: var(--green-2); }

.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo-block {
  width: 22px; height: 22px;
  background:
    linear-gradient(135deg, var(--green) 0%, var(--green-2) 60%, #15803d 100%);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.3), inset 3px 3px 0 rgba(255,255,255,.25);
  image-rendering: pixelated;
}
.nav__logo-text { font-family: var(--font-pixel); font-size: 14px; letter-spacing: 1px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.nav__cta-mobile { display: none; }

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

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--panel-2);
  border: 2px solid var(--line-2);
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span {
  display: block; height: 3px; background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(80px, 10vw, 130px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(34, 197, 94, .12), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 80%, rgba(139, 94, 60, .12), transparent 60%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-pixel);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 2px;
  text-shadow:
    4px 4px 0 #14532d,
    8px 8px 0 rgba(0,0,0,.45);
  color: var(--green);
  margin-bottom: 18px;
}
.hero__subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.6vw, 15px);
  line-height: 1.8;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero__text { color: var(--muted); max-width: 520px; margin-bottom: 32px; font-size: 16.5px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero floor (dirt/stone strip) */
.hero__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background:
    repeating-linear-gradient(90deg,
      var(--earth-2) 0 32px, var(--earth) 32px 64px);
  border-top: 4px solid #4a3220;
  box-shadow: 0 -4px 0 rgba(0,0,0,.35);
  z-index: 1;
}
.hero__floor::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
  background: repeating-linear-gradient(90deg,
    #2f6b3c 0 32px, #3d854d 32px 64px);
}

/* Particles */
.hero__particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.particle {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--green);
  opacity: .5;
  animation: rise linear infinite;
  image-rendering: pixelated;
}
.particle:nth-child(3n) { background: var(--amber); }
.particle:nth-child(4n) { background: #93c5fd; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .7; }
  100% { transform: translateY(-100vh) translateX(24px); opacity: 0; }
}

/* Hero visual workspace */
.hero__visual { position: relative; min-height: 380px; }
.workspace {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    var(--bg-2);
  background-size: 24px 24px, 24px 24px, auto;
  border: 4px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0,0,0,.45);
}

.block {
  position: absolute;
  image-rendering: pixelated;
  box-shadow:
    inset -6px -6px 0 rgba(0,0,0,.35),
    inset 6px 6px 0 rgba(255,255,255,.15),
    0 0 0 3px rgba(0,0,0,.5);
}
.float { animation: float 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.block--server {
  width: 76px; height: 64px; top: 14%; left: 8%;
  background: linear-gradient(160deg, #4b5563, #374151);
}
.block__led {
  position: absolute; top: 10px; left: 10px;
  width: 10px; height: 10px; background: var(--green);
  box-shadow: 0 0 8px var(--green), 18px 0 0 var(--amber), 36px 0 0 var(--red);
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .35; } }
.block__grid {
  position: absolute; inset: auto 8px 8px 8px; height: 24px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.25) 0 3px, transparent 3px 8px);
}

.block--db {
  width: 70px; height: 70px; bottom: 18%; left: 16%;
  background: linear-gradient(150deg, #7c5a3f, #5c4230);
}
.block__rings {
  position: absolute; inset: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.35) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.28) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 82%, rgba(255,255,255,.22) 0 6px, transparent 7px);
}

.block--code {
  width: 96px; height: 74px; top: 10%; right: 10%;
  background: linear-gradient(150deg, #1f2937, #111827);
  box-shadow:
    inset -6px -6px 0 rgba(0,0,0,.4),
    inset 6px 6px 0 rgba(255,255,255,.06),
    0 0 0 3px rgba(0,0,0,.5);
}
.code-line {
  position: absolute; left: 12px; height: 7px; width: 56px;
  background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,.6);
}
.code-line { top: 16px; }
.code-line--2 { top: 32px; width: 40px; background: var(--amber); box-shadow: none; left: 20px; }
.code-line--3 { top: 48px; width: 64px; background: var(--blue); box-shadow: none; left: 12px; }

.block--dash {
  width: 88px; height: 70px; bottom: 14%; right: 8%;
  background: linear-gradient(150deg, #374151, #1f2937);
  display: flex; align-items: flex-end; gap: 6px; padding: 12px;
}
.dash-bar {
  flex: 1; height: var(--h, 50%);
  background: linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.3);
}

.block--core {
  width: 132px; height: 96px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(150deg, #166534, #14532d 55%, #052e16);
  display: grid; place-items: center;
  z-index: 3;
  animation: float 3.6s ease-in-out infinite, glowPulse 2.4s ease-in-out infinite;
  box-shadow:
    inset -8px -8px 0 rgba(0,0,0,.4),
    inset 8px 8px 0 rgba(255,255,255,.12),
    0 0 0 4px #022c14,
    0 0 42px rgba(34, 197, 94, .55);
}
.block__glow {
  position: absolute; inset: 8px;
  border: 3px solid rgba(74,222,128,.45);
  box-shadow: inset 0 0 18px rgba(74,222,128,.35);
}
.block__label {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #d1fae5;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(74,222,128,.9);
  position: relative; z-index: 2;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: inset -8px -8px 0 rgba(0,0,0,.4), inset 8px 8px 0 rgba(255,255,255,.12), 0 0 0 4px #022c14, 0 0 30px rgba(34,197,94,.45); }
  50%      { box-shadow: inset -8px -8px 0 rgba(0,0,0,.4), inset 8px 8px 0 rgba(255,255,255,.12), 0 0 0 4px #022c14, 0 0 60px rgba(34,197,94,.75); }
}

.pixel {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--green);
  opacity: .8;
  animation: twinkle 2.2s steps(2) infinite;
}
.pixel--1 { top: 8%; left: 44%; background: var(--amber); }
.pixel--2 { top: 30%; right: 4%; animation-delay: .4s; }
.pixel--3 { bottom: 10%; left: 46%; background: #93c5fd; animation-delay: .8s; }
.pixel--4 { top: 48%; left: 4%; background: #fff; animation-delay: 1.2s; }
.pixel--5 { bottom: 34%; right: 32%; background: var(--amber); animation-delay: .6s; }
.pixel--6 { top: 6%; right: 40%; background: var(--red); animation-delay: 1.6s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.8); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 4px solid var(--line); }

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.cards--templates { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* System card */
.card {
  background: var(--panel);
  border: 3px solid var(--line);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent, var(--green));
}
.card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--accent, var(--green));
  box-shadow: 10px 10px 0 rgba(0,0,0,.4);
}

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

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 3px solid var(--line-2);
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent, var(--green));
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), inset 4px 4px 0 rgba(255,255,255,.06);
  flex-shrink: 0;
}

.card__status {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: .5px;
  padding: 7px 9px;
  border: 2px solid currentColor;
  line-height: 1;
  white-space: nowrap;
}
.status--available { color: var(--green); background: var(--green-soft); }
.status--dev { color: var(--amber); background: rgba(251, 191, 36, .1); }
.status--beta { color: var(--blue); background: rgba(96, 165, 250, .1); }
.status--live { color: var(--green); background: var(--green-soft); }

.card__name { font-family: var(--font-pixel); font-size: 14px; line-height: 1.5; letter-spacing: .5px; }
.card__role { font-size: 12.5px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.card__desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.card__actions .btn { width: 100%; }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  background: var(--bg-3);
  border: 2px solid var(--line);
  color: var(--muted);
  letter-spacing: .3px;
}

/* Template card */
.tcard {
  background: var(--panel);
  border: 3px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tcard:hover {
  transform: translate(-4px, -4px);
  border-color: var(--green);
  box-shadow: 10px 10px 0 rgba(0,0,0,.4);
}

.tcard__preview {
  height: 132px;
  border-bottom: 3px solid var(--line);
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
}
.tcard__side {
  background: var(--panel-2);
  border: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 5px; padding: 6px 4px;
}
.tcard__side i {
  display: block; height: 7px; background: var(--line-2);
  box-shadow: inset -1px -1px 0 rgba(0,0,0,.3);
}
.tcard__side i:first-child { background: var(--accent, var(--green)); }
.tcard__main { display: flex; flex-direction: column; gap: 7px; }
.tcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tcard__stat {
  height: 30px; background: var(--panel-2); border: 2px solid var(--line);
  position: relative;
}
.tcard__stat::after {
  content: ""; position: absolute; left: 5px; bottom: 5px; right: 5px;
  height: 5px; background: var(--accent, var(--green)); opacity: .75;
}
.tcard__chart {
  flex: 1; background: var(--panel-2); border: 2px solid var(--line);
  display: flex; align-items: flex-end; gap: 5px; padding: 7px;
}
.tcard__chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent, var(--green)), rgba(0,0,0,.3));
  box-shadow: inset -1px -1px 0 rgba(0,0,0,.35);
}

.tcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard__cat {
  font-family: var(--font-pixel); font-size: 8px; color: var(--accent, var(--green));
  letter-spacing: 1px;
}
.tcard__name { font-size: 16px; font-weight: 700; }
.tcard__desc { color: var(--muted); font-size: 13.5px; flex: 1; }

/* ---------- Crafting ---------- */
.craft {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}
.craft__step {
  flex: 1;
  background: var(--panel);
  border: 3px solid var(--line);
  padding: 26px 18px;
  text-align: center;
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
  transition: border-color .18s ease, transform .18s ease;
}
.craft__step:hover { border-color: var(--green); transform: translateY(-4px); }

.craft__block {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #0b0f0d;
  box-shadow:
    inset -6px -6px 0 rgba(0,0,0,.35),
    inset 6px 6px 0 rgba(255,255,255,.3),
    0 0 0 3px rgba(0,0,0,.5);
}
.craft__block--brown { background: var(--earth); color: #fdf6ec; text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.craft__block--green { background: var(--green-2); }
.craft__block--white { background: var(--white-block); }

.craft__name { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 1px; margin-bottom: 12px; }
.craft__text { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.craft__arrow {
  align-self: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  position: relative;
}
.craft__arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 6px;
  height: 5px;
  transform: translateY(-50%);
  background: var(--line-2);
}
.craft__arrow::after {
  content: "";
  position: absolute;
  top: 50%; right: 0;
  width: 0; height: 0;
  transform: translateY(-50%);
  border-left: 12px solid var(--line-2);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* ---------- About ---------- */
.about { display: grid; gap: 36px; margin-bottom: 80px; }
.about__text { color: var(--muted); margin-top: 16px; max-width: 720px; font-size: 16px; }

.about__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.about__chip {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 14px 18px;
  background: var(--panel);
  border: 3px solid var(--line-2);
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  letter-spacing: 1px;
}
.about__chip--accent {
  background: var(--green-2);
  color: #04140a;
  border-color: #15803d;
  box-shadow: 4px 4px 0 #0b3d1f;
}
.about__sep { color: var(--green); font-family: var(--font-pixel); font-size: 14px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__card {
  background: var(--panel);
  border: 3px solid var(--line);
  padding: 26px 20px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease;
}
.why__card:hover { transform: translateY(-5px); border-color: var(--green); }
.why__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--bg-3);
  border: 3px solid var(--line-2);
  margin-bottom: 18px;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.35);
}
.why__title { font-family: var(--font-pixel); font-size: 11px; line-height: 1.6; letter-spacing: .5px; margin-bottom: 12px; }
.why__text { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(70px, 10vw, 120px) 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(34,197,94,.14), transparent 70%),
    var(--bg-3);
  border-block: 4px solid var(--line);
  overflow: hidden;
}
.cta__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}

.cta__core { position: relative; width: 240px; height: 240px; margin-inline: auto; display: grid; place-items: center; }
.cta__core-block {
  width: 120px; height: 120px;
  background: linear-gradient(150deg, #22c55e, #15803d 50%, #14532d);
  position: relative;
  box-shadow:
    inset -10px -10px 0 rgba(0,0,0,.35),
    inset 10px 10px 0 rgba(255,255,255,.2),
    0 0 0 5px #052e16,
    0 0 60px rgba(34,197,94,.6);
  animation: coreSpin 8s linear infinite;
}
.cta__core-glow {
  position: absolute; inset: 14px;
  border: 4px solid rgba(255,255,255,.45);
  box-shadow: inset 0 0 20px rgba(255,255,255,.3);
}
@keyframes coreSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.05); }
}
.cta__orbit {
  position: absolute;
  border: 3px dashed rgba(74,222,128,.4);
  border-radius: 50%;
}
.cta__orbit--1 { width: 180px; height: 180px; animation: orbit 14s linear infinite; }
.cta__orbit--2 { width: 236px; height: 236px; animation: orbit 22s linear infinite reverse; border-color: rgba(139,94,60,.45); }
@keyframes orbit { to { transform: rotate(360deg); } }

.cta__title { font-family: var(--font-pixel); font-size: clamp(18px, 3vw, 30px); line-height: 1.5; letter-spacing: 1px; margin-bottom: 18px; }
.cta__text { color: var(--muted); font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__lead { color: var(--muted); margin-top: 16px; max-width: 440px; }

.contact__brand { display: flex; align-items: center; gap: 14px; margin: 34px 0 26px; }
.contact__brand-block {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-2) 60%, #15803d);
  box-shadow: inset -5px -5px 0 rgba(0,0,0,.3), inset 5px 5px 0 rgba(255,255,255,.25);
}
.contact__brand-name { font-family: var(--font-pixel); font-size: 14px; letter-spacing: 1px; }
.contact__brand-tag { color: var(--dim); font-size: 13.5px; }

.contact__meta { display: grid; gap: 14px; }
.contact__meta > div {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 16px;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
}
.contact__meta dt { font-family: var(--font-pixel); font-size: 9px; color: var(--green); min-width: 74px; letter-spacing: .5px; }
.contact__meta dd { color: var(--muted); font-size: 14.5px; }

/* Form */
.form {
  background: var(--panel);
  border: 4px solid var(--line);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 8px 8px 0 rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); }

.form input, .form select, .form textarea {
  width: 100%;
  background: var(--bg-3);
  border: 3px solid var(--line);
  padding: 13px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease;
  border-radius: 0;
  appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.form input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--red); }

.form__status {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  color: var(--green);
  font-weight: 600;
}
.form__status.is-error { color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-3); border-top: 4px solid var(--line); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding-block: 42px;
}
.footer__tag { color: var(--dim); font-size: 14px; margin-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .15s ease; }
.footer__links a:hover { color: var(--green); }
.footer__bottom { border-top: 3px solid var(--line); padding-block: 20px; }
.footer__bottom p { color: var(--dim); font-size: 13.5px; text-align: center; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 6, .8);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: var(--panel);
  border: 4px solid var(--line-2);
  box-shadow: 12px 12px 0 rgba(0,0,0,.55);
  animation: popIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 3px solid var(--line-2);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: background .15s ease, border-color .15s ease;
}
.modal__close:hover { background: var(--red); border-color: var(--red); color: #1a0505; }
.modal__close:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.modal__body { padding: clamp(24px, 4vw, 40px); }

.modal__hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 3px dashed var(--line-2);
}
.modal__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-family: var(--font-pixel); font-size: 16px;
  background: var(--bg-3); border: 3px solid var(--line-2);
  color: var(--accent, var(--green));
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.35);
}
.modal__titles { flex: 1; min-width: 180px; }
.modal__name { font-family: var(--font-pixel); font-size: clamp(15px, 2.6vw, 20px); line-height: 1.5; }
.modal__role { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; margin-top: 6px; }

.modal__shot {
  width: 100%; height: clamp(170px, 30vw, 240px);
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    var(--bg-3);
  background-size: 20px 20px, 20px 20px, auto;
  border: 3px solid var(--line-2);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
}
.modal__shot-side { background: var(--panel-2); border: 2px solid var(--line); padding: 8px 6px; display: flex; flex-direction: column; gap: 7px; }
.modal__shot-side i { display: block; height: 8px; background: var(--line-2); }
.modal__shot-side i:first-child { background: var(--accent, var(--green)); }
.modal__shot-main { display: flex; flex-direction: column; gap: 10px; }
.modal__shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modal__shot-box { height: 44px; background: var(--panel-2); border: 2px solid var(--line); position: relative; overflow: hidden; }
.modal__shot-box::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px;
  background: var(--accent, var(--green)); opacity: .8;
}
.modal__shot-table { flex: 1; background: var(--panel-2); border: 2px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.modal__shot-table i { display: block; height: 9px; background: var(--line); }
.modal__shot-table i:nth-child(odd) { background: var(--line-2); }

.modal__desc { color: var(--muted); margin-bottom: 26px; font-size: 15.5px; }

.modal__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-bottom: 28px; }
.modal__h {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 1px;
  color: var(--green); margin-bottom: 14px;
}
.modal__features { display: grid; gap: 9px; }
.modal__features li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: 14.5px;
}
.modal__features li::before {
  content: "✓";
  color: var(--green); font-weight: 800; flex-shrink: 0;
}
.modal__facts { display: grid; gap: 10px; }
.modal__fact {
  background: var(--bg-3); border: 3px solid var(--line);
  padding: 12px 14px;
}
.modal__fact dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--dim); margin-bottom: 5px; }
.modal__fact dd { font-size: 14.5px; color: var(--text); }
.modal__fact dd .status-pill {
  display: inline-block;
  font-family: var(--font-pixel); font-size: 8px;
  padding: 6px 8px; border: 2px solid currentColor;
}

.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { grid-template-columns: 1fr; text-align: center; }
  .cta__content { display: flex; flex-direction: column; align-items: center; }
  .cta__text { margin-inline: auto; }
  .craft { flex-wrap: wrap; justify-content: center; }
  .craft__step { flex: 1 1 200px; }
  .craft__arrow { transform: rotate(0deg); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { min-height: 320px; }
  .workspace { min-height: 320px; }
  .contact { grid-template-columns: 1fr; }
  .section__head--left { text-align: center; align-items: center; }
  .about__text { margin-inline: auto; }
  .about__flow { justify-content: center; }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 4px solid var(--line);
    padding: 12px 20px 22px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    box-shadow: 0 14px 30px rgba(0,0,0,.5);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    padding: 15px 12px;
    font-size: 16px;
    border-bottom: 2px solid var(--line);
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .nav__cta-mobile { display: flex; margin-top: 16px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }

  .hero { padding-top: 48px; }
  .hero__title { text-shadow: 3px 3px 0 #14532d, 6px 6px 0 rgba(0,0,0,.45); }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .cards { grid-template-columns: 1fr; }
  .cards--templates { grid-template-columns: 1fr; }

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

  .craft { flex-direction: column; align-items: stretch; }
  .craft__step { flex: none; }
  .craft__arrow {
    transform: rotate(90deg);
    align-self: center;
    margin-block: 4px;
  }

  .form__row { grid-template-columns: 1fr; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .cta__core { width: 200px; height: 200px; }
  .cta__orbit--2 { width: 196px; height: 196px; }

  .modal__grid { grid-template-columns: 1fr; }
  .modal__actions { flex-direction: column; }
  .modal__actions .btn { width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .about__sep { display: none; }
  .about__flow { flex-direction: column; align-items: stretch; }
  .about__chip { text-align: center; }

  .contact__meta > div { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  .nav__logo-text { font-size: 12px; }
  .hero__title { font-size: 34px; }
  .block--code, .block--dash { transform: scale(.85); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
