:root {
  color-scheme: only light;
  /* Color system from PixTwins visual identity (light theme, monochrome + orange accent) */
  --bg: #FFFFFF;
  --bg-alt: #FAFAF9;
  --bg-card: #FFFFFF;
  --fg: #0A0A0A;
  --fg-2: #4B5563;
  --fg-3: #9CA3AF;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --accent: #FD6706;        /* PixTwins orange (brand primary accent) */
  --accent-soft: #FFEBDD;
  --cobalt: #03329C;        /* PixTwins cobalt (brand secondary accent) */
  --cobalt-soft: #E7EDF8;
  --cobalt-glow: rgba(3, 50, 156, 0.15);
  --black: #0A0A0A;
  --white: #FFFFFF;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: 'Zen Dots', 'Inter', sans-serif;
  --font-display-mono: 'Major Mono Display', 'JetBrains Mono', monospace;

  /* Spacing scale */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 9999px;

  /* Layout */
  --container-max: 1180px;
  --gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
}

html {
  color-scheme: only light;
  background: #FFFFFF;
}

html, body {
  background: #FFFFFF;
  color: #0A0A0A;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ Top bar ============ */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
}

.brand-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: #1F2937;
  transform: translateY(-1px);
}

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

.btn-ghost:hover { background: var(--bg-alt); }

.btn-lg {
  font-size: 15px;
  padding: 12px 22px;
}

/* ============ Hero ============ */
.hero {
  padding: 120px 0 96px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.eyebrow-center { text-align: center; }

.headline {
  font-size: clamp(64px, 11vw, 156px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--fg);
  margin-bottom: 32px;
  max-width: 13ch;
}

.headline-stress {
  color: var(--accent);
  font-weight: 900;
}

.lede {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--fg-2);
  max-width: 52ch;
  line-height: 1.5;
  margin-bottom: 40px;
}

.signup-row {
  display: flex;
  gap: 8px;
  max-width: 520px;
  flex-wrap: wrap;
}

.signup-row input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup-row input::placeholder { color: var(--fg-3); }

.signup-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 103, 6, 0.15);
}

.signup-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-3);
}

/* ============ Pillars (4 feature cards) ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 96px;
}

@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pillar:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.pillar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  margin-bottom: 16px;
}

.pillar-mark svg { width: 20px; height: 20px; }

.pillar h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--fg);
}

.pillar p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ============ Banner section ============ */
.banner {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.banner > * { max-width: var(--container-max); margin-left: auto; margin-right: auto; }

.banner h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 24px;
  color: var(--fg);
}

.banner-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Roadmap ============ */
.roadmap {
  padding: 96px 0 96px;
}

.roadmap-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--fg);
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  position: relative;
  align-items: start;
}

.roadmap-item:last-child { border-bottom: 1px solid var(--border); }

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  margin-top: 6px;
  margin-left: 10px;
}

.roadmap-item.done .step-dot {
  background: var(--black);
  border-color: var(--black);
}

.roadmap-item.active .step-dot {
  background: var(--cobalt);
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px var(--cobalt-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--cobalt-glow); }
  50% { box-shadow: 0 0 0 7px rgba(3, 50, 156, 0.05); }
}

.roadmap-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.roadmap-item p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-sm .brand-mark { width: 20px; height: 20px; }
.brand-sm .brand-word { font-size: 14px; }

.footer-tag {
  font-size: 13px;
  color: var(--fg-2);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ============ CTA rows ============ */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-row-center { justify-content: center; margin-top: 32px; }

.btn svg {
  margin-right: 8px;
  flex-shrink: 0;
}

/* ============ Try-now section ============ */
.try {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.try h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--fg);
}

.try-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 64ch;
  margin-bottom: 48px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  flex-shrink: 0;
}

.steps h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.steps pre {
  background: #0F1014;
  color: #E5E7EB;
  border-radius: var(--r-md);
  padding: 14px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  border: 1px solid #1F2937;
}

.steps pre code { font-family: inherit; color: inherit; background: transparent; }

.step-note {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .steps li { grid-template-columns: 32px 1fr; gap: 16px; }
  .step-num { width: 28px; height: 28px; font-size: 12px; }
}


/* ============ Preview / What you get ============ */
.preview {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.preview h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--fg);
}

.preview-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 64ch;
  margin-bottom: 48px;
  line-height: 1.55;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 760px) { .preview-grid { grid-template-columns: 1fr; } }

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.preview-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.preview-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.preview-icon svg { width: 22px; height: 22px; }

.preview-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--fg);
}

.preview-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ============ Templates ============ */
.templates {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.templates h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--fg);
}

.templates-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 60ch;
  margin-bottom: 48px;
  line-height: 1.55;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) { .template-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .template-grid { grid-template-columns: 1fr; } }

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.template-card.template-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(253, 103, 6, 0.08);
  background: var(--bg-card);
}

.template-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
}

.template-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--fg);
}

.template-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.template-meta {
  list-style: none;
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.template-meta li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ============ Early access ============ */
.early-access {
  padding: 80px 0 96px;
}

.early-access-card {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.early-access-card .bracket { color: rgba(255,255,255,0.3); }

.eyebrow-light {
  color: var(--accent) !important;
}

.early-access-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.early-access-card h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  margin: 0;
}

.early-access-lede {
  font-size: 16px;
  color: rgba(255,255,255,0.74);
  max-width: 38ch;
  line-height: 1.55;
  margin: 0;
}

.early-access-note {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.early-access-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Form (right column) === */
.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.early-access-form input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.early-access-form input::placeholder { color: rgba(255,255,255,0.40); }

.early-access-form input:focus {
  outline: none;
  border-color: var(--cobalt);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(3, 50, 156, 0.30);
}

.early-access-form .form-submit {
  margin-top: 8px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-weight: 600;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

.early-access-form .form-submit:hover {
  background: #FF7A1F;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .early-access-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 32px;
  }
  .early-access-lede { max-width: 56ch; }
}

@media (max-width: 480px) {
  .early-access-card { padding: 40px 20px; }
}

/* ============ Footer additions ============ */
.footer-links {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-3);
  align-items: center;
}

.footer-links a {
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--fg); }


/* Diversify preview icons: 2nd + 4th use cobalt (orange remains primary) */
.preview-card:nth-child(2) .preview-icon,
.preview-card:nth-child(4) .preview-icon {
  background: var(--cobalt);
  color: #fff;
}

/* Pillar variation: 2nd + 4th use cobalt */
.pillar:nth-child(2) .pillar-mark,
.pillar:nth-child(4) .pillar-mark {
  background: var(--cobalt);
  color: #fff;
}

/* In-text links use cobalt */
.preview-card a, .template-card a, .roadmap-item a, .footer-tag a, .lede a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Eyebrows alternate: roadmap eyebrow stays orange; templates eyebrow stays orange;
   but secondary CTA / accent in early-access could switch */


/* ============ Corner brackets (the ⌐ ¬ decorative system) ============ */
.bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.bracket-tl { top: 16px; left: 16px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.bracket-tr { top: 16px; right: 16px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.bracket-bl { bottom: 16px; left: 16px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; }
.bracket-br { bottom: 16px; right: 16px; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; }

/* Hero gets brackets at top corners only */
.hero { position: relative; }
.hero .container { position: relative; }
.hero .bracket { color: var(--fg-3); }

/* ============ Hero blueprint grid bg ============ */
.hero-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  z-index: 0;
}
.hero .container { z-index: 1; }

/* ============ POSTER BANNER (full-bleed cobalt) ============ */
.poster-banner {
  background: var(--cobalt);
  color: var(--white);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.poster-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.poster-banner .bracket { color: rgba(255,255,255,0.4); }

.poster-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.poster-display {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 240px);
  font-weight: 400; /* Zen Dots only has 400 */
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.poster-line { display: block; }
.poster-line:nth-child(2) { color: var(--accent); }

.poster-sub {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 20px;
}

.poster-meta {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .poster-banner { padding: 80px 24px; }
  .poster-display { font-size: clamp(64px, 22vw, 120px); }
}

/* Override the OLD .banner styles since we replaced them */
.banner { display: none; }
