/* ============================================================
   NeonTeam — neonteam.gr
   Design system: deep-space dark / neon magenta + cyan
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #04050d;
  --bg-1: #0a0c1c;
  --bg-2: #10132b;
  --line: rgba(146, 164, 222, 0.14);
  --line-strong: rgba(146, 164, 222, 0.26);

  --magenta: #ff2ee0;
  --magenta-soft: rgba(255, 46, 224, 0.16);
  --cyan: #29d8ff;
  --cyan-soft: rgba(41, 216, 255, 0.14);
  --violet: #8f5cff;

  --text: #e9edfb;
  --muted: #98a3c6;

  --grad: linear-gradient(90deg, var(--magenta), var(--cyan));

  --font-display: "Play", "Verdana", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 74px;

  --shadow-magenta: 0 0 22px rgba(255, 46, 224, 0.35);
  --shadow-cyan: 0 0 22px rgba(41, 216, 255, 0.32);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--magenta); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--bg-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--cyan);
}
.skip-link:focus { left: 8px; }

/* ---------- Background layers ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(146, 164, 222, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 164, 222, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.55em;
  letter-spacing: 0.015em;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }

.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 46, 224, 0.35));
}

/* Terminal eyebrow — signature label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ">"; color: var(--magenta); font-weight: 700; }
.eyebrow::after {
  content: "";
  width: 9px;
  height: 1.1em;
  background: var(--cyan);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Circuit divider between sections */
.circuit-divider {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--line-strong);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 7, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .b-neon { color: var(--magenta); text-shadow: 0 0 14px rgba(255, 46, 224, 0.65); }
.brand .b-team { color: var(--cyan); text-shadow: 0 0 14px rgba(41, 216, 255, 0.6); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 46, 224, 0.6);
}
.main-nav .btn { margin-left: 8px; }
.main-nav a.btn {
  padding: 8px 16px;
  border-bottom: 0;
}
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary:focus-visible {
  color: #07030d;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #07030d;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn-primary:hover { box-shadow: var(--shadow-magenta), var(--shadow-cyan); }

.btn-ghost {
  background: rgba(41, 216, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--shadow-cyan); }

.btn-discord {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.55);
  color: #cdd3ff;
}
.btn-discord:hover { box-shadow: 0 0 20px rgba(88, 101, 242, 0.45); border-color: #7984f5; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 72px) 0 84px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-meta span::before { content: "//"; color: var(--magenta); margin-right: 8px; }

/* Holo frame — HUD brackets around the hero visual */
.holo-frame {
  position: relative;
  padding: 14px;
}
.holo-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 46, 224, 0.1);
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 62%, transparent 98%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 62%, transparent 98%);
}
.holo-frame::before,
.holo-frame::after,
.holo-frame .corner::before,
.holo-frame .corner::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--cyan);
  filter: drop-shadow(0 0 8px rgba(41, 216, 255, 0.75));
}
.holo-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-color: var(--magenta); filter: drop-shadow(0 0 8px rgba(255, 46, 224, 0.75)); }
.holo-frame::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.holo-frame .corner::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.holo-frame .corner::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-color: var(--magenta); filter: drop-shadow(0 0 8px rgba(255, 46, 224, 0.75)); }

.holo-frame .scan {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.8;
  animation: scan 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 100% { top: 8%; opacity: 0; }
  8% { opacity: 0.85; }
  50% { top: 90%; opacity: 0.85; }
  58% { opacity: 0; }
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(19, 22, 46, 0.72), rgba(9, 11, 24, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5), 0 0 34px rgba(41, 216, 255, 0.12);
}
.card:hover::before { opacity: 1; }

.card h3 { margin-top: 16px; }
.card p { color: var(--muted); margin-bottom: 0; }

.card .icon {
  width: 52px;
  height: 52px;
  transition: filter 0.3s ease, transform 0.25s ease;
}
.card:hover .icon {
  filter: drop-shadow(0 0 9px rgba(255, 46, 224, 0.6)) drop-shadow(0 0 14px rgba(41, 216, 255, 0.45));
  transform: scale(1.06);
}

/* Terminal readout cards (why-us) */
.readout {
  font-family: var(--font-mono);
}
.readout .stat {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.readout .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 8px 0 12px;
}
.readout p { font-family: var(--font-body); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Process (ordered steps) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  background: rgba(10, 12, 28, 0.6);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--magenta);
  letter-spacing: 0.12em;
}
.step h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), transparent);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 15% 50%, rgba(255, 46, 224, 0.12), transparent 60%),
    radial-gradient(60% 120% at 85% 50%, rgba(41, 216, 255, 0.12), transparent 60%),
    rgba(8, 10, 24, 0.7);
  overflow: hidden;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-grid .holo-frame img { mask-image: none; -webkit-mask-image: none; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info .info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-info .info-row:last-of-type { border-bottom: 0; }
.contact-info .info-row .icon { width: 40px; height: 40px; flex: none; }
.contact-info h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-info p, .contact-info a { color: var(--muted); margin: 0; }
.contact-info a:hover { color: var(--cyan); }

.form-card { padding: 34px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.field label .req { color: var(--magenta); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(5, 6, 16, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 46, 224, 0.18), 0 0 18px rgba(255, 46, 224, 0.18);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-status.ok,
.form-status.is-success { display: block; border: 1px solid rgba(41, 216, 255, 0.5); background: var(--cyan-soft); color: #d9f6ff; }
.form-status.err,
.form-status.is-error { display: block; border: 1px solid rgba(255, 46, 224, 0.5); background: var(--magenta-soft); color: #ffe2fa; }

/* ---------- Prose (privacy policy) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; color: var(--cyan); }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.prose .doc-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  margin-top: 40px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 66px) 0 40px;
}
.page-hero .lead { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 16, 0.85);
  padding: 54px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .brand { font-size: 1.2rem; margin-bottom: 12px; }
.site-footer p { color: var(--muted); font-size: 0.95rem; max-width: 42ch; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-bottom .made {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.footer-bottom .made b { color: var(--magenta); font-weight: 500; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- 404 ---------- */
.error-hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
}
.error-hero .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 46, 224, 0.4));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .holo-frame .scan { animation: none; opacity: 0; }
  .eyebrow::after { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .holo-frame { max-width: 560px; margin-inline: auto; }
  .grid-3, .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .grid-3, .services-grid, .values-grid, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 7, 18, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after, .main-nav a:hover::after { display: none; }
  .main-nav .btn { margin: 16px 0 0; }
}
