:root {
  --bg: #05080e;
  --bg-soft: #0b111d;
  --panel: #111827;
  --panel-soft: #151e2d;
  --text: #f6f8fb;
  --muted: #aeb8c8;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #20d7f5;
  --cyan-strong: #5be9ff;
  --pink: #ec1b68;
  --green: #66e3b4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

main:not(.page-main) {
  padding-bottom: clamp(56px, 8vw, 96px);
}

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

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

.site-header {
  align-items: center;
  background: rgba(5, 8, 14, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 78px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  height: 44px;
  object-fit: contain;
  padding: 4px;
  width: 66px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan-strong);
  background: rgba(32, 215, 245, 0.1);
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.menu-button span {
  background: var(--text);
  display: block;
  height: 2px;
  margin: 6px 0;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 72px;
  position: relative;
}

.hero-home,
.hero-product {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.02), var(--bg)),
    linear-gradient(120deg, rgba(32, 215, 245, 0.12), transparent 42%, rgba(236, 27, 104, 0.08));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(91, 233, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(236, 27, 104, 0.12), transparent 28%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.particle-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero-content {
  max-width: min(920px, calc(100vw - 40px));
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.product-mark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  height: 92px;
  margin: 0 auto 22px;
  object-fit: contain;
  padding: 10px;
  width: 92px;
}

.hero-eloara::before {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.02), var(--bg)),
    linear-gradient(120deg, rgba(236, 27, 104, 0.14), transparent 40%, rgba(102, 227, 180, 0.09));
}

.eyebrow {
  color: var(--cyan-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 22px;
}

.hero-product h1 { font-size: clamp(3.4rem, 9vw, 7rem); }

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.hero-lead,
.page-hero p,
.split-section p,
.product-band p,
.showcase-copy p,
.dual-deploy p,
.text-panel p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 900;
  min-height: 48px;
  padding: 0 20px;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
  color: #041019;
  box-shadow: 0 14px 34px rgba(32, 215, 245, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px);
}

.split-section {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.feature-grid article,
.solution-card,
.text-panel,
.legal-content,
.dual-deploy,
.product-band {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.feature-grid article::before,
.solution-card::before,
.text-panel::before,
.legal-content::before,
.dual-deploy::before,
.product-band::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent 48%, rgba(91,233,255,0.16));
  content: "";
  height: 1px;
  left: 1px;
  position: absolute;
  right: 1px;
  top: 0;
}

.feature-grid article,
.solution-card {
  padding: 22px;
}

.feature-grid article,
.solution-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-grid article:hover,
.solution-card:hover {
  border-color: rgba(91, 233, 255, 0.34);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.44);
  transform: translateY(-3px);
}

.solution-card h2 {
  overflow-wrap: anywhere;
}

.feature-grid span,
.solution-card a {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid p,
.solution-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.product-band {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 1180px;
  overflow: hidden;
}

.phone-pair,
.hero-device-strip {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.phone-pair img,
.hero-device-strip img,
.screens-grid img {
  aspect-ratio: 9 / 19.5;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.42);
  object-fit: cover;
  width: min(30vw, 210px);
}

.phone-pair img:nth-child(2),
.hero-device-strip img:nth-child(2) {
  transform: translateY(36px);
}

.hero-device-strip {
  bottom: -96px;
  left: 50%;
  opacity: 0.3;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  z-index: 1;
}

.page-main {
  padding-top: 78px;
}

.page-main:not(.legal-page) {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.page-hero {
  margin: 0 auto;
  max-width: 980px;
  padding: 104px clamp(20px, 4vw, 48px) 40px;
  text-align: center;
}

.page-hero.compact {
  padding-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.cards-three {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-card.muted {
  opacity: 0.8;
}

.showcase-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.screens-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screens-grid img {
  width: 100%;
}

.admin-showcase {
  display: grid;
  gap: 34px;
}

.admin-showcase-copy {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}

.admin-showcase-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.admin-feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-feature-grid article {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.admin-feature-grid article:hover {
  border-color: rgba(91, 233, 255, 0.34);
  transform: translateY(-3px);
}

.admin-feature-grid img {
  aspect-ratio: 9 / 16;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.admin-feature-grid div {
  padding: 18px;
}

.admin-feature-grid span {
  color: var(--cyan-strong);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.admin-feature-grid h3 {
  font-size: 1rem;
  line-height: 1.38;
  margin-bottom: 0;
}

.dual-deploy {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}

.check-list {
  color: var(--muted);
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px 28px;
  position: relative;
}

.check-list li::before {
  color: var(--green);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.text-panel,
.legal-content {
  max-width: 920px;
  padding: clamp(24px, 4vw, 42px);
}

.text-panel,
.legal-content {
  margin-left: auto;
  margin-right: auto;
}

.legal-page {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.legal-content {
  width: min(920px, calc(100vw - 40px));
}

.legal-content h2 {
  font-size: 1.45rem;
  margin-top: 28px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px clamp(20px, 4vw, 56px);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .menu-button { display: block; }

  .main-nav {
    background: rgba(5, 8, 14, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 78px;
  }

  .main-nav.open { display: flex; }

  .split-section,
  .product-band,
  .showcase-grid,
  .dual-deploy,
  .cards-three {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .feature-grid.wide {
    grid-template-columns: 1fr;
  }

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

  .hero-device-strip {
    display: none;
  }

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

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

  .hero {
    min-height: 86vh;
    padding-top: 112px;
  }

  h1 { font-size: clamp(2.7rem, 14vw, 3.9rem); }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.62;
    max-width: calc(100vw - 48px);
  }

  .hero-product .hero-lead {
    max-width: min(300px, calc(100vw - 64px));
  }

  .hero-product h1 {
    font-size: clamp(2.55rem, 12vw, 3.35rem);
  }

  .product-mark {
    border-radius: 18px;
    height: 72px;
    width: 72px;
  }

  .hero-content,
  .hero-actions {
    max-width: calc(100vw - 48px);
  }

  .button {
    max-width: 100%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .phone-pair {
    gap: 10px;
  }

  .phone-pair img {
    width: 44vw;
  }

  .screens-grid {
    grid-template-columns: 1fr;
  }

  .admin-feature-grid {
    grid-template-columns: 1fr;
  }
}
