/* ============================================================
   FMTech — Facskó Máté business site
   Dark tech + red accent, scroll-driven hero
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --bg-elev: #101216;
  --bg-card: #0f1115;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f4f5f7;
  --fg-dim: #a8acb4;
  --fg-faint: #6b6f78;

  --accent: oklch(0.68 0.22 25);
  --accent-glow: oklch(0.68 0.22 25 / 0.4);
  --accent-soft: oklch(0.68 0.22 25 / 0.12);
  --accent-line: oklch(0.68 0.22 25 / 0.45);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;

  --hero-progress: 0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   Background grid + noise
   ============================================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  opacity: 0.6;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 14px var(--accent-glow));
  transition: filter 0.2s ease;
}
.nav-brand:hover .nav-brand-mark {
  filter: drop-shadow(0 0 20px var(--accent-glow));
}
.nav-brand-name { color: var(--fg); font-weight: 500; }
.nav-brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--fg-dim);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-toggle:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}
.lang-toggle .seg {
  padding: 2px 6px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.lang-toggle .seg.active {
  background: var(--accent);
  color: var(--bg);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
}

/* ============================================================
   HERO — scroll-driven
   ============================================================ */
.hero-wrap {
  position: relative;
  height: 360vh;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-eyebrow {
  position: absolute;
  top: max(80px, calc(50% - min(280px, 38vh)));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  text-transform: uppercase;
  opacity: calc(1 - var(--hero-progress) * 2.5);
  pointer-events: none;
  white-space: nowrap;
}
.hero-eyebrow .accent-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  box-shadow: 0 0 12px var(--accent-glow);
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - min(80px, 16vh)));
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  margin: 0;
}
.hero-title .line2 {
  display: block;
  color: var(--fg-dim);
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  position: absolute;
  top: min(calc(50% + 80px), calc(100% - 120px));
  left: 50%;
  transform: translateX(-50%);
  max-width: 540px;
  text-align: center;
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.5;
  pointer-events: none;
  margin: 0;
  padding: 0 20px;
}
.hero-sub .sub-short { display: none; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.device-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 880px, calc(70vh * 16 / 11));
  perspective: 1600px;
}

/* ============================================================
   Laptop (CSS-built)
   ============================================================ */
.laptop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  transform-style: preserve-3d;
}

.laptop-screen {
  position: absolute;
  inset: 0 0 9% 0;
  background: #07090c;
  border-radius: 14px 14px 4px 4px;
  border: 1px solid var(--line-strong);
  transform-origin: bottom center;
  transform: rotateX(calc(-100deg + var(--hero-progress) * 100deg));
  box-shadow:
    0 -20px 60px -10px var(--accent-glow),
    0 0 0 2px rgba(0,0,0,0.4) inset;
  overflow: hidden;
}
.laptop-screen-bezel {
  position: absolute;
  inset: 14px;
  border-radius: 4px;
  background: #050608;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.laptop-screen-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1a1d22;
  transform: translateX(-50%);
}

.laptop-base {
  position: absolute;
  bottom: 0;
  left: -2%;
  right: -2%;
  height: 14%;
  background: linear-gradient(to bottom, #2a2d33, #1a1d22 30%, #0a0b0d);
  border-radius: 4px 4px 14px 14px;
  border: 1px solid var(--line);
  border-top: none;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.8),
    0 0 0 1px var(--line) inset;
}
.laptop-base::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}
.laptop-base::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: rgba(0,0,0,0.6);
  border-radius: 2px;
}

/* Screen content */
.screen-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #c8ccd2;
  opacity: calc((var(--hero-progress) - 0.55) * 4);
}
.screen-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #0a0c10;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.screen-titlebar .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.screen-titlebar .dot.r { background: #ff5f57; }
.screen-titlebar .dot.y { background: #febc2e; }
.screen-titlebar .dot.g { background: #28c840; }
.screen-titlebar .title {
  margin-left: 12px;
  font-size: 9px;
  color: #6b6f78;
  letter-spacing: 0.05em;
}
.screen-body {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  flex: 1;
  min-height: 0;
}
.screen-sidebar {
  background: #07090c;
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 8px 10px;
  font-size: 9px;
  color: #6b6f78;
}
.screen-sidebar .file {
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen-sidebar .file::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid currentColor;
  border-radius: 1px;
  opacity: 0.5;
}
.screen-sidebar .file.active {
  color: var(--accent);
}
.screen-sidebar .folder {
  padding: 2px 0;
  color: #888c95;
  font-weight: 500;
}
.screen-editor {
  padding: 10px 12px;
  border-right: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  font-size: 10px;
}
.screen-editor .line {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}
.screen-editor .ln {
  color: #3a3d44;
  width: 14px;
  flex-shrink: 0;
  text-align: right;
}
.tk-key { color: #c792ea; }
.tk-fn { color: #82aaff; }
.tk-str { color: var(--accent); }
.tk-com { color: #4a4d54; font-style: italic; }
.tk-cls { color: #ffcb6b; }
.tk-pn { color: #89ddff; }

.screen-terminal {
  padding: 10px 12px;
  background: #04060a;
  font-size: 10px;
  overflow: hidden;
}
.screen-terminal .prompt::before {
  content: "$ ";
  color: var(--accent);
}
.screen-terminal .out { color: #6b6f78; }
.screen-terminal .ok { color: #d6dae0; }
.screen-terminal .info { color: #82aaff; }
.cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Glow under laptop */
.laptop-floor {
  position: absolute;
  bottom: -8%;
  left: 10%;
  right: 10%;
  height: 50px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(16px);
  opacity: calc(var(--hero-progress) * 0.9);
  z-index: -1;
}

/* ============================================================
   Phone satellite — slides in next to laptop
   ============================================================ */
.phone-satellite {
  position: absolute;
  right: -4%;
  bottom: 6%;
  width: 14%;
  aspect-ratio: 9 / 19;
  background: #0a0b0d;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  padding: 4px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    0 0 40px var(--accent-glow);
  transform:
    translateX(calc((1 - var(--hero-progress)) * 80%))
    translateY(calc((1 - var(--hero-progress)) * 40%))
    rotate(calc(20deg - var(--hero-progress) * 14deg));
  opacity: calc(var(--hero-progress) * 1.2 - 0.1);
  z-index: 2;
}
.phone-satellite-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050608;
  border-radius: 12px;
  overflow: hidden;
}
.phone-satellite-notch {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 5%;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-satellite-content {
  position: absolute;
  inset: 0;
  padding: 18% 8% 6%;
  font-family: var(--font-mono);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 6%;
  opacity: calc((var(--hero-progress) - 0.55) * 4);
}
.phone-satellite-content .ps-title {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
}
.phone-satellite-content .ps-sub {
  font-size: 7px;
  color: var(--fg-faint);
  margin-top: -4%;
}
.phone-satellite-content .ps-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6%;
  font-size: 7px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 6%;
}
.phone-satellite-content .ps-card .ps-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}
.phone-satellite-content .ps-card.muted .ps-dot {
  background: var(--fg-faint);
  box-shadow: none;
}
.phone-satellite-content .ps-bar {
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  width: calc(var(--hero-progress) * 70% + 10%);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================================
   Section primitives
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: 140px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .section { padding: 80px 20px; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-label .num {
  color: var(--accent);
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 880px;
}
.section-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.section-lead {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 64px;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.2s ease;
  cursor: default;
  min-height: 280px;
}
.service-card:hover { background: var(--bg-elev); }
.service-card:hover .svc-icon { color: var(--accent); }
.service-card:hover .svc-arrow { transform: translateX(4px); color: var(--accent); }

.service-card.span-6 { grid-column: span 6; }
.service-card.span-4 { grid-column: span 4; }
.service-card.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .service-card.span-6, .service-card.span-4, .service-card.span-12 {
    grid-column: span 12;
  }
}

.svc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
}
.svc-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  transition: color 0.2s ease;
  margin-bottom: 8px;
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.svc-body {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.svc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-dim);
}
.svc-arrow {
  position: absolute;
  top: 32px; right: 28px;
  font-family: var(--font-mono);
  color: var(--fg-faint);
  transition: all 0.2s ease;
}

/* ============================================================
   Process
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
}

.process-steps {
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.process-step .step-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.process-step .step-body {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.process-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.7;
}
.process-aside .aside-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.process-aside .aside-title::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}
.process-aside .kv {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.process-aside .kv:last-child { border-bottom: none; }
.process-aside .kv .k { color: var(--fg-faint); }
.process-aside .kv .v { color: var(--fg); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-card);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--accent);
}
.field textarea {
  resize: none;
  min-height: 100px;
  font-family: var(--font-sans);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
  box-shadow: 0 0 0 var(--accent-glow);
  font-weight: 500;
}
.submit-btn:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.submit-btn[data-state="error"] {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

/* Honeypot — visually hidden, accessible to bots only */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.contact-info-row:first-child { border-top: 1px solid var(--line); }
.contact-info-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.contact-info-row .value {
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.contact-info-row .value a {
  position: relative;
  transition: color 0.15s;
}
.contact-info-row .value a:hover {
  color: var(--accent);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
}
.availability .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Toast for form submit */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Mobile finishing — < 720px tablet/landscape, < 480px portrait
   ============================================================ */
@media (max-width: 720px) {
  /* Nav: smaller padding, tighter tools, brand name shrunk */
  .nav { padding: 12px 14px; gap: 10px; }
  .nav-brand { gap: 8px; }
  .nav-brand-name { font-size: 13px; }
  .nav-tools { gap: 6px; }
  .nav-cta { padding: 8px 12px; font-size: 11px; }
  .lang-toggle { padding: 5px 8px; font-size: 11px; }

  /* Hero: shorter scroll length, smaller text, wrap allowed */
  .hero-wrap { height: 260vh; }
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    white-space: normal;
    max-width: 92vw;
    text-align: center;
    top: max(74px, calc(50% - min(240px, 36vh)));
  }
  .hero-title {
    font-size: clamp(36px, 11vw, 64px);
    white-space: normal;
    max-width: calc(100vw - 28px);
    line-height: 1;
    transform: translate(-50%, calc(-50% - min(64px, 14vh)));
  }
  .hero-title .line2 { display: inline; }
  .hero-sub {
    font-size: 15px;
    padding: 0 22px;
    max-width: 100%;
    line-height: 1.45;
    top: min(calc(50% + 70px), calc(100% - 110px));
  }
  .hero-scroll-hint { bottom: 20px; font-size: 10px; }

  /* Phone-satellite: hide on small screens — too tiny to be readable */
  .phone-satellite { display: none; }

  /* Service cards: less vertical padding, no min-height */
  .service-card { padding: 28px 22px; min-height: 0; }
  .service-card .svc-arrow { top: 24px; right: 22px; }
  .svc-title { font-size: 20px; }

  /* Process aside: ne legyen sticky mobil-on (kis viewport-on zavaró) */
  .process-aside { position: static; padding: 22px; }
  .process-step { padding: 22px 0; grid-template-columns: 44px 1fr; gap: 16px; }

  /* Contact: kompaktabb form + info rows */
  .contact-form { padding: 24px 20px; gap: 14px; }
  .contact-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }
  .contact-info-row .value { font-size: 16px; }
  .availability { font-size: 11px; padding: 7px 12px; }
  .submit-btn { padding: 14px 22px; }

  /* Footer: center stack instead of justify-between */
  .footer { padding: 40px 20px 32px; }
  .footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Brand name eltűnik kis kijelzőn — csak az ikon marad */
  .nav-brand-name { display: none; }
  .nav { padding: 10px 12px; }

  /* Hero tovább finomítva */
  .hero-title { font-size: clamp(32px, 10.5vw, 52px); }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: 0.12em; }
  .hero-sub { font-size: 15px; padding: 0 18px; }
  .hero-sub .sub-full { display: none; }
  .hero-sub .sub-short { display: inline; }

  /* Section title kicsit kisebb */
  .section-title { font-size: clamp(28px, 8vw, 40px); }
  .section-lead { font-size: 16px; margin-bottom: 40px; }
  .section-label { font-size: 11px; }

  .service-card { padding: 24px 18px; }
  .svc-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
