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

:root {
  --yellow: #FFB830;
  --orange: #FF8C42;
  --cream: #FFF8EE;
  --navy: #171B35;
  --navy2: #1E2340;
  --text: #2A2A2A;
  --muted: #6B7280;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(23,27,53,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,238,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,184,48,.25);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { font-size: 1.5rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  opacity: .8;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.btn-nav {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  opacity: 1 !important;
  font-size: .9rem !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--navy2) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,184,48,.45);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,184,48,.55);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-secondary:hover { background: var(--navy2); transform: translateY(-2px); }

/* ── HERO ── */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,184,48,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-mascot {
  font-size: clamp(80px, 15vw, 130px);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(255,140,66,.3));
  animation: float 3.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-badge {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 8px;
}
.hero-badge strong { color: var(--navy); }

/* ── SCREENSHOTS ── */
.screenshots {
  padding: 64px 24px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.screenshots::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 0%);
}
.screenshots::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.section-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.screenshots .section-label { color: var(--yellow); }
.screenshots h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 48px;
}
.screenshot-row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
}
.screenshot-phone {
  flex: 1;
  max-width: 240px;
  background: #fff;
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,.15);
  aspect-ratio: 9/19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transition: transform .3s;
}
.screenshot-phone:hover { transform: translateY(-8px); }
.screenshot-phone:nth-child(2) { transform: scale(1.06); }
.screenshot-phone:nth-child(2):hover { transform: scale(1.06) translateY(-8px); }
.screenshot-phone .ph-icon { font-size: 2rem; }
.screenshot-phone span { font-size: .78rem; color: #bbb; }

/* ── FEATURES ── */
.features { padding: 96px 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }
.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,184,48,.12);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(23,27,53,.13);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
  width: 52px;
  height: 52px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── PRICING ── */
.pricing {
  padding: 96px 24px;
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
}
.pricing-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 2px solid rgba(255,184,48,.2);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--yellow);
  background: var(--navy);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(23,27,53,.25);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.price-card.featured .price-label { color: rgba(255,255,255,.6); }
.price-amount { font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.price-card.featured .price-amount { color: var(--yellow); }
.price-period { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.price-card.featured .price-period { color: rgba(255,255,255,.5); }
.price-features { list-style: none; flex: 1; margin-bottom: 28px; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  padding: 6px 0;
  color: var(--text);
}
.price-card.featured .price-features li { color: rgba(255,255,255,.85); }
.price-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(255,184,48,.15);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.price-card.featured .price-features li::before { background: rgba(255,184,48,.25); color: var(--yellow); }
.price-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 20px; }

/* ── DOWNLOAD ── */
.download {
  padding: 96px 24px;
  text-align: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,184,48,.12) 0%, transparent 70%);
  pointer-events: none;
}
.download-inner { max-width: 600px; margin: 0 auto; position: relative; }
.download h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.download p { color: rgba(255,255,255,.65); margin-bottom: 40px; font-size: 1.05rem; }
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.store-btn.soon { opacity: .55; pointer-events: none; }
.store-btn-icon { font-size: 1.8rem; }
.store-btn-text { text-align: left; }
.store-btn-text small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.store-btn-text strong { font-size: 1rem; }

/* ── FOOTER ── */
footer {
  background: #0F1228;
  color: rgba(255,255,255,.5);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 1000px; margin: 0 auto; }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: rgba(255,255,255,.8); margin-bottom: 20px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: .82rem; }

/* ── INNER PAGES ── */
.page-hero {
  padding: 64px 24px 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 1rem; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.page-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,184,48,.25);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.page-content ul { margin: 12px 0 16px 20px; }
.page-content ul li { color: var(--muted); line-height: 1.75; margin-bottom: 6px; }
.page-content a { color: var(--orange); }
.page-content .address-box {
  background: #fff;
  border: 1px solid rgba(255,184,48,.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}
.page-content .address-box p { margin: 0; }

/* ── HA DOCS ── */
.ha-steps { display: flex; flex-direction: column; gap: 32px; margin-top: 16px; }
.ha-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow);
}
.ha-step-num {
  font-size: .75rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ha-step h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.ha-step p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.ha-step p:last-child { margin-bottom: 0; }
pre {
  background: var(--navy);
  color: #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.6;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  margin: 12px 0;
}
pre .hl { color: var(--yellow); }
.prereq-list {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 16px 0 32px;
}
.prereq-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--text);
  font-size: .93rem;
}
.prereq-list li:last-child { border-bottom: none; }
.prereq-list li::before { content: '✓'; color: var(--orange); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.json-doc {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.json-field { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); align-items: flex-start; }
.json-field:last-child { border-bottom: none; }
.json-key { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem; color: var(--orange); font-weight: 600; min-width: 160px; flex-shrink: 0; margin-top: 2px; }
.json-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.support-box {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}
.support-box h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.support-box p { color: var(--navy); opacity: .8; font-size: .92rem; }
.support-box a { color: var(--navy); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(255,184,48,.2);
    padding: 20px 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .screenshot-row { flex-direction: column; align-items: center; }
  .screenshot-phone { max-width: 180px; }
  .screenshot-phone:nth-child(2) { transform: none; }
  .price-card.featured { transform: none; }
  .ha-step { padding: 20px; }
  pre { font-size: .75rem; }
}
