:root {
  --color-ink: #0f172a;
  --color-muted: #64748b;
  --color-primary: #1d324f;
  --color-primary-strong: #102040;
  --color-accent: #2563eb;
  --color-warm: #d97706;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-surface-alt: #eef4fa;
  --color-line: #d8e2ee;
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.14);
  --shadow-tight: 0 10px 26px rgba(15, 23, 42, 0.1);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 229, 225, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: var(--shadow-tight);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  border-radius: 8px;
  padding: 8px 11px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary-strong);
  background: var(--color-surface-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 76vh, 680px);
  background: var(--color-surface-alt);
}

.hero-product {
  position: absolute;
  inset: 36px max(20px, calc((100vw - var(--container)) / 2)) 24px auto;
  width: min(33vw, 300px);
  min-width: 220px;
  opacity: 0.94;
}

.hero-product img {
  height: 100%;
  max-height: 610px;
  width: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 92px 0 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  font-size: clamp(36px, 6vw, 68px);
}

.hero-lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--color-primary-strong);
  box-shadow: 0 12px 26px rgba(16, 32, 64, 0.22);
}

.button.secondary {
  border-color: var(--color-line);
  background: #ffffff;
  color: var(--color-primary);
}

.button.secondary:hover {
  background: var(--color-surface-soft);
  box-shadow: none;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-primary-strong);
  font-weight: 800;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--color-surface-soft);
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-header p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

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

.feature-card,
.learning-card {
  min-height: 210px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.feature-card h3,
.learning-card h3 {
  font-size: 20px;
}

.feature-card p,
.learning-card p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.course-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-list li {
  border: 1px solid var(--color-line);
  border-left: 5px solid var(--color-warm);
  border-radius: 8px;
  padding: 18px 18px 18px 16px;
  background: #ffffff;
  font-weight: 800;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 16px;
}

.screenshot {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-tight);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.screenshot img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.download-band {
  padding: 82px 0;
  background: var(--color-primary);
  color: #ffffff;
}

.download-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.download-content h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.download-content p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.download-band .button {
  background: #ffffff;
  color: var(--color-primary);
}

.download-band .button:hover {
  background: var(--color-surface-soft);
}

.legal-hero {
  padding: 56px 0;
  background: var(--color-surface-alt);
}

.legal-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.legal-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.legal-layout {
  max-width: 880px;
  padding: 54px 0 76px;
}

.legal-layout h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-layout h2:first-child {
  margin-top: 0;
}

.legal-layout p,
.legal-layout li {
  color: #233331;
}

.legal-layout a {
  color: var(--color-accent);
}

.info-panel {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 20px;
  background: var(--color-surface-soft);
}

.info-panel p {
  margin: 0;
}

.legal-layout ul,
.legal-layout ol {
  padding-left: 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: #ffffff;
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 32px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.copyright {
  margin: 8px 0 0;
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 520px);
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

@media (max-width: 1020px) {
  .feature-grid,
  .learning-grid,
  .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshots {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .hero-product {
    width: min(38vw, 260px);
    opacity: 0.32;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .site-header {
    position: static;
  }

  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-nav a {
    padding: 7px 9px;
  }

  .hero {
    min-height: auto;
  }

  .hero-product {
    inset: auto -40px 18px auto;
    width: 210px;
    min-width: 0;
    opacity: 0.16;
  }

  .hero-content {
    padding: 62px 0 70px;
  }

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

  .button {
    width: 100%;
  }

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

  .section {
    padding: 58px 0;
  }

  .feature-grid,
  .learning-grid,
  .course-list,
  .download-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .learning-card {
    min-height: 0;
  }

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

  .download-content {
    text-align: left;
  }

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

  .lightbox {
    padding: 72px 18px 78px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 56px);
  }

  .lightbox-next {
    right: calc(50% - 56px);
  }
}
