/* =========================================================
   North Rail Digital — styles
   Edit the variables below to re-brand the whole site.
   ========================================================= */
:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #161a23;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9ecf2;
  --muted: #9aa3b2;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --brand-3: #f472b6;
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  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; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), rgba(124, 92, 255, 0.10), transparent 60%);
  transition: background 0.1s;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.5em; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5b8cff);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--brand);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px var(--brand); }
.btn-ghost { border-color: var(--border); background: rgba(255,255,255,0.03); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-small { padding: 0.55em 1.1em; font-size: 0.9rem; background: var(--text); color: var(--bg) !important; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1140px) / 2));
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 13, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-family: "Fraunces", serif;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: float 18s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: var(--brand); top: -120px; left: -100px; }
.b2 { width: 420px; height: 420px; background: var(--brand-2); bottom: -100px; right: -80px; animation-delay: -6s; }
.b3 { width: 320px; height: 320px; background: var(--brand-3); top: 40%; left: 55%; animation-delay: -12s; opacity: 0.25; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); font-size: 0.875rem; color: var(--muted);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); max-width: 15ch; margin: 24px auto 24px; }
.rotator { display: block; min-height: 1.15em; }
/* extra bottom padding so background-clip:text doesn't cut off descenders (g, y, p) */
.rotator-word { display: inline-block; padding: 0 0.04em 0.14em; margin-bottom: -0.14em; transition: opacity 0.4s, transform 0.4s var(--ease), filter 0.4s; }
.rotator-word.out { opacity: 0; transform: translateY(20px); filter: blur(6px); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.proof {
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px); flex-wrap: wrap;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  max-width: 720px; margin-inline: auto;
}
.proof-item { display: flex; flex-direction: column; }
.proof-item strong { font-size: 2rem; font-family: "Fraunces", serif; }
.proof-item > span { font-size: 0.85rem; color: var(--muted); }
.hero-note {
  position: relative; z-index: 1; margin: 48px auto 0; font-size: 0.9rem; color: var(--muted);
  text-align: center; padding: 0 16px;
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--border); overflow: hidden; padding: 22px 0;
  background: var(--bg-alt); position: relative; z-index: 1;
}
.marquee-track { display: flex; gap: 32px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--brand); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700;
  color: var(--brand-2); margin-bottom: 14px;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- live demo ---------- */
.demo-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.demo-tab {
  font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: all 0.3s var(--ease);
}
.demo-tab:hover { color: var(--text); }
.demo-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.browser {
  --d-bg: #fff8f0; --d-text: #3b2418; --d-accent: #d97742; --d-accent-text: #fff; --d-card: #ffffff;
  --d-font: "Playfair Display", serif; --d-radius: 14px; --d-art: linear-gradient(135deg, #ffd8b0, #f6a96b);
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03);
  max-width: 980px; margin: 0 auto; background: var(--surface);
}
.browser[data-theme="barber"] {
  --d-bg: #111111; --d-text: #f2efe9; --d-accent: #c8a45d; --d-accent-text: #111; --d-card: #1c1c1c;
  --d-font: "Bebas Neue", sans-serif; --d-radius: 2px; --d-art: linear-gradient(135deg, #2a2a2a, #c8a45d);
}
.browser[data-theme="plumber"] {
  --d-bg: #f3f7fc; --d-text: #0d2240; --d-accent: #1f6feb; --d-accent-text: #fff; --d-card: #ffffff;
  --d-font: "Inter", sans-serif; --d-radius: 10px; --d-art: linear-gradient(135deg, #bcd7ff, #1f6feb);
}
.browser[data-theme="landscape"] {
  --d-bg: #f4f1e8; --d-text: #1f3324; --d-accent: #3f7d4e; --d-accent-text: #fff; --d-card: #fffdf7;
  --d-font: "Fraunces", serif; --d-radius: 24px; --d-art: linear-gradient(135deg, #cfe8c4, #3f7d4e);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1d212b; border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.url {
  flex: 1; margin-left: 12px; padding: 6px 14px; border-radius: 8px; background: #11141b;
  color: var(--muted); font-size: 0.85rem; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lock { font-size: 0.75rem; }

.mock { background: var(--d-bg); color: var(--d-text); padding: 22px clamp(18px, 4vw, 44px) 40px; transition: background 0.6s var(--ease), color 0.6s; }
.mock * { transition: all 0.6s var(--ease); }
.mock-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.mock-logo { font-family: var(--d-font); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }
.mock-links { display: flex; gap: 22px; font-size: 0.9rem; opacity: 0.75; }
.mock-btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--d-radius);
  background: var(--d-accent); color: var(--d-accent-text); font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.mock-btn.ghost { background: transparent; color: var(--d-text); box-shadow: inset 0 0 0 2px currentColor; }
.mock-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.mock-eyebrow { color: var(--d-accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.mock-title { font-family: var(--d-font); font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.05; margin-bottom: 16px; }
.browser[data-theme="barber"] .mock-title { letter-spacing: 0.02em; font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.mock-sub { opacity: 0.75; max-width: 42ch; }
.mock-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.mock-art {
  aspect-ratio: 1; border-radius: var(--d-radius); background: var(--d-art);
  display: grid; place-items: center; font-size: clamp(4rem, 10vw, 7rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.mock-art.pop { animation: pop 0.6s var(--ease); }
@keyframes pop { 0% { transform: scale(0.8) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mock-card {
  background: var(--d-card); border-radius: var(--d-radius); padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 6px 20px -10px rgba(0,0,0,0.25);
  border: 1px solid rgba(127,127,127,0.12);
}
.mi { font-size: 1.5rem; }
.mock-card small { opacity: 0.65; }

/* ---------- before/after ---------- */
.compare {
  --pos: 50%;
  position: relative; max-width: 980px; margin: 0 auto; height: 440px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); user-select: none; touch-action: pan-y;
}
.compare-pane { position: absolute; inset: 0; }
.compare-pane.after { clip-path: inset(0 0 0 var(--pos)); }
.old-site {
  height: 100%; background: #c0c0c0 repeating-linear-gradient(45deg, #c8c8c8 0 10px, #bdbdbd 10px 20px);
  font-family: "Times New Roman", serif; color: #000; padding: 20px 28px; text-align: center;
}
.old-marquee { background: #000080; color: yellow; font-weight: bold; padding: 4px; font-family: "Comic Sans MS", cursive; }
.old-site h3 { font-family: "Comic Sans MS", cursive; color: #ff0000; font-size: 1.9rem; margin: 18px 0 4px; text-shadow: 2px 2px #ffff00; letter-spacing: 0; }
.old-under { color: #000; font-weight: bold; }
.old-table { margin: 10px auto; border: 3px outset #fff; background: #ddd; }
.old-table td { padding: 4px 14px; border: 2px inset #fff; }
.old-table a { color: #0000ee; }
.old-site p { max-width: 520px; margin-inline: auto; font-size: 0.95rem; }
.old-counter b { background: #000; color: #0f0; font-family: monospace; padding: 2px 6px; }
.old-small { font-size: 0.7rem !important; color: #444; }

.new-site {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 40px clamp(24px, 6vw, 72px) 40px 52%;
  background:
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.35), transparent 50%),
    linear-gradient(135deg, #0c1f3f, #0a3a66);
  color: #fff;
}
.new-badge { background: rgba(255,255,255,0.12); padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
.new-site h3 { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.new-site p { opacity: 0.8; }
.new-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 18px; }
.new-btn { background: #22d3ee; color: #062033; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; }
.new-btn.alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.new-stars { color: #fbbf24; letter-spacing: 2px; }
.new-stars span { color: #fff; letter-spacing: 0; opacity: 0.8; font-size: 0.9rem; margin-left: 6px; }

.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: #fff; cursor: ew-resize; z-index: 3; outline: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4); transition: transform 0.2s var(--ease);
}
.compare-handle:hover span, .compare-handle:focus-visible span { transform: translate(-50%, -50%) scale(1.12); }
.compare-label {
  position: absolute; top: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.compare-label.left { left: 14px; }
.compare-label.right { right: 14px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transform-style: preserve-3d; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(124,92,255,0.18), transparent 50%);
}
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); margin-bottom: 20px;
}
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); margin: 0; }

/* ---------- process ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2), transparent);
}
.timeline li { display: flex; gap: 28px; padding-bottom: 44px; }
.timeline li:last-child { padding-bottom: 0; }
.step-num {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--brand); font-family: "Fraunces", serif; font-weight: 800; font-size: 1.2rem;
  position: relative; z-index: 1;
}
.timeline h3 { font-size: 1.35rem; margin-top: 14px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); }
.plan.featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(124,92,255,0.5);
}
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-tag.alt { background: var(--surface); color: var(--brand-2); border: 1px solid var(--border); }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 0.95rem; }
.price { font-family: "Fraunces", serif; font-size: 3.4rem; font-weight: 800; margin: 8px 0 20px; line-height: 1; }
.price span { font-size: 1.6rem; vertical-align: top; margin-right: 2px; }
.price small { font-size: 1rem; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); border-bottom: 1px solid var(--border); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }

/* ---------- faq ---------- */
.faq details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-2); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact-section { overflow: hidden; }
/* soft glow: plain radial gradient instead of filter:blur (blur caused a dark box behind the heading on iOS Safari) */
.contact-section::before {
  content: ""; position: absolute; width: 900px; height: 900px; max-width: 160%; top: -5%; left: -250px;
  background: radial-gradient(circle at center, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0) 62%);
  pointer-events: none; z-index: 0;
}
.contact-section > .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
.contact-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.contact-copy > p { color: var(--muted); font-size: 1.1rem; }
.contact-points { list-style: none; padding: 0; margin: 24px 0; }
.contact-points li { padding: 6px 0; font-weight: 500; }
.contact-direct { color: var(--muted); }
.contact-direct a { color: var(--brand-2); }

.contact-form {
  background: rgba(22, 26, 35, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow);
}
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 16px 8px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--surface); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,0.18); }
.field label {
  position: absolute; left: 17px; top: 16px; color: var(--muted); pointer-events: none;
  transition: all 0.2s var(--ease); font-size: 1rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.static { top: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.field.invalid input { border-color: #f87171; }
.addon {
  position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s;
}
.addon:hover { border-color: rgba(255,255,255,0.18); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon-box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted);
  display: grid; place-items: center; transition: all 0.2s var(--ease);
}
.addon-box::after { content: "✓"; color: #fff; font-size: 0.8rem; font-weight: 800; transform: scale(0); transition: transform 0.2s var(--ease); }
.addon input:checked + .addon-box { background: var(--brand); border-color: var(--brand); }
.addon input:checked + .addon-box::after { transform: scale(1); }
.addon input:focus-visible + .addon-box { box-shadow: 0 0 0 4px rgba(124,92,255,0.3); }
.addon:has(input:checked) { border-color: var(--brand); background: rgba(124,92,255,0.08); }
.addon-text { font-size: 0.95rem; color: var(--muted); }
.addon-text b { color: var(--text); }
.form-status { margin: 14px 0 0; text-align: center; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #34d399; }
.form-status.err { color: #f87171; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer p { margin: 0; color: var(--muted); }
.muted { font-size: 0.85rem; opacity: 0.7; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px 24px 32px;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(11, 13, 18, 0.97); backdrop-filter: blur(14px);
    transform: translateY(-100%); transition: transform 0.4s var(--ease); z-index: -1;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 0; font-size: 1.1rem; }
  .nav-links .btn-small { margin-top: 10px; padding: 14px; }
  .mock-links { display: none; }
  .mock-hero { grid-template-columns: 1fr; }
  .mock-art { aspect-ratio: 16 / 7; }
  .mock-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .compare { height: 520px; }
  .new-site { padding: 24px 18px 24px calc(50% + 18px); }
  .new-site h3 { font-size: 1.35rem; }
  .new-site p { font-size: 0.9rem; }
  .new-badge { font-size: 0.7rem; }
  .new-btn { padding: 8px 12px; font-size: 0.8rem; }
}
@media (max-width: 520px) {
  .mock-nav .mock-btn { display: none; }
  .old-site { padding: 14px; }
  .old-site h3 { font-size: 1.4rem; }
  .timeline li { gap: 18px; }
  .step-num { width: 52px; height: 52px; font-size: 1rem; }
  .timeline::before { left: 25px; }
}

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