:root {
  --bg: #000;
  --bg-alt: #0d0d0d;
  --card: #141414;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #ea4946;
  --accent-hover: #f2625f;
  --radius: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

/* Nav */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(24px, calc((100% - var(--max)) / 2));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.home-brand img {
  height: 32px;
  width: auto;
}

.home-nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.home-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.home-nav-actions {
  display: flex;
  gap: 10px;
}

.home-brand + .home-nav-actions {
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

/* Sections */
.section {
  padding: 88px max(24px, calc((100% - var(--max)) / 2));
  scroll-margin-top: 40px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 96px max(24px, calc((100% - var(--max)) / 2)) 88px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

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

/* Video frames */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 20%, rgba(234, 73, 70, 0.22), transparent 55%),
    var(--card);
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step,
.use {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step p,
.use p,
.example-copy p {
  color: var(--muted);
  margin: 0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
}

/* Example */
.example {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.example-copy .btn {
  margin-top: 24px;
}

.example-copy .btn[hidden] {
  display: none;
}

/* Use cases */
.uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.use h3 {
  color: var(--accent);
}

/* Downloads */
.download-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 24px;
}

.download-group-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 12px;
}

.download {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  background: linear-gradient(180deg, #1a1a1a 0%, #101010 100%);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.download:hover {
  border-color: #555;
  box-shadow: 0 0 0 1px rgba(234, 73, 70, 0.35);
}

.download-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.download-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.download-line1 {
  font-size: 0.7rem;
  color: var(--muted);
}

.download-line2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.download-soon {
  opacity: 0.82;
  cursor: not-allowed;
}

/* Final CTA */
.cta {
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.cta .lead {
  margin: 0 auto 28px;
}

/* Contact form (homepage + /contact) */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-field-wide,
.contact-form .contact-error,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-error {
  margin: 0;
  color: var(--accent-hover);
}

.contact-form button {
  justify-self: start;
}

.contact-done h3 {
  margin-top: 0;
}

.contact-done p {
  margin: 0;
  color: var(--muted);
}

.contact-inner {
  display: grid;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-page .contact-card {
  margin: 0;
  max-width: none;
}

@media (max-width: 520px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 20px;
  }
}

/* Footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 28px max(24px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.home-footer a {
  text-decoration: none;
}

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

/* Inner column only. max-width on the padded section collapses the text on wide screens. */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page h2 {
  margin: 1.8em 0 0.4em;
  font-size: 1.2rem;
}

.legal-page p:not(.eyebrow),
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page code {
  font-size: 0.9em;
  color: var(--text);
}

.legal-page ul {
  margin: 0.4em 0 0;
  padding-left: 1.2em;
}

.legal-page li + li {
  margin-top: 0.35em;
}

@media (max-width: 900px) {
  .hero,
  .example {
    grid-template-columns: 1fr;
  }

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

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

  .home-nav-links {
    display: none;
  }

  .home-nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .uses {
    grid-template-columns: 1fr;
  }

  .home-nav-actions:has(.btn-primary) .btn-ghost {
    display: none;
  }
}

@media (max-width: 700px) {
  .download-groups {
    flex-direction: column;
  }
  .downloads {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .download {
    gap: 10px;
    padding: 10px 12px;
  }
  .download-line1,
  .download-line2 {
    white-space: nowrap;
  }
}
