/* ================= ELECTROH263 STUDIO — DESIGN SYSTEM ================= */
:root {
  --bg: #05070d;
  --bg-soft: #090d18;
  --bg-elevated: #0d1220;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef2ff;
  --text-muted: #9aa3c0;
  --text-dim: #5c6588;

  --accent-cyan: #00e5ff;
  --accent-violet: #7b61ff;
  --accent-pink: #ff2e92;
  --accent-gradient: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet) 55%, var(--accent-pink));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --shadow-cyan: 0 0 40px rgba(0, 229, 255, 0.22);
  --shadow-violet: 0 0 40px rgba(123, 97, 255, 0.22);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ================= GLOBAL BACKGROUND ================= */
.global-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 80%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(120px); }
.aurora-1 { width: 520px; height: 520px; background: var(--accent-cyan); opacity: 0.16; top: -12%; left: -12%; animation: aurora-drift-1 26s ease-in-out infinite; }
.aurora-2 { width: 600px; height: 600px; background: var(--accent-violet); opacity: 0.16; bottom: -16%; right: -12%; animation: aurora-drift-2 32s ease-in-out infinite; }
.aurora-3 { width: 420px; height: 420px; background: var(--accent-pink); opacity: 0.11; top: 42%; left: 58%; animation: aurora-drift-3 22s ease-in-out infinite; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
.accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { position: relative; padding: var(--space-9) var(--space-5); }
@media (max-width: 768px) { section { padding: var(--space-8) var(--space-4); } }

.section-head { max-width: 640px; margin: 0 auto var(--space-8); text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-3);
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; }
.section-sub { color: var(--text-muted); margin-top: var(--space-3); font-size: 1rem; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  background-size: 200% 200%;
  color: #05070d;
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(123, 97, 255, 0.35); background-position: 100% 50%; }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--accent-cyan); box-shadow: var(--shadow-cyan); transform: translateY(-3px); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  padding: var(--space-4) var(--space-5);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-block: var(--space-3);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo { display: flex; align-items: center; gap: var(--space-2); }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4)); }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-link { font-size: 0.92rem; color: var(--text-muted); position: relative; transition: color 0.25s var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent-gradient); transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: var(--space-2); }

.lang-switcher { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.lang-btn { padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text-dim); transition: all 0.25s var(--ease); }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent-gradient); color: #05070d; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; z-index: 600; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 450;
  background: rgba(5, 7, 13, 0.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-link { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.36s; }
.mobile-menu.open .mobile-link:nth-child(7) { transition-delay: 0.42s; }
.lang-switcher--mobile { margin-top: var(--space-4); }

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.neon-grid {
  position: absolute; inset: -10% -10% -30% -10%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(58deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  opacity: 0.5;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; }
.blob-cyan { width: 380px; height: 380px; background: var(--accent-cyan); top: -80px; left: -100px; }
.blob-violet { width: 420px; height: 420px; background: var(--accent-violet); bottom: -140px; right: -80px; }
.blob-pink { width: 280px; height: 280px; background: var(--accent-pink); top: 40%; right: 20%; opacity: 0.2; }

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; margin: var(--space-4) 0; }
.hero-desc { color: var(--text-muted); font-size: 1.08rem; max-width: 480px; margin-bottom: var(--space-6); }
.hero-buttons { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }

.hero-terminal {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-cyan);
}
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.terminal-dots span:nth-child(1) { background: var(--accent-pink); }
.terminal-dots span:nth-child(2) { background: #ffd166; }
.terminal-dots span:nth-child(3) { background: #4ade80; }
.terminal-line { min-width: 180px; white-space: nowrap; overflow: hidden; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-core-wrap { position: relative; width: min(420px, 90vw); }
.hero-core { width: 100%; }
.ring { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.ring-outer { stroke-dasharray: 6 10; }
.ring-mid { stroke: rgba(0, 229, 255, 0.25); }
.ring-inner { stroke: rgba(123, 97, 255, 0.3); }
.node { fill: var(--accent-cyan); filter: drop-shadow(0 0 6px currentColor); }
.node-cyan { fill: var(--accent-cyan); color: var(--accent-cyan); }
.node-violet { fill: var(--accent-violet); color: var(--accent-violet); }
.node-pink { fill: var(--accent-pink); color: var(--accent-pink); }
.core-hex { fill: rgba(0, 229, 255, 0.08); stroke: var(--accent-cyan); stroke-width: 1.5; }
.core-dot { fill: var(--accent-cyan); filter: drop-shadow(0 0 14px var(--accent-cyan)); }
.core-cross { stroke: var(--border-strong); stroke-width: 1; }

.float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: rgba(9, 13, 24, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.badge-1 { top: 6%; left: -6%; }
.badge-2 { bottom: 18%; right: -8%; }
.badge-3 { bottom: -4%; left: 12%; }
.badge-2 .badge-dot { background: var(--accent-violet); box-shadow: 0 0 8px var(--accent-violet); }
.badge-3 .badge-dot { background: var(--accent-pink); box-shadow: 0 0 8px var(--accent-pink); }

.scroll-cue { position: relative; z-index: 2; margin: var(--space-7) auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dim); }
.scroll-cue-text { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; }
.scroll-cue-line { width: 1px; height: 34px; background: linear-gradient(var(--accent-cyan), transparent); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .hero-core-wrap { margin-top: var(--space-7); }
  .float-badge { position: static; margin: 8px auto 0; width: fit-content; }
}

/* ================= CARD BASE ================= */
.service-card, .hud-card, .work-card, .process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* ================= SERVICES ================= */
.services-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card { padding: var(--space-6); position: relative; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--accent-gradient); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card), var(--shadow-cyan); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 52px; height: 52px; margin-bottom: var(--space-4); color: var(--accent-cyan); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-icon svg .fill { fill: currentColor; stroke: none; }
.service-icon svg .thin { stroke-width: 1.1; opacity: 0.7; }
.service-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ================= PROCESS ================= */
.process-line {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  position: relative;
}
.process-step { padding: var(--space-5); position: relative; }
.process-step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.process-icon { width: 40px; height: 40px; color: var(--accent-violet); margin-bottom: var(--space-3); }
.process-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.process-icon svg .fill { fill: currentColor; stroke: none; }
.process-icon svg .thin { stroke-width: 1; opacity: 0.8; }
.process-num { position: absolute; top: var(--space-4); right: var(--space-5); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.process-step p { color: var(--text-muted); font-size: 0.87rem; }
@media (max-width: 820px) { .process-line { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-line { grid-template-columns: 1fr; } }

/* ================= TECH STACK MARQUEE ================= */
.marquee { overflow: hidden; width: 100%; margin-top: var(--space-4); -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-4); width: max-content; animation: marquee 24s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 30s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tech-chip {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--surface-strong); border: 1px solid var(--border);
  white-space: nowrap;
}
.tech-chip.outline { color: var(--accent-cyan); border-color: rgba(0, 229, 255, 0.25); background: rgba(0, 229, 255, 0.05); }

/* ================= WORKS ================= */
.works-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.work-card { overflow: hidden; }
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card), var(--shadow-violet); border-color: var(--border-strong); }
.work-preview { aspect-ratio: 16/10; overflow: hidden; }
.work-preview svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.work-card:hover .work-preview svg { transform: scale(1.06); }
.wp-bg { fill: var(--bg-elevated); }
.wp-panel { fill: var(--surface-strong); stroke: var(--border-strong); stroke-width: 1; }
.wp-line { fill: none; stroke: var(--accent-cyan); stroke-width: 2; stroke-linecap: round; }
.wp-ring { fill: none; stroke: var(--accent-violet); stroke-width: 3; opacity: 0.7; }
.work-preview--nexora .wp-line { stroke: var(--accent-cyan); }
.work-preview--vanta .wp-panel { fill: rgba(255, 46, 146, 0.08); }
.work-preview--lumen .wp-ring { stroke: var(--accent-pink); }
.work-preview--ember .wp-line { stroke: #ffb347; }
.work-body { padding: var(--space-5); }
.work-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-cyan); letter-spacing: 0.06em; }
.work-body h3 { font-size: 1.25rem; margin: var(--space-2) 0 var(--space-2); }
.work-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: var(--space-3); }
.work-link { font-weight: 600; font-size: 0.9rem; color: var(--accent-cyan); position: relative; }
.work-link::after { content: " →"; transition: margin 0.3s var(--ease); }
.work-link:hover::after { margin-left: 4px; }
@media (max-width: 800px) { .works-grid { grid-template-columns: 1fr; } }

/* ================= WHY / HUD ================= */
.hud-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.hud-card { padding: var(--space-5); position: relative; }
.hud-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.04)); pointer-events: none; }
.hud-card:hover { transform: translateY(-6px); border-color: rgba(0, 229, 255, 0.35); box-shadow: var(--shadow-cyan); }
.hud-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-bottom: var(--space-4); letter-spacing: 0.05em; }
.hud-status { color: #4ade80; display: flex; align-items: center; gap: 5px; }
.hud-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: blink-status 1.6s ease-in-out infinite; }
.hud-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.hud-card p { color: var(--text-muted); font-size: 0.88rem; }
@media (max-width: 900px) { .hud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hud-grid { grid-template-columns: 1fr; } }

/* ================= FAQ ================= */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease);
}
.faq-item.open { border-color: rgba(0, 229, 255, 0.3); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 20px 24px; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
}
.faq-chevron { flex-shrink: 0; font-size: 1.3rem; color: var(--accent-cyan); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-chevron { transform: rotate(90deg); }
.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }

/* ================= CONTACT ================= */
.contact-section { overflow: hidden; }
.contact-glow { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: var(--accent-violet); opacity: 0.14; filter: blur(100px); border-radius: 50%; z-index: 0; }
.contact-layout { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-7); align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.form-row input, .form-row textarea {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); resize: vertical; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15); }
.form-row.has-error input, .form-row.has-error textarea { border-color: var(--accent-pink); }
.form-error { font-size: 0.78rem; color: var(--accent-pink); min-height: 1em; }
.contact-form .btn { align-self: flex-start; margin-top: var(--space-2); }
.form-success { text-align: center; padding: var(--space-6) 0; }
.form-success .terminal-line { font-family: var(--font-mono); color: var(--accent-cyan); font-size: 0.8rem; margin-bottom: var(--space-3); }
.form-success h4 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.form-success p { color: var(--text-muted); margin-bottom: var(--space-4); }

.telegram-cta { gap: 10px; }
.telegram-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.telegram-icon .fill { fill: currentColor; stroke: none; }
.telegram-cta--main { width: 100%; }

.contact-side { display: flex; flex-direction: column; gap: var(--space-5); }
.eh263-terminal {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-5); display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-cyan);
  box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.05);
}
.eh263-terminal span { opacity: 0.85; }
.eh263-terminal span::before { content: "> "; color: var(--text-dim); }
.contact-quote { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-muted); font-style: italic; border-left: 2px solid var(--accent-violet); padding-left: var(--space-4); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--border); padding-top: var(--space-8); background: var(--bg-soft); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5) var(--space-7); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: var(--space-3); max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: var(--space-3); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-2); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.social-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease); color: var(--text-muted); }
.social-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-icon svg .fill { fill: currentColor; stroke: none; }
.social-icon:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); transform: translateY(-3px); }

.footer-ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
.footer-ticker-track { display: flex; gap: var(--space-6); width: max-content; animation: marquee 22s linear infinite; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

.footer-bottom { max-width: var(--container); margin: 0 auto; padding: var(--space-5); text-align: center; }
.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ================= SCROLL PROGRESS ================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--accent-gradient); z-index: 999; transition: width 0.1s linear; }
