:root {
  --black: #0A0A0A;
  --ink: #0F1115;
  --paper: #F7F5F1;
  --orange: #F97316;
  --orange-soft: #FDBA74;
  --muted: #94A3B8;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.14);
}

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

html, body {
  background: var(--black);
  color: var(--paper);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

.stage {
  position: relative;
  min-height: 100vh;
  padding: 32px clamp(24px, 6vw, 88px) 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background */
.glow {
  position: absolute;
  top: -25%;
  right: -20%;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(249,115,22,0.22), rgba(249,115,22,0) 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 96px 100%,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% 96px;
  mask-image: radial-gradient(ellipse at 60% 40%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-primary {
  font-family: 'Archivo Black', 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.wordmark-primary .amp {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 0.92em;
  color: var(--orange);
  margin: 0 0.02em;
  vertical-align: baseline;
  letter-spacing: normal;
}
.wordmark-secondary {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  margin-top: 6px;
  color: var(--orange);
}
.contact-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.contact-link:hover {
  border-color: var(--orange);
  background: rgba(249,115,22,0.08);
  color: var(--orange);
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  padding: 40px 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  font-weight: 600;
}
.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 24px;
}
.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  font-weight: 400;
}
.actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cta.primary {
  background: var(--orange);
  color: #1a0a00;
  box-shadow: 0 10px 30px rgba(249,115,22,0.28);
}
.cta.primary:hover {
  background: #FB8730;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(249,115,22,0.35);
}
.site-note {
  color: var(--muted);
  font-size: 14px;
}

/* Apps page */
.wordmark-link { text-decoration: none; display: inline-block; }
.apps-hero {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 56px 0 32px;
}
.apps-hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 20px;
}
.app-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 40px;
}
.app-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.app-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(249,115,22,0.10);
}
.app-card-body {
  padding: 26px 26px 20px;
  flex: 1;
}
.app-tag {
  display: inline-block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.app-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 10px;
}
.app-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
}
.app-roles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.app-roles li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.app-signin {
  display: block;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: rgba(249,115,22,0.06);
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.app-signin:hover {
  background: var(--orange);
  color: #1a0a00;
}

/* Flagship variant */
.app-card-flagship {
  border-color: var(--orange);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(249,115,22,0.14), transparent 60%),
    rgba(255,255,255,0.02);
  box-shadow: 0 12px 32px rgba(249,115,22,0.08);
}
.app-card-flagship .app-tag {
  color: var(--paper);
  background: var(--orange);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.18em;
}
.app-card-flagship .app-signin {
  background: var(--orange);
  color: #1a0a00;
}
.app-card-flagship .app-signin:hover {
  background: #ff8c3d;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer a:hover { color: var(--orange); }
.footer-links { display: inline-flex; gap: 20px; align-items: center; }
.footer-quiet { font-size: 13px; opacity: 0.85; }

/* Mobile */
@media (max-width: 640px) {
  .stage { padding: 24px 20px; }
  .contact-link { padding: 8px 14px; font-size: 13px; }
  .wordmark-primary { font-size: 26px; }
  .wordmark-secondary { font-size: 10px; letter-spacing: 0.22em; }
  .hero h1 br { display: none; }
  .footer { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-links { gap: 14px; }
  .glow { width: 600px; height: 600px; }
  .app-grid { grid-template-columns: 1fr; }
  .apps-hero { padding: 32px 0 24px; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
