:root {
  color-scheme: light;
  --ink: #15121b;
  --muted: #6e6878;
  --line: #e6e1ee;
  --brand-bg: #100626;
  --brand-bg-2: #1a0d38;
  --brand-purple: #a92dff;
  --brand-blue: #4165ff;
  --brand-cyan: #64d8ff;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8f4ff;
  background: var(--brand-bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 20%, rgba(169, 45, 255, 0.28), transparent 24rem),
    radial-gradient(circle at 78% 12%, rgba(65, 101, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, var(--brand-bg) 0%, var(--brand-bg-2) 52%, #071226 100%);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(91, 68, 255, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: rgba(248, 244, 255, 0.78);
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(248, 244, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.footer-links a:hover {
  color: #ffffff;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active,
.nav a[aria-current="page"] {
  border-color: rgba(100, 216, 255, 0.56);
  color: #ffffff;
  background: rgba(100, 216, 255, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 52px;
  align-items: center;
  padding: 74px 0 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-cyan);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(248, 244, 255, 0.78);
  font-size: 20px;
}

.hero-logo {
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.value-band {
  padding: 44px 0 70px;
}

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

.value-card {
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.value-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.22;
}

.value-card p,
.device-section p,
.section-heading p,
.product-panel p,
.assurance-list p {
  margin: 0;
  color: rgba(248, 244, 255, 0.72);
}

.product-section {
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2,
.assurance-section h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.product-panel {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.product-panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 19px;
  line-height: 1.24;
}

.device-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 58px 0 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.device-section h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.device-list {
  display: grid;
  gap: 12px;
}

.device-list span {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 244, 255, 0.82);
}

.assurance-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 66px 0 88px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.assurance-list {
  display: grid;
  gap: 16px;
}

.assurance-list p {
  padding: 18px 20px;
  border-left: 3px solid var(--brand-cyan);
  background: rgba(255, 255, 255, 0.055);
}

.assurance-list strong {
  color: #fff;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(248, 244, 255, 0.62);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(248, 244, 255, 0.75);
  text-decoration: none;
}

.legal-page {
  color: var(--ink);
  background: var(--paper);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.legal-header .brand {
  color: var(--ink);
}

.legal-header .brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #494251;
  font-size: 14px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #494251;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a.is-active,
.legal-nav a[aria-current="page"] {
  border-color: rgba(65, 101, 255, 0.38);
  color: var(--brand-blue);
  background: rgba(65, 101, 255, 0.08);
}

.legal-content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.legal-content h1 {
  max-width: none;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

.legal-content h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.legal-content p {
  margin: 14px 0;
  color: #302a38;
  font-size: 16px;
}

.legal-content strong {
  color: #18131f;
}

.contact-content {
  max-width: 760px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-form label {
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 180px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(65, 101, 255, 0.12);
}

.contact-form button {
  width: fit-content;
  min-width: 132px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: #18131f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #177245;
}

.toast.error {
  background: #a12828;
}

@media (max-width: 980px) {
  .hero,
  .device-section,
  .assurance-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 44px;
    padding-top: 44px;
  }

  .hero-logo {
    width: min(72vw, 330px);
    justify-self: center;
  }

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

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

@media (max-width: 680px) {
  .container,
  .legal-content {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .legal-header .container,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .legal-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a,
  .legal-nav a {
    max-width: 100%;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-logo {
    order: -1;
    width: min(48vw, 180px);
    justify-self: start;
  }

  .value-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .product-panel {
    min-height: auto;
  }

  .legal-content {
    padding-top: 40px;
  }

  .legal-content h1 {
    font-size: 34px;
  }

  .contact-form button {
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}
