:root {
  --brand: #ff6b35;
  --brand-dark: #e85a2a;
  --ink: #1c1410;
  --ink-soft: #5a4e47;
  --cream: #f7f3ee;
  --cream-deep: #ede7df;
  --line: #d9d0c5;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 80px rgba(28, 20, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.page-shell::before,
.page-shell::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
}

.page-shell::before {
  top: -8rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 107, 53, 0.12);
}

.page-shell::after {
  bottom: -7rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 107, 53, 0.09);
}

.site-container {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 3rem));
  margin: 0 auto;
}

.landing-container {
  width: min(1024px, calc(100% - 3rem));
}

.narrow {
  width: min(760px, calc(100% - 3rem));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-lockup img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  box-shadow: 0 10px 28px rgba(28, 20, 16, 0.12);
}

.brand-kicker {
  display: block;
  color: rgba(90, 78, 71, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: rgba(90, 78, 71, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 2rem 0 3.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: rgba(90, 78, 71, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand);
}

.hero-tag {
  margin-bottom: 1rem;
  color: rgba(90, 78, 71, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 24rem;
}

.hero-copy p {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 1rem;
  color: rgba(90, 78, 71, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.underline-brand {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.28em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.app-store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge {
  display: block;
  width: auto;
  height: 52px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.2rem;
  border: 1px solid rgba(28, 20, 16, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 53, 0.35);
  color: var(--brand);
}

.model-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

model-viewer {
  width: 100%;
  height: 300px;
  --progress-bar-color: var(--brand);
  --progress-mask: transparent;
}

.section-label {
  margin: 0 0 1.5rem;
  color: rgba(90, 78, 71, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.steps {
  padding: 0 0 5rem;
}

.step-grid {
  display: grid;
  gap: 1rem;
}

.step-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 1rem;
}

.step-row.reverse {
  grid-template-columns: 170px minmax(0, 1fr);
}

.step-card,
.metric-card {
  border-radius: 2rem;
  padding: 2rem;
}

.step-card.dark,
.cta-panel {
  background: var(--ink);
  color: white;
}

.step-card.light {
  background: #f0ebe4;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card.accent {
  background: var(--brand);
  color: white;
}

.metric-card.soft {
  background: var(--cream-deep);
}

.step-number,
.metric-label {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

.step-card h3,
.metric-card strong {
  margin: 0;
  line-height: 1.08;
}

.step-card h3 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.step-card p,
.metric-card p {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.metric-card strong {
  font-size: 4rem;
  letter-spacing: -0.05em;
}

.metric-card span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

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

.cta-section {
  padding: 0 0 4rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 2rem;
  padding: 2.5rem;
}

.cta-panel::before,
.cta-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
}

.cta-panel::before {
  top: -4rem;
  right: -4rem;
  width: 14rem;
  height: 14rem;
}

.cta-panel::after {
  right: 3rem;
  bottom: -3rem;
  width: 9rem;
  height: 9rem;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(90, 78, 71, 0.75);
  font-size: 0.95rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-links a {
  color: rgba(90, 78, 71, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

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

.legal-main {
  padding: 1rem 0 4rem;
}

.legal-hero {
  margin: 1rem 0 2rem;
}

.legal-hero p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-card {
  border: 1px solid rgba(28, 20, 16, 0.06);
  border-radius: 2rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 2rem;
}

.legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  color: rgba(90, 78, 71, 0.75);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-card section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(28, 20, 16, 0.08);
}

.legal-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 0.55rem;
}

.legal-card strong {
  color: var(--ink);
}

.contact-card {
  margin-top: 2rem;
  border-radius: 1.4rem;
  background: var(--panel-strong);
  padding: 1.2rem 1.3rem;
}

.contact-card p {
  margin: 0.2rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(90, 78, 71, 0.85);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--brand);
}

.fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .step-row,
  .step-row.reverse,
  .dual-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1rem;
    padding-top: 1.2rem;
    padding-bottom: 3rem;
  }

  .hero-copy {
    order: 2;
    max-width: none;
  }

  .model-card {
    order: 1;
    margin: 0 auto 0.35rem;
    width: min(100%, 440px);
  }

  model-viewer {
    height: 300px;
  }

  .cta-panel {
    align-items: flex-start;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .site-container,
  .landing-container,
  .narrow {
    width: min(100% - 1.5rem, 860px);
  }

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

  .site-nav,
  .footer-links {
    gap: 0.85rem 1rem;
  }

  .step-card,
  .metric-card,
  .legal-card {
    padding: 1.4rem;
    border-radius: 1.5rem;
  }

  .hero {
    padding-top: 0.6rem;
    gap: 0.35rem;
  }

  .hero-tag {
    margin-bottom: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .eyebrow {
    margin-bottom: 1rem;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
    line-height: 0.96;
  }

  .hero-copy p {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .cta-row {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .button-link {
    min-height: 48px;
    padding: 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
  }

  .app-store-badge {
    height: 46px;
  }

  .hero-meta {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .model-card {
    width: 100%;
  }

  model-viewer {
    height: 240px;
  }

  .metric-card strong {
    font-size: 3rem;
  }
}
