/* =========================================================
   digitaliziraj.hr — Stopwatch theme
   Tokens + base + sections + responsive + form
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --fg: #f4f4f2;
  --muted: #8f8f8a;
  --line: #1f1f1d;
  --lime: #d4ff3b;
  --lime-dim: #9fc022;

  --container: 1400px;
  --container-xl: 1600px;

  /* multistep form tokens */
  --msf-bg: #111;
  --msf-fg: #f4f4f2;
  --msf-accent: #d4ff3b;
  --msf-accent-fg: #0a0a0a;
  --msf-border: 1px solid #222;
  --msf-font: 'Archivo', sans-serif;
  --msf-radius: 4px;
  --msf-btn-radius: 4px;
  --msf-input-radius: 4px;
  --msf-chip-radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; min-height: 100vh; min-height: 100svh; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 18px clamp(16px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  gap: 16px;
}
.logo {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.02em;
  font-size: 16px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.logo .dot { color: var(--lime); }
.nav-links { display: flex; gap: 28px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.7; transition: opacity 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-cta {
  background: var(--lime); color: #0a0a0a;
  padding: 10px 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: none; cursor: pointer; font-size: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--lime-dim); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid #333;
  width: 40px; height: 40px; padding: 10px;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--fg); transition: all 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  padding: 60px clamp(16px, 3vw, 32px) 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 60px);
  max-width: var(--container); margin: 0 auto;
  align-items: end;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lime); font-weight: 600;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--lime); box-shadow: 0 0 10px var(--lime);
  animation: pulse 1.5s infinite;
  display: inline-block;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

h1.hero-h {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(44px, 7.5vw, 120px);
  line-height: 0.92; letter-spacing: -0.035em;
  margin: 0 0 28px;
}
h1.hero-h em {
  font-style: normal; color: var(--lime);
  position: relative;
}
h1.hero-h em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 4px; background: var(--lime); opacity: 0.25;
}
.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5;
  max-width: 520px;
  color: #cdcdc9; margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--lime); color: #0a0a0a;
  padding: 18px 30px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: none; cursor: pointer;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 var(--lime-dim);
}
.btn-ghost {
  background: transparent; color: var(--fg);
  padding: 18px 24px; font-weight: 600;
  border: 1px solid #333; cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--lime); color: var(--lime); }

/* ============ Timer card ============ */
.timer-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #121210 0%, #0c0c0a 100%);
  padding: 28px; position: relative;
}
.timer-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.timer-head .live { color: var(--lime); display: inline-flex; gap: 6px; align-items: center; }
.timer-digits {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--lime);
  text-shadow: 0 0 30px rgba(212, 255, 59, 0.3);
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: baseline; gap: 6px;
}
.timer-digits .sep { color: #3a3a38; }
.timer-labels {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.timer-bar { height: 2px; background: #1f1f1d; margin-top: 20px; position: relative; overflow: hidden; }
.timer-bar::after {
  content: ''; position: absolute; inset: 0; width: 38%;
  background: var(--lime);
  animation: slide 3s ease-in-out infinite;
}
@keyframes slide { 0%, 100% { transform: translateX(-10%); } 50% { transform: translateX(180%); } }
.timer-meta { margin-top: 14px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.timer-meta b { color: var(--fg); font-weight: 500; }

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(20px, 3vw, 32px); letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 40px; animation: marq 30s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-group { display: inline-flex; align-items: center; gap: 40px; }
.marquee .star { color: var(--lime); }

/* ============ Stats ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 32px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em;
}
.stat-num em { font-style: normal; color: var(--lime); }
.stat-lbl { color: var(--muted); font-size: 13px; margin-top: 10px; letter-spacing: 0.05em; }

/* ============ Section shell ============ */
.section {
  padding: clamp(60px, 10vw, 100px) clamp(16px, 3vw, 32px);
  max-width: var(--container); margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--lime); font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px;
  display: inline-flex; gap: 8px; align-items: center;
}
.eyebrow::before { content: '●'; color: var(--lime); }
.section-h {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 5vw, 72px); line-height: 0.95;
  letter-spacing: -0.03em; margin: 0 0 20px;
  max-width: 900px;
}
.section-intro {
  color: #cdcdc9; max-width: 620px;
  font-size: clamp(15px, 1.2vw, 17px); margin: 0 0 56px; line-height: 1.5;
}

/* ============ Process ============ */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.step { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); position: relative; background: #0c0c0a; }
.step:last-child { border-right: 0; }
.step-num {
  font-family: 'Archivo Black', sans-serif; font-size: 14px;
  color: var(--lime); margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.step-num .hm { font-family: 'JetBrains Mono', monospace; color: var(--muted); font-weight: 400; }
.step h3 { font-family: 'Archivo Black', sans-serif; font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 12px; letter-spacing: -0.02em; }
.step p { color: #cdcdc9; margin: 0; font-size: 15px; line-height: 1.55; }

/* ============ Pricing ============ */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  max-width: 920px;
  margin: 0 auto;
}
.tiers:has(> .tier:nth-child(3)) { max-width: 1200px; }
.tier { padding: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px); border-right: 1px solid var(--line); background: #0c0c0a; position: relative; display: flex; flex-direction: column; }
.tier:last-child { border-right: 0; }
.tier.featured { background: var(--lime); color: #0a0a0a; }
.tier.featured .t-feat li::before { background: #0a0a0a; }
.tier.featured .t-price-sub { color: rgba(0, 0, 0, 0.6); }
.tier-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; color: var(--muted); }
.tier.featured .tier-tag { color: rgba(0, 0, 0, 0.7); }
.tier h3 { font-family: 'Archivo Black', sans-serif; font-size: clamp(28px, 2.8vw, 36px); margin: 0 0 6px; letter-spacing: -0.02em; }
.t-price { font-family: 'Archivo Black', sans-serif; font-size: clamp(44px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin: 20px 0 4px; }
.t-price-sub { color: var(--muted); font-size: 13px; font-family: 'JetBrains Mono', monospace; margin-bottom: 24px; }
.t-feat { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.t-feat li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.t-feat li::before { content: ''; width: 6px; height: 6px; margin-top: 7px; background: var(--lime); flex-shrink: 0; }
.btn-tier {
  width: 100%; padding: 14px; background: transparent;
  border: 1px solid #2a2a28; color: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
  margin-top: auto;
}
.tier.featured .btn-tier { background: #0a0a0a; color: var(--lime); border-color: #0a0a0a; }
.btn-tier:hover { border-color: var(--lime); color: var(--lime); }
.tier.featured .btn-tier:hover { color: var(--lime); border-color: var(--lime-dim); }

/* ============ Portfolio ============ */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-card {
  aspect-ratio: 4/5;
  background: #121210; border: 1px solid var(--line);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.p-phone {
  flex: 1; margin: 24px;
  background: linear-gradient(160deg, #1a1a18, #0f0f0d);
  display: flex; flex-direction: column; padding: 18px;
  position: relative;
}
.p-card.a .p-phone { background: linear-gradient(160deg, #d4ff3b, #9fc022); color: #0a0a0a; }
.p-card.b .p-phone { background: linear-gradient(160deg, #2a2a26, #0e0e0c); }
.p-card.c .p-phone { background: linear-gradient(160deg, #f4f4f2, #c8c8c2); color: #0a0a0a; }
.p-mock-h { font-family: 'Archivo Black', sans-serif; font-size: clamp(18px, 1.8vw, 22px); line-height: 1; letter-spacing: -0.02em; margin-top: auto; }
.p-mock-sub { font-size: 10px; opacity: 0.7; margin-top: 6px; }
.p-mock-btn { margin-top: 14px; padding: 6px 10px; background: #0a0a0a; color: var(--lime); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: inline-block; width: fit-content; }
.p-card.c .p-mock-btn { background: #0a0a0a; color: #f4f4f2; }
.p-meta { padding: 0 24px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-family: 'JetBrains Mono', monospace; gap: 12px; }
.p-meta b { font-family: 'Archivo Black', sans-serif; letter-spacing: -0.01em; font-size: 14px; }
.p-meta span { color: var(--muted); }

/* ============ Testimonials ============ */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi { padding: 28px; border: 1px solid var(--line); background: #0c0c0a; }
.testi-stars { color: var(--lime); margin-bottom: 16px; letter-spacing: 2px; }
.testi-q { font-size: 17px; line-height: 1.5; margin: 0 0 24px; }
.testi-foot { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.testi-avi { width: 40px; height: 40px; border-radius: 999px; background: #2a2a26; border: 1px solid var(--line); font-family: 'Archivo Black', sans-serif; display: grid; place-items: center; color: var(--lime); font-size: 13px; }
.testi-foot b { display: block; }
.testi-foot span { color: var(--muted); font-size: 12px; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--line); background: #0c0c0a; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.5vw, 32px);
  cursor: pointer;
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #101010; color: var(--lime); }
.faq-ico {
  font-family: 'JetBrains Mono', monospace;
  color: var(--lime); font-size: 22px; line-height: 1; font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a {
  padding: 0 clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 26px);
  color: #cdcdc9; font-size: 15px; line-height: 1.6;
  max-width: 780px;
}

/* ============ Final CTA ============ */
.final {
  padding: clamp(80px, 10vw, 120px) clamp(16px, 3vw, 32px);
  text-align: center;
  background: var(--lime); color: #0a0a0a;
  border-bottom: 1px solid var(--line);
}
.final h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(44px, 8vw, 120px); letter-spacing: -0.04em; line-height: 0.9; margin: 0 0 28px; }
.final p { font-size: clamp(16px, 1.4vw, 20px); margin: 0 auto 36px; max-width: 580px; opacity: 0.8; }
.final .btn-primary { background: #0a0a0a; color: var(--lime); }
.final .btn-primary:hover { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3); }

/* ============ Footer ============ */
footer {
  padding: 36px clamp(16px, 3vw, 32px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--fg); }
.foot-sep { margin: 0 8px; }

/* =========================================================
   MULTISTEP FORM OVERLAY
   ========================================================= */
.msf-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: msf-fade 0.2s ease;
  overflow-y: auto;
}
.msf-overlay.open { display: flex; }
@keyframes msf-fade { from { opacity: 0; } to { opacity: 1; } }

.msf-modal {
  background: var(--msf-bg);
  color: var(--msf-fg);
  border-radius: var(--msf-radius);
  width: 100%; max-width: 560px;
  padding: 60px clamp(22px, 3vw, 40px) 28px;
  position: relative;
  border: var(--msf-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: var(--msf-font);
  animation: msf-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  margin: auto;
}
@keyframes msf-pop { from { transform: translateY(20px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

.msf-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid #333; background: transparent;
  cursor: pointer; font-size: 14px;
  color: inherit;
}
.msf-close:hover { background: rgba(255, 255, 255, 0.05); }

.msf-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.msf-dot { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); transition: background 0.2s; }
.msf-dot.on { background: var(--msf-accent); }
.msf-step-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 10px;
}
.msf-h { font-size: clamp(22px, 3vw, 28px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
.msf-sub { opacity: 0.7; margin: 0 0 20px; font-size: 15px; }
.msf-label { display: block; font-size: 13px; margin: 14px 0 8px; font-weight: 600; opacity: 0.8; }

.msf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.msf-chip {
  padding: 10px 16px; border-radius: var(--msf-chip-radius);
  border: 1px solid #333; background: transparent;
  cursor: pointer; font-size: 14px; color: inherit;
  transition: all 0.15s; font-family: inherit;
}
.msf-chip:hover:not(.disabled) { border-color: var(--msf-accent); }
.msf-chip.on { background: var(--msf-accent); color: var(--msf-accent-fg); border-color: var(--msf-accent); }
.msf-chip.disabled { opacity: 0.4; cursor: not-allowed; }
.msf-hint { font-weight: 400; opacity: 0.55; font-size: 12px; letter-spacing: 0; text-transform: none; margin-left: 4px; }

.msf-input {
  width: 100%; padding: 12px 14px; border-radius: var(--msf-input-radius);
  border: 1px solid #333; background: #0a0a0a;
  font-size: 16px; margin-bottom: 4px; color: inherit; font-family: inherit;
}
.msf-input:focus { outline: 2px solid var(--msf-accent); outline-offset: 1px; border-color: transparent; }

.msf-actions { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; flex-wrap: wrap; }
.msf-btn {
  padding: 12px 22px; border-radius: var(--msf-btn-radius);
  border: none; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.msf-btn-primary { background: var(--msf-accent); color: var(--msf-accent-fg); }
.msf-btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.msf-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.msf-btn-ghost { background: transparent; color: inherit; border: 1px solid #333; }

.msf-check {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--msf-accent); color: var(--msf-accent-fg);
  display: grid; place-items: center; font-size: 32px; margin: 0 auto 16px;
}
.msf-done { text-align: center; }
.msf-summary {
  margin-top: 20px; text-align: left;
  border-top: 1px solid #222; padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.msf-summary > div { display: flex; justify-content: space-between; font-size: 14px; gap: 16px; }
.msf-summary span { opacity: 0.6; }
.msf-summary b { text-align: right; }

.msf-error {
  margin-top: 16px; padding: 10px 14px;
  background: rgba(255, 80, 80, 0.12); border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8080; font-size: 13px; border-radius: var(--msf-radius);
}

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

/* Large desktops / 4K — widen container, breathing room */
@media (min-width: 1600px) {
  .hero-grid,
  .section,
  .stats,
  .marquee-track { max-width: none; }
  .section { max-width: var(--container-xl); }
  .hero-grid { max-width: var(--container-xl); }
}
@media (min-width: 2200px) {
  html { font-size: 17px; }
  .section, .hero-grid { max-width: 1800px; }
}
@media (min-width: 2800px) {
  html { font-size: 18px; }
  .section, .hero-grid { max-width: 2000px; }
}

/* Tablet landscape (<=1200px) — reduce gaps */
@media (max-width: 1200px) {
  .nav-links { gap: 20px; }
}

/* Tablet portrait & below (<=960px) */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; align-items: stretch; }
  .timer-card { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process, .tiers, .portfolio, .testis { grid-template-columns: 1fr; }
  .step, .tier { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child, .tier:last-child { border-bottom: 0; }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 10, 10, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all 0.2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a {
    padding: 14px 24px; width: 100%;
    border-top: 1px solid var(--line);
    font-size: 15px; opacity: 0.85;
  }
  .nav-toggle { display: flex; order: 3; }
  .nav-cta { padding: 9px 14px; font-size: 11px; }
}

/* Small tablets / large phones (<=680px) */
@media (max-width: 680px) {
  .portfolio { grid-template-columns: 1fr; }
  .p-card { aspect-ratio: auto; min-height: 360px; }
  .testi-q { font-size: 16px; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* Phones (<=480px) */
@media (max-width: 480px) {
  .nav { padding: 14px 16px; gap: 8px; }
  .logo { font-size: 15px; }
  .nav-cta { padding: 8px 12px; letter-spacing: 0.03em; }

  .hero { padding: 40px 16px 60px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary {
    display: block; width: 100%;
    padding: 18px 18px; font-size: 14px; text-align: center;
  }

  .timer-card { padding: 20px; }
  .timer-digits { gap: 2px; font-size: clamp(36px, 11vw, 52px); }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }

  .section { padding: 60px 16px; }
  .section-intro { margin-bottom: 36px; }

  .testi { padding: 22px; }
  .t-price { font-size: 44px; }

  .final { padding: 70px 16px; }
  .final p { font-size: 16px; }

  .msf-overlay { padding: 0; align-items: flex-start; }
  .msf-modal { padding: 28px 20px 22px; min-height: 100vh; min-height: 100svh; border-radius: 0; }
  .msf-actions { justify-content: space-between; }
  .msf-actions .msf-btn { flex: 1; }
}

/* Very small phones (<=360px) */
@media (max-width: 360px) {
  h1.hero-h { font-size: 40px; }
  .section-h { font-size: 32px; }
  .final h2 { font-size: 40px; }
  .t-price { font-size: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pulse-dot, .timer-bar::after, .marquee-track { animation: none !important; }
  .btn-primary:hover, .nav-cta:hover { transform: none !important; box-shadow: none !important; }
}

/* Print */
@media print {
  .nav, .marquee, .msf-overlay, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section, .final, footer { border-color: #ccc; }
}
