/*
  :NDIGITAL / Neuro Digital Kft.
  Public landing styles.
*/
/* ---------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --ink: #f3fbf8;
  --blue: #75d7ff;
  --green: #8df0bd;
  --coral: #ffae9f;
  --bg: #071419;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(117, 215, 255, 0.24), transparent 30%),
    radial-gradient(circle at 16% 82%, rgba(43, 201, 135, 0.22), transparent 34%),
    linear-gradient(140deg, #071419 0%, #0d2228 46%, #102d2c 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(188, 239, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 239, 232, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 92%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 174, 159, 0.08), transparent 24%),
    linear-gradient(0deg, rgba(7, 20, 25, 0.58), transparent 48%);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------ */
.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  display: grid;
  width: min(80vw, 1500px);
  justify-items: center;
  margin: 0 auto;
  padding: 24px 0 8px;
}

.studio-badge {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(188, 239, 232, 0.16);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(8, 24, 29, 0.54);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  color: #ddfff1;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

main {
  display: flex;
  width: min(80vw, 1500px);
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 42px;
  margin: 0 auto;
  padding: 34px 0 44px;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--ink);
  font-size: 5.85rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.16;
  text-decoration-line: underline;
  text-decoration-color: rgba(141, 240, 189, 0.58);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.gradient-text {
  display: inline;
  background: linear-gradient(95deg, #75d7ff 0%, #8df0bd 55%, #ffae9f 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 700px;
  margin: 30px 0 0;
  color: #c4dcda;
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.7;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
}

.keyword {
  border: 1px solid rgba(188, 239, 232, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(10, 28, 34, 0.62);
  color: #e6fff4;
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

/* ---------------------------------------------------------------------
   Interactive binary field
   ------------------------------------------------------------------ */
.visual-zone {
  position: relative;
  display: grid;
  width: 100%;
  min-height: auto;
  place-items: center;
  isolation: isolate;
}

.visual-shell {
  position: relative;
  width: min(100%, 980px);
  aspect-ratio: 16 / 7;
  border: 1px solid rgba(188, 239, 232, 0.18);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(20, 57, 66, 0.92), rgba(7, 20, 25, 0.7)),
    radial-gradient(circle at 70% 22%, rgba(117, 215, 255, 0.28), transparent 30%),
    radial-gradient(circle at 24% 76%, rgba(141, 240, 189, 0.22), transparent 34%);
  box-shadow: var(--shadow);
}

.visual-shell::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(188, 239, 232, 0.14);
  border-radius: 22px;
  content: "";
  pointer-events: none;
}

.visual-shell::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(141, 240, 189, 0.07)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

#codeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.orbit-labels {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.orbit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(188, 239, 232, 0.16);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(8, 24, 29, 0.62);
  color: #dffcf0;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.orbit-label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.orbit-label.dev {
  color: var(--blue);
}

.orbit-label.ops {
  color: var(--green);
}

.orbit-label.ai {
  color: var(--coral);
}

.scroll-hint {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  justify-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 0 0 28px;
  color: rgba(212, 240, 235, 0.56);
  font-family:
    "Segoe UI Variable", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-hint-main {
  display: block;
  color: rgba(229, 255, 247, 0.74);
}

.scroll-hint-company {
  display: block;
  color: rgba(212, 240, 235, 0.42);
  font-size: 0.86rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact-email {
  display: block;
  margin-top: -2px;
  color: rgba(212, 240, 235, 0.6);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* ---------------------------------------------------------------------
   Responsive tuning
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .site-header,
  main {
    width: min(100% - 40px, 900px);
  }

  main {
    gap: 36px;
    padding-top: 24px;
  }

  h1 {
    max-width: 760px;
    font-size: 4.15rem;
    line-height: 1.18;
  }

  .visual-shell {
    max-width: 760px;
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 28px, 1160px);
    padding-top: 18px;
  }

  .studio-badge {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.68rem;
  }

  main,
  .scroll-hint {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.76rem;
    line-height: 1.2;
    text-decoration-thickness: 0.07em;
  }

  .lead {
    font-size: 1.02rem;
  }

  .keyword {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .visual-shell {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .visual-shell::before {
    inset: 12px;
    border-radius: 18px;
  }

  .orbit-labels {
    top: 18px;
    gap: 7px;
  }

  .orbit-label {
    padding: 8px 10px;
    font-size: 0.68rem;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 2.35rem;
    line-height: 1.22;
  }

  .lead {
    font-size: 0.96rem;
  }

  .keyword-row {
    gap: 8px;
  }

  .keyword {
    padding: 8px 10px;
    font-size: 0.74rem;
  }
}

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