:root {
  --bg: #000000;
  --bg-raised: #0e0e0e;
  --border: #1f1f1f;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --text-dim: #6b6b6b;

  --orange: #f5821f;
  --orange-bg: #241408;
  --orange-border: #3d2510;

  --green: #2ecc71;
  --green-bg: #0e1f13;
  --green-border: #1a3322;

  --purple: #8b5cf6;
  --purple-bg: #17132b;
  --purple-border: #2a2148;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.center { text-align: center; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.eyebrow-orange { color: var(--orange); }
.eyebrow-purple { color: var(--purple); }

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #0a0a0a; }
.btn-small { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
}
.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.text-gradient {
  background: linear-gradient(90deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2.25rem;
}
.hero-form {
  display: flex;
  gap: 0.6rem;
  max-width: 440px;
  margin: 0 auto;
}
.hero-form input {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
}
.hero-form input:focus { outline: none; border-color: var(--orange); }
.hero-note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Origin */
.origin {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.origin-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.origin h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.25rem; }
.origin-text { color: var(--text-muted); font-size: 1.05rem; }

/* Rules */
.rules { max-width: 1120px; margin: 0 auto; padding: 5.5rem 1.5rem; }
.rules h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }

.rule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.rule-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid;
}
.rule-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.rule-icon svg {
  width: 26px;
  height: 26px;
}
.rule-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.rule-card h3 { font-size: 1.35rem; margin-bottom: 0.85rem; }
.rule-card p { color: var(--text-muted); font-size: 0.98rem; }
.rule-examples {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rule-examples-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.rule-examples p:last-child { color: var(--text); font-size: 0.92rem; }

.rule-orange { background: var(--orange-bg); border-color: var(--orange-border); }
.rule-orange .rule-icon { background: rgba(245,130,31,0.15); color: var(--orange); }
.rule-orange .rule-label, .rule-orange .rule-examples-label { color: var(--orange); }

.rule-green { background: var(--green-bg); border-color: var(--green-border); }
.rule-green .rule-icon { background: rgba(46,204,113,0.15); color: var(--green); }
.rule-green .rule-label, .rule-green .rule-examples-label { color: var(--green); }

.rule-purple { background: var(--purple-bg); border-color: var(--purple-border); }
.rule-purple .rule-icon { background: rgba(139,92,246,0.15); color: var(--purple); }
.rule-purple .rule-label, .rule-purple .rule-examples-label { color: var(--purple); }

/* Preview */
.preview {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.preview h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.phone-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.phone-frame {
  width: 220px;
  border-radius: 32px;
  border: 6px solid #1c1c1c;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.phone-frame:nth-child(2) {
  width: 250px;
  border-color: #2a2a2a;
}
.phone-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 1214;
  object-fit: cover;
  display: block;
}

/* Sister app teaser */
.teaser {
  background: var(--purple-bg);
  border-top: 1px solid var(--purple-border);
  border-bottom: 1px solid var(--purple-border);
}
.teaser-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.teaser h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.25rem; }

/* Waitlist */
.waitlist {
  max-width: 480px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.waitlist-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem;
}
.waitlist h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); }

.waitlist-form { margin-top: 2.5rem; text-align: left; }
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-row input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
}
.form-row input:focus { outline: none; border-color: var(--orange); }
.hp-field {
  display: none;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: var(--green); }
.form-status.error { color: var(--orange); }

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  opacity: 0.8;
}
.footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}
.footer-social a {
  color: var(--orange);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer-social a:hover { opacity: 0.8; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-links a:hover { color: var(--text); }

/* Simple content pages (privacy, support) */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}
.page-content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-content .page-updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}
.page-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}
.page-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}
.page-content ul {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 1rem 1.25rem;
}
.page-content li { margin-bottom: 0.5rem; }
.page-content a { color: var(--orange); }
.support-email {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  color: var(--orange) !important;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 860px) {
  .rule-cards { grid-template-columns: 1fr; }
  .phone-frame { width: 200px; }
  .phone-frame:nth-child(2) { width: 220px; }
}

@media (max-width: 520px) {
  .hero-form { flex-direction: column; }
  .nav-brand { font-size: 0.9rem; }
  .phone-row { flex-direction: column; gap: 1.75rem; }
  .phone-frame,
  .phone-frame:nth-child(2) { width: min(72%, 260px); }
}
