:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --navy: #1e3a8a;
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.18);
  --text: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(30, 41, 59, 0.62);
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  --radius: 18px;
  --header-h: 200px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", sans-serif;
  --display: "Outfit", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(30, 58, 138, 0.45), transparent 60%),
    radial-gradient(900px 420px at -10% 20%, rgba(2, 132, 199, 0.18), transparent 55%),
    var(--bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.header.is-scrolled {
  background: rgba(15, 23, 42, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  height: 100%;
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 160px;
  width: auto;
  max-height: 160px;
  max-width: min(340px, 30vw);
  object-fit: contain;
  object-position: left center;
  object-view-box: inset(13.9% 11.8% 15.1% 11.7%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.05rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--navy);
  color: var(--text);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-divider {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s 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);
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.lead {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #1d4ed8, var(--navy));
  color: var(--text);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2563eb, #1e40af);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(125, 211, 252, 0.55);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.hero-metrics strong {
  display: block;
  color: var(--text);
}

.hero-metrics span {
  display: block;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.hero-panel {
  padding: 1.4rem 1.4rem 0.6rem;
  border-radius: var(--radius);
}

.panel-kicker {
  margin: 0 0 0.4rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel h2 {
  font-size: 1.45rem;
}

.hero-panel ol {
  margin: 1.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.hero-panel li span {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
}

.hero-panel strong {
  display: block;
}

.hero-panel p {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.35), rgba(15, 23, 42, 0));
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.principle-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
}

.principle-list p {
  margin: 0;
}

.card-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.demo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.demo-card {
  padding: 1.3rem;
  border-radius: var(--radius);
}

.card-index,
.demo-status {
  display: inline-block;
  margin: 0 0 0.7rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.card li + li {
  margin-top: 0.3rem;
}

.demo-visual {
  height: 92px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.16), rgba(30, 58, 138, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.wave {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(125, 211, 252, 0.7);
  border-radius: 50%;
  margin-bottom: 18px;
}

.wave:nth-child(2) { width: 68px; height: 68px; opacity: 0.7; }
.wave:nth-child(3) { width: 90px; height: 90px; opacity: 0.4; margin-bottom: 0; }

.demo-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  align-items: stretch;
}

.demo-visual-grid span {
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.demo-visual-bars {
  align-items: flex-end;
  padding: 14px 18px;
}

.demo-visual-bars span {
  width: 14px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, var(--navy));
}

.demo-visual-bars span:nth-child(1) { height: 28%; }
.demo-visual-bars span:nth-child(2) { height: 62%; }
.demo-visual-bars span:nth-child(3) { height: 44%; }
.demo-visual-bars span:nth-child(4) { height: 78%; }
.demo-visual-bars span:nth-child(5) { height: 36%; }

.demo-visual-orbit {
  align-items: center;
}

.orbit {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed rgba(125, 211, 252, 0.7);
}

.core {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7dd3fc;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-meta {
  margin-top: 1.4rem;
  font-style: normal;
}

.contact-meta p {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}

.contact-meta span {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem;
  border-radius: var(--radius);
}

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

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(2, 132, 199, 0.7);
  outline-offset: 1px;
  border-color: transparent;
}

select option {
  color: #0f172a;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #f87171;
}

.field-error {
  margin: 0;
  color: #fecaca;
  font-size: 0.82rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: #bae6fd;
  font-weight: 500;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer a {
  color: #7dd3fc;
  font-weight: 600;
}

@media (max-width: 900px) {
  :root {
    --header-h: 95px;
  }

  .brand-logo {
    height: 65px;
    max-height: 65px;
    max-width: min(190px, 48vw);
  }

  .hero-grid,
  .split,
  .contact-layout,
  .card-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-h) - 8px);
    right: 1.2rem;
    left: 1.2rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 30;
    padding: 0.6rem;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .header {
    transition: none;
  }
}
