:root {
  --red: #c85b5b;
  --red-dark: #b04a4a;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --paper: #ffffff;
  --paper-warm: #faf7f5;
  --muted: #78716c;
  --line: #e7e0dc;
  --dark: #211d1a;
  --dark-fg: #f5f0ec;
  --dark-muted: #b3a8a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

/* --- reveal animation --- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- header --- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.wordmark.small { font-size: 1.15rem; color: var(--dark-fg); }

.wordmark .dot { color: var(--red); }

.wordmark .logo { height: 2.6rem; width: auto; }

.wordmark .logo-sm { height: 2rem; }

.header-nav { display: flex; align-items: center; gap: 1.1rem; }

.link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.link:hover { color: #fff; }

/* --- buttons --- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

.btn-solid { background: var(--red); color: #fff; }

.btn-solid:hover { background: var(--red-dark); }

.btn-light { background: #fff; color: var(--red-dark); }

.btn-light:hover { background: var(--paper-warm); }

/* --- hero --- */

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
  padding: 7rem 1.25rem 9rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0.35) 40%, rgba(33, 29, 26, 0.96)),
    radial-gradient(ellipse at center, rgba(20, 16, 14, 0.25), transparent 70%);
}

.hero-content { position: relative; max-width: 46rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #e89a9a;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 9vw, 5rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  color: rgba(245, 240, 236, 0.85);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}

/* --- email capture --- */

.ea-form {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 32rem;
  margin: 0 auto;
}

.ea-form input {
  flex: 1 1 15rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 236, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  outline: none;
}

.ea-form input::placeholder { color: rgba(245, 240, 236, 0.6); }

.ea-form input:focus { border-color: var(--red); }

.ea-form-light input {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-color: transparent;
}

.ea-form-light input::placeholder { color: var(--muted); }

.ea-form button { border: 0; cursor: pointer; font-family: inherit; }

.ea-form button:disabled { opacity: 0.7; cursor: default; }

.ea-form[hidden] { display: none; }

.ea-note { margin-top: 1.1rem; font-weight: 700; position: relative; }

.ea-note.ok { color: #8fd4a4; }

.ea-note.err { color: #f0a3a3; }

.cta-band .ea-note.ok { color: #fff; }

.cta-band .ea-note.err { color: #ffd9d9; }

/* --- floating product shot --- */

.product-band {
  position: relative;
  max-width: 66rem;
  margin: -7.5rem auto 0;
  padding: 0 1.25rem;
  z-index: 5;
}

.shot { margin: 0; }

.shot img {
  border-radius: 14px;
  box-shadow: 0 30px 70px -16px rgba(28, 25, 23, 0.45);
  border: 1px solid var(--line);
}

/* --- capability grid --- */

.capabilities {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
}

section h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2.2rem;
}

@media (max-width: 640px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }

.cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(28, 25, 23, 0.25);
}

.cap-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.cap-icon svg, .promise-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- split feature sections --- */

.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 66rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.split-flip { grid-template-columns: 1fr 1.25fr; }

.split-flip figure { order: 2; }

@media (max-width: 800px) {
  .split, .split-flip { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.5rem 1.25rem; }
  .split-flip figure { order: 0; }
}

.split-copy h2 { margin-bottom: 1.2rem; }

.ticks { list-style: none; }

.ticks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 70% no-repeat, linear-gradient(#000, #000);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 70% no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

/* --- statement band --- */

.statement {
  background: var(--dark);
  color: var(--dark-fg);
  text-align: center;
  padding: 5rem 1.25rem;
  margin: 2rem 0;
}

.statement-line {
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.statement-line span { color: var(--red); }

.statement-sub {
  margin-top: 1.1rem;
  color: var(--dark-muted);
  font-size: 1.05rem;
}

/* --- promises --- */

.promises {
  max-width: 66rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2.2rem;
}

@media (max-width: 900px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promise-grid { grid-template-columns: 1fr; } }

.promise {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promise:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(28, 25, 23, 0.25);
}

.promise-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 0.7rem;
}

.promise h3 { font-size: 0.98rem; font-weight: 800; }

.promise p { color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34a85e;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 168, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(52, 168, 94, 0); }
}

@media (prefers-reduced-motion: reduce) { .open-dot { animation: none; } }

/* --- cta band --- */

.cta-band {
  background: linear-gradient(135deg, var(--red), #a94444);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.25rem;
}

.cta-band h2 { max-width: 38rem; margin: 0 auto 2rem; }

/* --- footer --- */

.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding: 2.2rem 1.25rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 72rem;
  margin: 0 auto;
}

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

.footer-nav a:hover { color: var(--dark-fg); }

.fineprint {
  max-width: 72rem;
  margin: 1.2rem auto 0;
  font-size: 0.8rem;
  color: #8a7f78;
}

/* --- mobile tightening --- */

/* Mobile header: the hero form already carries the CTA, so the top-right
   slot becomes Sign in (styled as a ghost button over the photo). */
@media (max-width: 480px) {
  .header-nav .btn-solid { display: none; }
  .header-nav .link {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
  }
}

@media (max-width: 640px) {
  .hero { min-height: 80svh; padding: 6.5rem 1.25rem 8rem; }
  .product-band { margin-top: -6.5rem; }
  .capabilities { padding-top: 3rem; }
  .statement { padding: 3.5rem 1.25rem; }
  .open-badge { border-radius: 18px; }
}
