/* Ops Admin landing. No third-party fonts or assets: system font stack, one stylesheet, no inline styles (strict CSP). */

:root {
  --blue: #00a8e8;
  --green: #00e8a8;
  --purple: #b567e6;

  --bg: #0f172a;
  --card: #1e293b;
  --section-alt: #172033;
  --text: #f8fafc;
  --muted: #94a3b8;
  --body: #cbd5e1;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #00a8e8;      /* text/link accent: must keep contrast on --bg */
  --accent-2: #00e8a8;
  --field-bg: rgba(0, 0, 0, 0.3);
  --field-line: rgba(255, 255, 255, 0.18);
  --on-gradient: #04202e; /* dark text on the blue-green gradient: white fails contrast there */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --error: #ff8a8a;
  --ok-bg: rgba(0, 232, 168, 0.12);
  --err-bg: rgba(255, 90, 90, 0.12);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --section-alt: #eef2f7;
  --text: #0f172a;
  --muted: #475569;
  --body: #334155;
  --line: rgba(15, 23, 42, 0.12);
  --accent: #0369a1;
  --accent-2: #047857;
  --field-bg: #ffffff;
  --field-line: rgba(15, 23, 42, 0.3);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --error: #b42318;
  --ok-bg: rgba(4, 120, 87, 0.1);
  --err-bg: rgba(180, 35, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img, video, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--on-gradient);
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ header (stays dark in both themes: the logo is white) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(0, 168, 232, 0.5));
}

.brand-word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-word span { color: #00c9a7; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:not(.nav-cta) {
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.site-nav a:not(.nav-cta):hover { color: #00a8e8; }

.nav-cta {
  margin-left: 10px;
  padding: 9px 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: var(--on-gradient);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-cta:hover { color: var(--on-gradient); box-shadow: 0 4px 12px rgba(0, 168, 232, 0.45); }

.theme-toggle {
  margin-left: 8px;
  min-width: 40px;
  height: 36px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 1.05rem;
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.22); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f8fafc;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ hero with animated background (inlined, was an iframe) */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #020d0a 0%, #071a12 40%, #041510 70%, #020c1b 100%);
  color: #fff;
  padding: 72px 0 56px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: #00e5a0; top: -200px; left: 10%; }
.orb-2 { width: 500px; height: 500px; background: #00e5a0; top: 30%; left: 45%; opacity: 0.1; }
.orb-3 { width: 700px; height: 700px; background: #7c3aed; top: -300px; right: 5%; opacity: 0.12; }
.orb-4 { width: 400px; height: 400px; background: #00c9a7; bottom: -200px; right: 20%; opacity: 0.14; }

@keyframes orb-float {
  from { transform: scale(0.8) translate(0, 0); }
  to { transform: scale(1.2) translate(150px, -60px); }
}

.hex-grid {
  position: absolute;
  inset: -50px;
  background-image:
    repeating-linear-gradient(60deg, rgba(0, 201, 167, 0.05) 0, rgba(0, 201, 167, 0.05) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(120deg, rgba(0, 201, 167, 0.05) 0, rgba(0, 201, 167, 0.05) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(0, 201, 167, 0.05) 0, rgba(0, 201, 167, 0.05) 1px, transparent 1px, transparent 60px);
  animation: hex-drift 12s ease-in-out infinite alternate;
}

@keyframes hex-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(100px, 80px); }
}

.streams { position: absolute; inset: 0; width: 100%; height: 100%; }
.streams line { animation: stream-pulse 3s ease-in-out infinite alternate; }

@keyframes stream-pulse {
  from { opacity: 0.1; }
  to { opacity: 1; }
}

.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00e5a0 20%, #00c9a7 55%, #00a8e8 80%, transparent);
  opacity: 0.6;
}

.hero-inner { position: relative; text-align: center; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00e5a0;
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 14px;
}
.hero h1 span { color: #00c9a7; }

.hero-tagline {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.pill {
  padding: 7px 16px;
  border-radius: 30px;
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.28);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: #00c9a7;
}
.pill-green { background: rgba(0, 229, 160, 0.08); border-color: rgba(0, 229, 160, 0.26); }
.pill-green::before { background: #00e5a0; }
.pill-purple { background: rgba(124, 58, 237, 0.14); border-color: rgba(167, 139, 250, 0.35); }
.pill-purple::before { background: #a78bfa; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.core-caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.core-caps li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.core-caps strong { display: block; color: #00e5a0; font-size: 0.9rem; margin-bottom: 4px; }
.core-caps span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 0;
  border-radius: 28px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--green)); color: var(--on-gradient); }
.btn-primary:hover { color: var(--on-gradient); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 168, 232, 0.45); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); padding: 11px 26px; }
.btn-ghost:hover { color: #fff; border-color: #00e5a0; }
.btn-block { width: 100%; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ------------------------------------------------------------ sections */
.section { padding: 72px 0; }
.section-alt { background: var(--section-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); color: var(--text); }
.subhead { font-size: 1.15rem; font-weight: 600; color: var(--accent-2); letter-spacing: 0.02em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.group-title { margin: 44px 0 20px; font-size: 1.15rem; color: var(--accent); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h4 { font-size: 1.3rem; color: var(--text); }
.card p { color: var(--muted); font-size: 0.97rem; }
.list-intro { font-weight: 600; color: var(--text) !important; margin-top: 18px; }

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--body);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-2);
}
.check-list.two-col { columns: 2 220px; column-gap: 28px; }
.check-list.two-col li { break-inside: avoid; }

.module-panel {
  margin-top: 36px;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.module-col h3 {
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  border-bottom: 1px solid var(--line);
}

.cta-line { margin: 36px 0 0; color: var(--muted); }

.why-item { margin-bottom: 26px; }
.why-item h3 { font-size: 1.1rem; color: var(--accent); }
.why-item p { color: var(--muted); }
.why-grid h2 { margin-bottom: 24px; }

/* ------------------------------------------------------------ video */
.video-frame {
  position: relative;
  margin-top: 28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 168, 232, 0.35);
}
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ------------------------------------------------------------ contact + form */
.contact { background: var(--section-alt); border-top: 1px solid var(--line); }
.contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.contact-sub { color: var(--accent-2); font-weight: 600; }
.contact-list li { margin-bottom: 12px; font-size: 1.05rem; }
.contact-label {
  display: inline-block;
  min-width: 84px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.demo-form > h2,
.demo-form > .form-intro,
.demo-form > .form-status,
.field-wide { grid-column: 1 / -1; }
.demo-form > h2 { margin-bottom: 0; }
.form-intro { margin: 0; color: var(--muted); }

.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { border-color: var(--accent-2); outline-offset: 0; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 6px 0 0; font-size: 0.85rem; color: var(--error); }

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

.form-status {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
}
.form-status.is-ok { background: var(--ok-bg); border-color: var(--accent-2); color: var(--text); }
.form-status.is-error { background: var(--err-bg); border-color: var(--error); color: var(--text); }
.noscript-note { margin: 0; color: var(--muted); }

[hidden] { display: none !important; }

/* ------------------------------------------------------------ footer */
.site-footer {
  padding: 36px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  background: #020617;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 22px;
    background: rgba(15, 23, 42, 0.99);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.nav-cta) { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-cta { margin: 12px 0 0; padding: 12px 20px; text-align: center; border-radius: 10px; }
  .theme-toggle { margin: 12px 0 0; width: 100%; }

  .hero { padding: 48px 0 40px; }
  .section { padding: 52px 0; }
  .card { padding: 22px; }
  .module-panel { padding: 24px 20px; }
  .demo-form { grid-template-columns: 1fr; padding: 22px 18px; }
  .brand-logo { height: 44px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .brand-word { font-size: 1.15rem; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .check-list.two-col { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .hex-grid, .streams line { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-toggle span { transition: none; }
}
