:root {
  --ink: #07111f;
  --ink-soft: #26364b;
  --muted: #5c6c80;
  --line: #dce8ee;
  --paper: #f7fbfd;
  --white: #ffffff;
  --cyan: #13bde2;
  --cyan-dark: #087fa5;
  --mint: #14b88b;
  --mint-soft: #dff9ef;
  --coral: #ff765f;
  --coral-soft: #fff0ec;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.16);
  --shadow-soft: 0 16px 45px rgba(7, 17, 31, 0.08);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.legal-page .site-header {
  background: rgba(7, 17, 31, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(7, 17, 31, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.hero {
  position: relative;
  min-height: min(780px, 88svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/luma-browser-hero.png");
  background-size: cover;
  background-position: center 44%;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.66) 36%, rgba(7, 17, 31, 0.08) 76%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.42) 0%, rgba(7, 17, 31, 0.05) 38%, rgba(7, 17, 31, 0.66) 100%);
}

.hero-content {
  padding: 160px 0 94px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 7.4rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.28rem;
  overflow-wrap: break-word;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  padding: 0 18px;
  color: inherit;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 850;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 14px 34px rgba(19, 189, 226, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(20, 184, 139, 0.34);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.signal-strip {
  background: #07111f;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.signal-grid div {
  min-height: 112px;
  padding: 24px;
  background: #07111f;
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 7px;
}

.signal-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.section {
  padding: 96px 0;
}

.section-light {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.download-panel h2,
.legal-hero h1,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.65rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.download-panel p,
.contact-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

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

.feature-card {
  min-height: 286px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(19, 189, 226, 0.35);
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--cyan-dark);
  background: #e8f9fd;
  border-radius: 8px;
}

.icon-badge svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-cyan {
  color: var(--cyan-dark);
  background: #e6f9ff;
}

.icon-mint {
  color: #0f8a69;
  background: var(--mint-soft);
}

.icon-coral {
  color: #d14e3d;
  background: var(--coral-soft);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.26rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.privacy-band {
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(8, 17, 31, 0.97), rgba(10, 44, 52, 0.95)),
    #08111f;
}

.privacy-band .section-heading h2,
.privacy-band .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.privacy-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 70px;
}

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

.privacy-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.step {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.privacy-item h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.privacy-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.download-band {
  background:
    linear-gradient(180deg, #f5fbfc 0%, #eaf7f8 100%);
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.download-panel > div {
  max-width: 720px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #07111f;
  padding: 62px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
}

.footer-brand p {
  max-width: 340px;
  margin: 18px 0 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1rem;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-links a,
.social-links span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.social-links a:hover {
  background: rgba(19, 189, 226, 0.3);
  transform: translateY(-2px);
}

.social-links svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
}

.legal-page {
  background: #f4fafb;
}

.legal-hero {
  padding: 150px 0 72px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 17, 31, 0.96), rgba(9, 59, 70, 0.9)),
    #07111f;
}

.legal-hero h1 {
  color: var(--white);
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 26px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-content {
  padding: 58px 0 88px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.legal-aside a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 750;
}

.legal-aside a:hover {
  color: var(--ink);
  background: #edf8fa;
}

.legal-card {
  padding: 42px;
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1.2;
}

.legal-card h3 {
  margin: 22px 0 8px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card p {
  margin: 0;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 10px;
}

.legal-card a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.contact-panel {
  padding: 64px 0;
  background: #eaf7f8;
}

.contact-panel .container {
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact-panel p {
  max-width: 620px;
}

.contact-panel .button {
  margin-top: 26px;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(7, 17, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

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

  .site-nav a {
    justify-content: flex-start;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: 86svh;
  }

  .hero h1 {
    font-size: 5.35rem;
  }

  .hero-copy {
    font-size: 1.14rem;
  }

  .section-heading h2,
  .download-panel h2,
  .legal-hero h1,
  .contact-panel h2 {
    font-size: 2.8rem;
  }

  .hero-media {
    background-position: 58% 48%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.73) 48%, rgba(7, 17, 31, 0.22) 100%),
      linear-gradient(180deg, rgba(7, 17, 31, 0.44) 0%, rgba(7, 17, 31, 0.68) 100%);
  }

  .signal-grid,
  .feature-grid,
  .privacy-layout,
  .footer-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .signal-grid div {
    min-height: auto;
  }

  .privacy-layout {
    gap: 34px;
  }

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

  .legal-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: auto;
    margin-left: 14px;
    margin-right: 14px;
  }

  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
    left: 14px;
    right: 14px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-media {
    background-position: 63% 52%;
  }

  .hero-content {
    padding: 116px 0 64px;
  }

  .hero h1 {
    font-size: 3.05rem;
    line-height: 0.96;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .section-heading h2,
  .download-panel h2,
  .legal-hero h1,
  .contact-panel h2 {
    font-size: 2.25rem;
  }

  .legal-card h2 {
    font-size: 1.42rem;
  }

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

  .section {
    padding: 70px 0;
  }

  .feature-card {
    min-height: auto;
    padding: 22px;
  }

  .privacy-item {
    grid-template-columns: 1fr;
  }

  .download-panel,
  .legal-card {
    padding: 26px;
  }

  .legal-hero {
    padding: 124px 0 58px;
  }

  .legal-aside {
    grid-template-columns: 1fr;
  }

  .contact-panel .button span {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
