:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #15181b;
  --muted: #5d6674;
  --line: rgba(21, 24, 27, 0.1);
  --navy: #07142e;
  --red: #f44236;
  --yellow: #f4b500;
  --green: #0e925d;
  --orange: #ff8a1a;
  --shadow: 0 18px 50px rgba(7, 20, 46, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page-width: 1320px;
  --gutter: clamp(18px, 3vw, 32px);
  --sans: "SF Pro Display", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(244, 66, 54, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(39, 123, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #fffcf7 0%, var(--bg) 100%);
}

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

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

.site-body {
  min-height: 100vh;
}

.orbital-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(21, 24, 27, 0.045) calc(100% - 1px)),
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(21, 24, 27, 0.035) calc(100% - 1px));
  background-size: calc((100vw - (2 * var(--gutter))) / 12) 100%, 100% 108px;
  opacity: 0.8;
}

.site-header,
.site-main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (2 * var(--gutter))), var(--page-width));
  margin-inline: auto;
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-icon,
.hero-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(7, 20, 46, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: clamp(1.35rem, 1.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-tag,
.section-label,
.section-number,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-tag,
.section-label,
.eyebrow {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.site-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.site-main {
  padding-bottom: 72px;
}

.hero-section,
.section-grid {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.hero-section {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 28px 0 56px;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.065em;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: 0.92;
}

.lede,
.section-heading p,
.feature-card p,
.workflow-list {
  color: var(--muted);
  line-height: 1.55;
}

.lede {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.3vw, 1.24rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(7, 20, 46, 0.12);
}

.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
}

.hero-panel-card,
.feature-card,
.download-banner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel-card {
  min-height: 480px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 237, 0.88)),
    var(--panel);
}

.hero-stat-grid {
  display: grid;
  gap: 16px;
}

.hero-stat {
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.hero-stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat strong {
  font-size: 1.02rem;
}

.section-grid {
  grid-template-columns: minmax(76px, 0.7fr) minmax(0, 8.8fr);
  padding: 38px 0 54px;
  border-top: 1px solid var(--line);
}

.section-label-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}

.section-number {
  color: var(--red);
}

.section-content {
  display: grid;
  gap: 22px;
}

.section-heading {
  max-width: 60rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.96;
  max-width: 13ch;
}

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

.feature-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card {
  padding: 22px 22px 24px;
}

.feature-card h3,
.download-banner h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.download-banner p,
.workflow-list {
  margin: 0;
  font-size: 1rem;
}

.inline-code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.workflow-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
}

.download-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}

.download-page {
  min-height: 100vh;
}

.download-main {
  width: min(calc(100% - (2 * var(--gutter))), 980px);
  margin: 0 auto;
  padding: 10px 0 72px;
}

.download-hero {
  padding: 20px 0 28px;
}

.download-hero h1 {
  margin: 0 0 12px;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

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

.download-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.download-card-header h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.download-card-header p,
.download-meta,
.download-status {
  margin: 0;
  color: var(--muted);
}

.download-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(7, 20, 46, 0.16);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.download-status {
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-status.ready {
  color: var(--green);
}

.download-status.muted {
  color: var(--muted);
}

.download-meta-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-footer {
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-section,
  .section-grid,
  .feature-grid.three-up,
  .feature-grid.two-up {
    grid-template-columns: 1fr;
  }

  .download-banner,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 12vw, 4.3rem);
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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