:root {
  --bg: #080b12;
  --bg-2: #0d1320;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --surface: #101827;
  --surface-2: #121c2e;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #a9b4c7;
  --muted-2: #7d8aa1;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --accent-3: #a78bfa;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 31rem),
    radial-gradient(circle at 95% 10%, rgba(167, 139, 250, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.045em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.35rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.55rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.025em; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 850px; }
.section { padding: 78px 0; }
.compact-section { padding: 34px 0 10px; }
.section-muted { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04), transparent); }
.section-dark { background: rgba(0,0,0,0.18); border-block: 1px solid var(--line-soft); }
.center { text-align: center; margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  transition: 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(8, 11, 18, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -0.035em; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(255,255,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.brand-text { font-size: 1.08rem; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(255,255,255,0.07); }
.site-nav .nav-cta {
  color: #061018;
  background: var(--text);
  margin-left: 6px;
  box-shadow: 0 12px 40px rgba(255,255,255,0.12);
}
.site-nav .nav-cta:hover { background: #dff6ff; color: #061018; }
.nav-toggle { display: none; }

.hero-section { padding: 46px 0 58px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.72fr); gap: 46px; align-items: center; }
.hero-copy .lead { font-size: clamp(1.03rem, 1.55vw, 1.2rem); max-width: 690px; margin-top: 20px; color: #cbd5e1; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7f3ff;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow svg, .section-kicker svg, .btn svg, .text-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  font-family: inherit;
  font-size: 0.98rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #f8fafc, #bdefff); color: #061018; box-shadow: 0 22px 60px rgba(56,189,248,0.2); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--line); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.04); }
.btn-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #c7f3ff; font-weight: 850; margin-top: 22px; }
.text-link:hover { color: var(--text); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.trust-row svg { width: 17px; height: 17px; stroke: var(--accent-2); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; min-height: 570px; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.75; }
.orb-one { width: 210px; height: 210px; top: 10px; right: 26px; background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 68%); }
.orb-two { width: 260px; height: 260px; bottom: 10px; left: 0; background: radial-gradient(circle, rgba(167,139,250,0.28), transparent 68%); }
.system-card {
  position: relative;
  margin: 28px auto 0;
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 24px;
}
.system-topline { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 24px; }
.system-topline strong { color: var(--text); }
.system-node {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.14);
  border-radius: 20px;
  margin-top: 12px;
}
.system-node > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: rgba(255,255,255,0.07);
  color: #dff6ff;
  font-weight: 900;
}
.system-node.active { border-color: rgba(56,189,248,0.38); background: rgba(56,189,248,0.1); }
.system-node strong { display: block; }
.system-node small { display: block; color: var(--muted); margin-top: 2px; }
.floating-card {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.floating-card strong { display: block; font-size: 1.35rem; letter-spacing: -0.04em; }
.floating-card span { color: var(--muted); font-size: 0.87rem; }
.floating-one { left: -6px; top: 76px; }
.floating-two { right: -4px; bottom: 78px; }

.intro-panel, .two-column-card, .cta-card {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.intro-panel p, .two-column-card p, .cta-card p { font-size: 1.07rem; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { margin-top: 18px; font-size: 1.08rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card, .wide-product, .about-main, .profile-card, .lead-card, .value-card, .contact-card, .stat-card, .empty-state, .prose {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.product-card { position: relative; min-height: 390px; padding: 26px; display: flex; flex-direction: column; }
.product-card.featured-product { background: linear-gradient(160deg, rgba(56,189,248,0.16), rgba(255,255,255,0.04)); border-color: rgba(56,189,248,0.28); }
.product-status {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.78rem;
  font-weight: 850;
  color: #dff6ff;
  border: 1px solid rgba(56,189,248,0.24);
  background: rgba(56,189,248,0.1);
  border-radius: 999px;
  padding: 6px 10px;
}
.product-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); margin-bottom: 42px; }
.product-icon.large { width: 74px; height: 74px; margin: 0; border-radius: 24px; }
.product-icon svg { width: 27px; height: 27px; stroke: #dff6ff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.product-tagline { color: var(--text); font-weight: 800; margin-bottom: 12px; }
.product-card > p:not(.product-tagline) { flex: 1; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta-pills span { color: #dbeafe; background: rgba(255,255,255,0.06); border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 10px; font-size: 0.82rem; font-weight: 750; }
.meta-pills.vertical { flex-direction: column; align-items: flex-start; }

.split-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 72px; align-items: start; }
.principle-list { display: grid; gap: 14px; }
.principle-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.045);
  border-radius: var(--radius-md);
}
.principle-list span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(56,189,248,0.1); color: #dff6ff; }
.principle-list svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.principle-list p { margin-top: 7px; }

.architecture { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.035); }
.brand-map { margin-top: 34px; display: grid; justify-items: center; }
.map-root {
  width: min(100%, 420px);
  text-align: center;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.09);
}
.map-root span { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.055em; }
.map-root small, .map-children small { color: var(--muted); display: block; }
.map-line { width: 1px; height: 42px; background: var(--line); }
.map-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.map-children a { text-align: center; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,0.05); }
.map-children a:hover { border-color: rgba(56,189,248,0.35); transform: translateY(-2px); }

.cta-section { padding-top: 30px; }
.cta-card { grid-template-columns: 1fr auto; }

.subhero { padding: 86px 0 52px; }
.subhero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.subhero p { margin-top: 24px; font-size: 1.18rem; }
.product-list { display: grid; gap: 18px; }
.wide-product { display: grid; grid-template-columns: 170px 1fr auto; gap: 28px; align-items: center; padding: 26px; }
.wide-product-media { display: grid; gap: 18px; justify-items: start; }
.wide-product-media span { border: 1px solid var(--line); background: rgba(255,255,255,0.06); border-radius: 999px; padding: 7px 10px; color: #dff6ff; font-weight: 850; font-size: 0.82rem; }
.wide-product-copy h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.wide-product-copy p { margin-top: 12px; }

.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: stretch; }
.about-main { padding: 36px; }
.about-main p { margin-top: 18px; font-size: 1.07rem; }
.profile-card { padding: 28px; }
.profile-mark { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(167,139,250,0.12)); border: 1px solid var(--line); font-weight: 950; font-size: 2rem; margin-bottom: 24px; }
.profile-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values-grid article { padding: 26px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); border-radius: var(--radius-lg); }
.values-grid p { margin-top: 12px; }

.contact-layout { display: grid; grid-template-columns: 0.82fr 1fr; gap: 54px; align-items: start; }
.contact-direct { display: grid; gap: 8px; margin-top: 34px; color: var(--muted); }
.contact-direct a { color: var(--text); font-weight: 850; font-size: 1.1rem; }
.contact-card { padding: 28px; }
.contact-form { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 800; }
input, select, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 50px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
textarea { resize: vertical; min-height: 150px; }
input:focus, select:focus, textarea:focus { border-color: rgba(56,189,248,0.6); box-shadow: 0 0 0 4px rgba(56,189,248,0.12); }
select option { color: #0f172a; }
.checkbox-row { grid-template-columns: 20px 1fr; align-items: start; gap: 12px; color: var(--muted); font-weight: 650; }
.checkbox-row input { min-height: auto; margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-success, .form-error { border-radius: 18px; padding: 16px; margin-bottom: 20px; }
.form-success { border: 1px solid rgba(52,211,153,0.35); background: rgba(52,211,153,0.1); }
.form-error { border: 1px solid rgba(251,113,133,0.35); background: rgba(251,113,133,0.1); }
.form-success p, .form-error p { margin-top: 4px; }

.prose { padding: 34px; }
.prose h2 { font-size: 1.45rem; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: #c7f3ff; text-decoration: underline; text-underline-offset: 3px; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.stat-card { padding: 16px; }
.stat-card span { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -0.05em; }
.stat-card.is-active { border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.08); }
.lead-list { display: grid; gap: 14px; }
.lead-card { padding: 22px; }
.lead-head { display: flex; justify-content: space-between; gap: 18px; }
.lead-head h2 { font-size: 1.35rem; }
.lead-head span { height: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: #dff6ff; font-size: 0.8rem; font-weight: 850; }
.lead-message { margin-top: 16px; color: #d6deea; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lead-meta span { color: var(--muted); background: rgba(255,255,255,0.05); border-radius: 999px; padding: 6px 9px; font-size: 0.8rem; }
.empty-state { padding: 40px; text-align: center; }
.empty-state p { margin-top: 10px; }

.site-footer { padding: 64px 0 44px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,0.18); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 34px; }
.footer-brand { margin-bottom: 16px; }
.site-footer h2 { font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; color: #dff6ff; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: block; color: var(--muted); margin-top: 8px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { max-width: 340px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 580ms ease, transform 580ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* Homepage tightening: less vague, less oversized, more focused on curiosity and conversion */
.page-home .site-header + main .hero-section { min-height: auto; }
.page-home .hero-copy { max-width: 760px; }
.page-home .hero-copy h1 { max-width: 840px; }
.page-home .hero-visual { max-width: 470px; justify-self: end; }
.page-home .main-system { padding: 22px; }
.page-home .system-topline { margin-bottom: 18px; }
.page-home .system-node { padding: 15px; margin-top: 10px; }
.page-home .system-node small { max-width: 310px; line-height: 1.35; }
.page-home .trust-row { margin-top: 22px; }
.page-home .intro-panel h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.page-home .intro-panel p { color: #cbd5e1; }

@media (max-width: 980px) {
  h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-grid, .split-grid, .intro-panel, .cta-card, .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .product-grid, .values-grid, .map-children { grid-template-columns: 1fr; }
  .wide-product { grid-template-columns: 1fr; }
  .wide-product-action { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 70px 0; }
  .site-header { padding: 12px 0; }
  .nav-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,0.06);
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 999px; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 11, 18, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 14px 16px; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .hero-section { padding-top: 44px; }
  .floating-card { display: none; }
  .system-card { margin-top: 0; }
  .field-grid, .admin-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-card, .intro-panel, .cta-card, .architecture, .about-main, .profile-card, .contact-card, .prose { border-radius: 24px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.lead-warning {
  margin-top: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lead-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-small {
  min-height: auto;
  padding: 9px 13px;
  font-size: 0.88rem;
}
