:root {
  --bg: #07111d;
  --bg-soft: #0d1726;
  --panel: rgba(18, 29, 45, 0.92);
  --panel-strong: rgba(22, 36, 56, 0.98);
  --line: rgba(173, 194, 222, 0.14);
  --text: #f5f8ff;
  --muted: #a9b7cf;
  --blue: #4f8cff;
  --blue-soft: #7eb2ff;
  --teal: #82dadc;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  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;
  background:
    radial-gradient(circle at top left, rgba(78, 140, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(130, 218, 220, 0.12), transparent 24%),
    linear-gradient(180deg, #07111d 0%, #0a1523 42%, #07111d 100%);
  color: var(--text);
}

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

.site-shell,
.legal-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.brand img {
  display: block;
  width: 220px;
  max-width: 100%;
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  min-height: 72vh;
  margin-bottom: 72px;
}

.hero-premium {
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(42px, 8vw, 76px);
  max-width: 11ch;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-text,
.section-heading p:last-child,
.card p,
.link-card p,
.legal-page p,
.legal-page li,
.faq-item p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #68a0ff 100%);
  color: white;
  box-shadow: 0 16px 36px rgba(79, 140, 255, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.hero-card,
.card,
.link-card,
.legal-page section,
.faq-item,
.footer,
.not-found,
.section-highlight,
.section-compact {
  background: linear-gradient(180deg, rgba(18, 29, 45, 0.96), rgba(12, 21, 34, 0.96));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 60px var(--shadow);
}

.hero-card {
  padding: 22px;
}

.hero-showcase {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(130, 218, 220, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(18, 29, 45, 0.96), rgba(8, 16, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hero-phone {
  position: absolute;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: #0c1523;
}

.hero-phone img,
.gallery-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone-main {
  top: 56px;
  left: 40px;
  width: 280px;
  transform: rotate(-7deg);
}

.hero-phone-secondary {
  top: 84px;
  right: 24px;
  width: 240px;
  transform: rotate(8deg);
}

.hero-phone-tertiary {
  bottom: 18px;
  left: 162px;
  width: 240px;
  transform: rotate(4deg);
}

.device-frame {
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(130, 218, 220, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(20, 34, 54, 0.98), rgba(11, 18, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card-large {
  margin-bottom: 14px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-label,
.metric-subtitle {
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section {
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-stats {
  margin-top: -8px;
}

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

.stat-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 29, 45, 0.94), rgba(12, 21, 34, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.stat-label,
.gallery-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-grid-main {
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 18px;
}

.gallery-grid-secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 29, 45, 0.96), rgba(12, 21, 34, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.24);
}

.gallery-card-wide {
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: none;
  align-items: center;
  gap: 24px;
}

.gallery-copy h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.gallery-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-shot {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1523;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.gallery-card-wide .gallery-shot {
  height: 760px;
}

.gallery-grid-secondary .gallery-shot,
.gallery-grid-main .gallery-card:not(.gallery-card-wide) .gallery-shot {
  height: 560px;
}

.card,
.link-card,
.section-highlight,
.section-compact,
.legal-page section {
  padding: 24px;
}

.card p,
.link-card p {
  margin: 12px 0 0;
}

.link-card {
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 178, 255, 0.34);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 24px;
  margin-top: 44px;
}

.footer strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.legal-page {
  padding: 10px 0 0;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(38px, 6vw, 58px);
  margin-bottom: 18px;
}

.legal-page section {
  margin-top: 18px;
}

.legal-page h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  font-size: 18px;
}

.faq-item p {
  margin: 10px 0 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.footer-legal .copyright {
  width: 100%;
}

.not-found {
  text-align: center;
  padding: 64px 28px;
  margin-top: 12vh;
}

.not-found-logo {
  width: min(280px, 70vw);
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .hero,
  .feature-grid,
  .link-grid,
  .footer,
  .stats-grid,
  .gallery-grid-main,
  .gallery-grid-secondary {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .hero-showcase {
    min-height: 860px;
  }

  .hero-phone-main {
    top: 40px;
    left: 18px;
  }

  .hero-phone-secondary {
    top: 92px;
    right: 18px;
  }

  .hero-phone-tertiary {
    bottom: 22px;
    left: 96px;
  }

  .gallery-card-wide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .legal-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 18px;
  }

  .brand img {
    width: 180px;
  }

  h1 {
    max-width: none;
  }

  .hero {
    min-height: auto;
    margin-bottom: 56px;
  }

  .hero-card,
  .card,
  .link-card,
  .section-highlight,
  .section-compact,
  .legal-page section,
  .footer,
  .not-found {
    border-radius: 22px;
  }

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

  .hero-showcase {
    min-height: 780px;
  }

  .hero-phone-main {
    width: 220px;
    top: 32px;
    left: 10px;
  }

  .hero-phone-secondary {
    width: 180px;
    top: 92px;
    right: 12px;
  }

  .hero-phone-tertiary {
    width: 180px;
    bottom: 18px;
    left: 110px;
  }

  .gallery-card,
  .gallery-card-wide {
    padding: 18px;
  }

  .gallery-copy h3 {
    font-size: 24px;
  }
}
