:root {
  --bg: #fafaf8;
  --fg: #181512;
  --muted: #726b63;
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --card: rgba(255, 255, 255, 0.96);
  --border: rgba(34, 29, 25, 0.08);
  --cta: linear-gradient(180deg, #2e2b2c 0%, #1d1b1c 100%);
  --shadow: 0 22px 50px -24px rgba(54, 44, 35, 0.22);
  --shadow-soft: 0 10px 30px -16px rgba(44, 35, 27, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

.segment-nav {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.35rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.segment-nav-label {
  color: var(--muted);
}

.segment-nav a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
}

.segment-nav a:hover {
  text-decoration: underline;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.35rem 5rem;
}

header.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  color: #fff;
  background: var(--cta);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--indigo);
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.manifesto {
  margin: 2.5rem 0 3rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.manifesto blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.manifesto blockquote p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.gradient-text {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 3rem 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.45rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.preview-strip {
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.preview-strip h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.preview-hint {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.preview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: left;
}

.preview-placeholder {
  border-radius: 1rem;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.05));
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.preview-shot img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.pricing-blurb {
  margin: 2rem 0 1rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  text-align: center;
}

.pricing-blurb h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-blurb p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.signup-section {
  margin-top: 3.5rem;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.signup-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}

.signup-section > p.sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.98rem;
}

form#waitlist {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #f9f9f7;
  font-size: 1rem;
  font-family: inherit;
  color: var(--fg);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
}

button[type="submit"] {
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f2ee;
  background: var(--cta);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.2s, transform 0.15s;
}

button[type="submit"]:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-msg {
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.5rem;
}

.form-msg.ok {
  color: #2f8f4f;
  font-weight: 600;
}

.form-msg.err {
  color: #c85a59;
}

footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .signup-section {
    padding: 1.75rem 1.15rem;
  }
}
