/* Nysus consulting site (GitHub #77). Same look as the app's sign-in page:
   near-black ground, purple-to-cyan waveform, soft glows, frosted glass. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #05050f;
  --bg-raised: #0a0a1c;
  --glass: rgba(14, 14, 36, 0.66);
  --glass-strong: rgba(12, 12, 32, 0.82);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef0ff;
  --muted: #a5abc8;
  --faint: #6f7596;
  --purple: #8b5cf6;
  --violet: #7c4dff;
  --cyan: #22b8ff;
  --error: #ff7a90;
  --gradient: linear-gradient(90deg, #a77bff 0%, #6f7dff 45%, #22b8ff 100%);
  --radius: 18px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.muted { color: var(--muted); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus { top: 1rem; }

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(90deg, #7c4dff, #4f7bff 55%, #1fb5ff);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(79, 123, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn--ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover { border-color: rgba(34, 184, 255, 0.6); background: rgba(34, 184, 255, 0.08); }

/* Navigation */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav--scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 15, 0.78);
  backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand img {
  width: 56px;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.6));
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__phone { margin-left: auto; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 920px);
  padding-block: 8rem 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 50% 45% at 28% 55%, rgba(124, 77, 255, 0.3), transparent 70%),
    radial-gradient(ellipse 50% 45% at 74% 55%, rgba(34, 184, 255, 0.22), transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.hero__wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  filter: blur(0.4px) drop-shadow(0 0 6px rgba(124, 92, 255, 0.55));
}

.hero__content {
  text-align: center;
}

.hero__title {
  margin: 0 auto;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-shadow: 0 4px 40px rgba(5, 5, 15, 0.8);
}

.hero__title .gradient-text { text-shadow: none; filter: drop-shadow(0 0 30px rgba(110, 125, 255, 0.35)); }

.hero__lede {
  max-width: 44rem;
  margin: 1.6rem auto 0;
  color: #c9cde3;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-shadow: 0 2px 20px rgba(5, 5, 15, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__pills li {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 10, 28, 0.6);
  color: var(--muted);
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

/* Sections */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--band {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(124, 77, 255, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(34, 184, 255, 0.08), transparent 60%),
    var(--bg-raised);
}

.section__head {
  max-width: 46rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__head p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--glass);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient);
  content: "";
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(110, 125, 255, 0.12);
}

.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(34, 184, 255, 0.18));
  box-shadow: 0 0 24px rgba(124, 77, 255, 0.25);
  color: #d9ccff;
}

.card__icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.6rem;
  border-top: 2px solid transparent;
  border-image: var(--gradient) 1;
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.07), transparent 70%);
}

.step__num {
  display: block;
  margin-bottom: 0.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Two-column sections */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split h2 { margin-bottom: 1.1rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.checks {
  display: grid;
  gap: 0.8rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checks .icon { margin-top: 0.15em; color: var(--cyan); }

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124, 77, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(34, 184, 255, 0.12), transparent 70%),
    var(--glass);
}

.industries span {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.industries span:hover { border-color: rgba(34, 184, 255, 0.55); background: rgba(34, 184, 255, 0.08); }

/* Contact */

.contact { overflow: hidden; }

.contact__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 50% at 80% 50%, rgba(124, 77, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(34, 184, 255, 0.1), transparent 70%);
}

.split--contact { align-items: start; }

.contact__methods {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact__methods li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__methods .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
}

.contact__methods span { display: block; color: var(--faint); font-size: 0.82rem; }
.contact__methods a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.contact__methods address { font-style: normal; font-weight: 500; line-height: 1.45; }
.contact__methods a:hover { color: var(--cyan); }

.form-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 92, 255, 0.14), 0 0 80px rgba(124, 77, 255, 0.12);
}

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
.form__row--2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 0.4rem; }

.field > span {
  color: #cdd1ea;
  font-size: 0.88rem;
  font-weight: 500;
}

.field em { color: var(--faint); font-style: normal; font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea { min-height: 96px; resize: vertical; }

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5abc8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.8rem center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.field select:invalid { color: var(--faint); }
.field option { background: #12122a; color: var(--text); }
.field ::placeholder { color: var(--faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(34, 184, 255, 0.7);
  outline: none;
  background: rgba(34, 184, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(34, 184, 255, 0.14);
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--error); }

.field > .field__error { color: var(--error); font-size: 0.82rem; font-weight: 400; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent strong { display: block; margin-bottom: 0.2rem; color: var(--text); font-size: 0.88rem; font-weight: 600; }
.consent a { color: #b9a4ff; }

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--violet);
  cursor: pointer;
}

.cf-turnstile { min-height: 65px; }

.form__error {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 122, 144, 0.4);
  border-radius: 12px;
  background: rgba(255, 122, 144, 0.08);
  color: #ffc2cc;
  font-size: 0.9rem;
}

.form__fine { color: var(--faint); font-size: 0.78rem; text-align: center; }
.form__fine a { color: var(--muted); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-done {
  padding: 2.5rem 1rem;
  text-align: center;
}

.form-done:focus { outline: none; }

.form-done__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.35), rgba(34, 184, 255, 0.3));
  box-shadow: 0 0 40px rgba(110, 125, 255, 0.4);
}

.form-done__icon .icon { width: 36px; height: 36px; }
.form-done h3 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.form-done p { color: var(--muted); }
.form-done a { color: var(--cyan); }

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  background: #04040c;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.75rem 2rem;
}

.footer__brand p { margin-top: 0.6rem; color: var(--faint); font-size: 0.92rem; }
.footer__brand address { margin-top: 0.35rem; color: var(--faint); font-size: 0.85rem; font-style: normal; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.75rem;
}

.footer__links a { color: var(--muted); font-size: 0.93rem; text-decoration: none; }
.footer__links a:hover { color: var(--text); }

.footer__legal {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--faint);
  font-size: 0.85rem;
}

/* Legal pages */

.legal {
  padding-block: 8.5rem 5rem;
  background:
    radial-gradient(ellipse 50% 300px at 20% 0%, rgba(124, 77, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 300px at 80% 0%, rgba(34, 184, 255, 0.12), transparent 70%);
}

.legal__body {
  max-width: 50rem;
  margin-inline: auto;
}

.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal__updated { margin-top: 0.75rem; color: var(--faint); }

.legal__toc {
  margin: 2.5rem 0 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
}

.legal__toc ol { margin: 0.5rem 0 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }
.legal__toc li { margin-bottom: 0.3rem; color: var(--muted); }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--cyan); }
.legal__toc strong { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

.legal h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.legal h3 { margin: 1.75rem 0 0.6rem; font-size: 1.1rem; }

.legal p,
.legal li { color: #c3c7de; }

.legal p + p { margin-top: 1rem; }
.legal ul { margin: 0.75rem 0 1rem; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: #b9a4ff; }
.legal strong { color: var(--text); }

.legal__callout {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(34, 184, 255, 0.35);
  border-radius: 12px;
  background: rgba(34, 184, 255, 0.06);
}

.legal__caps { font-size: 0.92rem; text-transform: none; }

/* 404 */

.notfound {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem;
  text-align: center;
}

.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); }
.notfound p { margin: 1rem 0 2rem; color: var(--muted); }

/* Scroll-in reveal. Without JavaScript (no .js on <html>) everything shows. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
