/* Homestead marketing site — plain CSS, no build step.
   Brand tokens mirror Core/Sources/DesignSystem/DesignSystem.swift. */

:root {
  /* Brand palette */
  --brand-green: #6CC24C;
  --brand-orange: #E07E22;
  --brand-teal: #2AB7CA;
  --brand-indigo: #3F5AC9;
  --brand-gradient: linear-gradient(135deg, #2AB7CA 0%, #3F5AC9 100%);

  /* Surfaces & text (light) */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --border: #e3e6ea;
  --text: #1c1f23;
  --text-muted: #5b626b;
  --on-accent: #ffffff;

  /* Type & layout scale */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 16px;
  --radius-chip: 10px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-green: #7BD15B;
    --brand-orange: #EC8E35;
    --bg: #14161a;
    --bg-alt: #1b1e23;
    --surface: #20242a;
    --border: #2c313a;
    --text: #f2f4f7;
    --text-muted: #a3abb5;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

a { color: inherit; }

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.wordmark-mark { font-size: 1.3rem; transition: transform 0.3s ease; }
.wordmark:hover .wordmark-mark { transform: rotate(-8deg) scale(1.12); }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  animation: heroGradient 18s ease infinite;
  color: var(--on-accent);
  padding: 80px 24px 92px;
  text-align: center;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.35;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%);
  animation: floatOrb 16s ease-in-out infinite;
}
.orb-1 { width: 260px; height: 260px; top: -60px; left: -40px; animation-duration: 19s; }
.orb-2 { width: 200px; height: 200px; bottom: -50px; right: 8%; animation-duration: 23s; animation-delay: -4s; }
.orb-3 { width: 140px; height: 140px; top: 30%; right: 22%; opacity: 0.25; animation-duration: 27s; animation-delay: -8s; }
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(20px, -26px, 0); }
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  opacity: 0.95;
  margin: 0 auto 32px;
  max-width: 620px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  border-radius: var(--radius-chip);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--on-accent);
  cursor: default;
  opacity: 0.85;
  text-align: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.badge:hover { transform: translateY(-2px); opacity: 1; }
.badge-kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.badge-store { font-size: 1.1rem; font-weight: 700; }

.hero-note {
  margin: 24px 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-accent);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-chips li:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255, 255, 255, 0.26);
}

/* ---------- Stats strip ---------- */
.stats { padding: 40px 24px; }
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px;
}
.stat-num {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Shared section bits ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 12px; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }

/* ---------- Value props ---------- */
.values { padding: 56px 24px; }
.values-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }
.value-icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.value h2 { font-size: 1.25rem; margin: 0 0 10px; }
.value p { color: var(--text-muted); margin: 0; }

/* ---------- Modules ---------- */
.modules { padding: 64px 24px; background: var(--bg-alt); }
.module-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.module {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent, var(--brand-green));
  border-radius: var(--radius-card);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, var(--accent, var(--brand-green)) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.module:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}
.module:hover::before { opacity: 0.06; }
.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  font-size: 1.5rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--brand-green)) 14%, transparent);
  transition: transform 0.25s ease;
}
.module:hover .module-icon { transform: scale(1.1) rotate(-5deg); }
.module h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--accent, var(--brand-green));
}
.module > p { color: var(--text-muted); margin: 0 0 14px; }
.module-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.module-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.module-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--brand-green));
}

/* ---------- Scheduling ---------- */
.scheduling { padding: 64px 24px; }
.trigger-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.trigger {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
  border-color: color-mix(in srgb, var(--brand-teal) 45%, var(--border));
}
.trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  font-size: 1.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-teal) 12%, transparent);
}
.trigger h3 { margin: 0 0 8px; font-size: 1.15rem; }
.trigger p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

.trigger-combine {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.trigger-combine strong { color: var(--text); }
.trigger-combine-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--brand-gradient);
  flex: none;
}

/* ---------- Platform features ---------- */
.platform { padding: 64px 24px; background: var(--bg-alt); }
.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10); }
.feature-icon { display: inline-flex; font-size: 1.5rem; margin-bottom: 12px; }
.feature h3 { margin: 0 0 10px; font-size: 1.15rem; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------- Privacy ---------- */
.privacy { padding: 64px 24px; }
.privacy-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.privacy-icon { display: inline-flex; font-size: 2rem; margin-bottom: 12px; }
.privacy h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 16px; }
.privacy p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
}
.footer-brand { font-weight: 700; color: var(--text); margin: 0 0 6px; }
.footer-meta { margin: 0 0 6px; font-size: 0.95rem; }
.footer-meta a { color: var(--brand-teal); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-copy { margin: 0; font-size: 0.85rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
