/* Frontend Prime: Neobrutalism */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #fffbeb;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --accent-primary: #ff5277;
  --accent-primary-hover: #e0455f;
  --accent-secondary: #3d5af1;
  --accent-secondary-hover: #2a45d4;
  --accent-glow: #ffd23f;
  --border: #1a1a2e;

  --neo-lime: #b8f035;
  --neo-border-width: 3px;
  --neo-radius: 8px;
  --neo-radius-sm: 4px;

  --shadow-sm: 2px 2px 0 var(--border);
  --shadow-md: 4px 4px 0 var(--border);
  --shadow-lg: 8px 8px 0 var(--border);
  --shadow-hover: 6px 6px 0 var(--border);
  --shadow-active: 0px 0px 0 var(--border);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text-primary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Typography Scale */
.display-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  max-width: 10ch;
  line-height: 0.96;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.lead-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 55ch;
  line-height: 1.5;
  margin: 0 auto 2.5rem;
}

/* Layout */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  background: var(--bg-secondary);
  border-bottom: var(--neo-border-width) solid var(--border);
  box-shadow: none;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

/* Language toggle */
.lang-switch {
  display: inline-flex;
  border: 2px solid var(--border);
  border-radius: var(--neo-radius-sm);
  overflow: hidden;
}

.lang-btn {
  padding: 0.35rem 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.lang-btn-active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.lang-btn:hover:not(.lang-btn-active) {
  background: var(--accent-glow);
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--neo-radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: var(--neo-border-width) solid var(--border);
  font-family: inherit;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(-2px, -2px);
}

.btn:active {
  box-shadow: var(--shadow-active);
  transform: translate(4px, 4px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  color: #fff;
}

.btn-secondary {
  background-color: var(--accent-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--accent-secondary-hover);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--accent-glow);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--neo-radius-sm);
  background: var(--accent-glow);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  border: var(--neo-border-width) solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
  padding-top: clamp(8rem, 15vw, 12rem);
  position: relative;
  overflow: visible;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  display: none;
}

.hero-orb-1 {
  top: 6%;
  left: -2%;
  width: 10rem;
  height: 10rem;
  background: var(--accent-glow);
}

.hero-orb-2 {
  top: 14%;
  right: 12%;
  width: 14rem;
  height: 14rem;
  background: var(--neo-lime);
}

.hero-orb-3 {
  bottom: 10%;
  right: 2%;
  width: 8rem;
  height: 8rem;
  background: var(--accent-primary);
}

.hero-split .lead-text {
  margin: 0 0 2.5rem;
  max-width: 50ch;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-note {
  max-width: 48ch;
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  padding: 0.68rem 0.95rem;
  border-radius: var(--neo-radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 35rem;
}

.hero-brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.hero-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-phone::before {
  content: none;
}

.hero-phone::after {
  content: none;
}

/* App Surfaces */
.app-surface {
  position: relative;
  z-index: 1;
}

.surface-window {
  position: relative;
  overflow: hidden;
  border-radius: var(--neo-radius);
  border: var(--neo-border-width) solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}

.surface-window::before {
  content: none;
}

.surface-window::after {
  content: none;
}

.app-surface-hero {
  width: min(100%, 31rem);
  transform: rotate(-2deg);
  transition: transform 0.45s ease;
}

.app-surface-hero:hover {
  transform: rotate(0deg) translateY(-6px);
}

.app-surface-hero .surface-window {
  padding: 1.05rem;
}

.app-surface-hero [data-surface-tab],
.app-surface-hero [data-surface-focus] {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    background-color 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.app-surface-hero [data-surface-focus] {
  opacity: 0.58;
}

.app-surface-hero[data-surface-state="priority"] [data-surface-focus="priority"],
.app-surface-hero[data-surface-state="dinner"] [data-surface-focus="dinner"],
.app-surface-hero[data-surface-state="shopping"] [data-surface-focus="shopping"] {
  opacity: 1;
  transform: translateY(-2px);
}

.app-surface-hero[data-surface-state="priority"] [data-surface-focus="priority"] {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-primary);
}

.app-surface-hero[data-surface-state="dinner"] [data-surface-focus="dinner"] {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-secondary);
}

.app-surface-hero[data-surface-state="shopping"] [data-surface-focus="shopping"] {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-glow);
}

.surface-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.surface-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.surface-toolbar-compact {
  margin-bottom: 0.85rem;
}

.surface-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.surface-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--neo-radius-sm);
  background: var(--bg-primary);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.surface-tab-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.surface-chip-active {
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--border);
}

.surface-chip-muted {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

.app-surface-hero [data-surface-tab] {
  opacity: 0.52;
}

.app-surface-hero[data-surface-state="priority"] [data-surface-tab="priority"],
.app-surface-hero[data-surface-state="dinner"] [data-surface-tab="dinner"],
.app-surface-hero[data-surface-state="shopping"] [data-surface-tab="shopping"] {
  opacity: 1;
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--border);
}

.surface-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
}

.surface-dot:nth-child(1) { background: #ff5f57; }
.surface-dot:nth-child(2) { background: #ffbd2e; }
.surface-dot:nth-child(3) { background: #28c840; }

.surface-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.surface-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.surface-title {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.surface-badge {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: var(--neo-radius-sm);
  background: var(--accent-glow);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  align-self: flex-start;
  border: 2px solid var(--border);
}

.surface-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.surface-metric {
  padding: 0.95rem;
  border-radius: var(--neo-radius);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  min-height: 5.6rem;
}

.surface-metric strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.surface-metric span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.surface-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
}

.surface-panel {
  position: relative;
  z-index: 1;
  padding: 1.05rem;
  border-radius: var(--neo-radius);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
}

.surface-panel-soft {
  background: var(--bg-primary);
}

.surface-panel-muted {
  background: var(--bg-primary);
}

.surface-note {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border-radius: var(--neo-radius-sm);
  background: var(--bg-primary);
  border: 2px solid var(--border);
}

.surface-note-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--accent-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.surface-note p {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.surface-stack {
  display: grid;
  gap: 0.9rem;
}

.surface-caption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.surface-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.surface-inline-stat {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: var(--neo-radius-sm);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.73rem;
  font-weight: 700;
}

.surface-status-list + .surface-status-list {
  margin-top: 0.8rem;
}

.surface-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.surface-status-copy {
  display: grid;
  gap: 0.18rem;
}

.surface-status-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
}

.surface-status-meta {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.surface-status-track {
  height: 7px;
  margin-top: 0.6rem;
  border-radius: var(--neo-radius-sm);
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.surface-status-fill {
  display: block;
  height: 100%;
  border-radius: 0;
  background: var(--accent-primary);
}

.surface-status-fill-danger {
  background: #d85d36;
}

.surface-status-fill-warn {
  background: #c78a2e;
}

.surface-status-fill-ok {
  background: #2d9a5e;
}

.app-surface-mini {
  width: min(100%, 18rem);
  transition: transform 0.3s ease;
}

.app-surface-mini:hover {
  transform: translateY(-4px);
}

.app-surface-mini .surface-window {
  padding: 1rem;
  border-radius: var(--neo-radius);
}

/* Screen content */
.screen {
  position: relative;
  z-index: 1;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.screen-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.screen-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Inventory items */
.inv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.88rem;
  transition: transform 0.35s ease, background 0.35s ease;
}

.inv-item:hover {
  transform: translateX(4px);
}

.inv-emoji { font-size: 1.3rem; }
.inv-name { flex: 1; font-weight: 600; color: var(--text-primary); }

.inv-badge {
  padding: 3px 10px;
  border-radius: var(--neo-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
}

.inv-ok { background: #b8f035; color: var(--text-primary); }
.inv-warn { background: var(--accent-glow); color: var(--text-primary); }
.inv-danger { background: var(--accent-primary); color: #fff; }

/* Recipe cards */
.recipe-card {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: var(--neo-radius);
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.recipe-card strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}

.recipe-card small {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.recipe-dim { opacity: 0.45; }

.progress-bar {
  height: 5px;
  border-radius: var(--neo-radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 0;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.progress-full { background: #1d7a42; }

/* Shopping items */
.shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.shop-item span:nth-child(2) {
  flex: 1;
}

.shop-done {
  opacity: 0.4;
  text-decoration: line-through;
}

.shop-meta {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.shop-check {
  width: 20px;
  height: 20px;
  border-radius: var(--neo-radius-sm);
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.shop-checked {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

/* How It Works - Asymmetric Layout */
.section-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 40ch;
  justify-self: end;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.step-card {
  background: var(--bg-secondary);
  padding: 3rem 2.5rem;
  border-radius: var(--neo-radius);
  border: var(--neo-border-width) solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: none;
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  color: var(--accent-glow);
  text-shadow: 2px 2px 0 var(--border);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  opacity: 1;
  z-index: 1;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.step-card p {
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

/* Push middle card down — overridden by tilt rules in flavor section */

/* Features Section */
.results-section {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.results-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.results-copy {
  position: sticky;
  top: 7rem;
}

.results-stack {
  display: grid;
  gap: 1rem;
}

.result-card {
  background: var(--bg-secondary);
  border: var(--neo-border-width) solid var(--border);
  border-radius: var(--neo-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.result-card:nth-child(2) {
  margin-left: 1rem;
}

.result-card:nth-child(3) {
  margin-left: 2rem;
}

.result-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.result-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.result-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.result-card p {
  color: var(--text-secondary);
}

.features {
  background-color: var(--accent-secondary);
  color: var(--bg-primary);
  border-radius: var(--neo-radius);
  border: var(--neo-border-width) solid var(--border);
  margin-block: 2rem;
}

.features .section-title {
  color: var(--bg-primary);
  text-align: left;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.section-intro-light .section-copy {
  color: rgba(252, 249, 244, 0.8);
}

.section-kicker-light {
  color: rgba(255, 255, 255, 0.7);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  transition: transform 0.45s ease;
}

@media (min-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr 1fr;
  }
  .feature-item:nth-child(even) .feature-text {
    order: 2;
  }
}

.feature-text h3 {
  color: var(--accent-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.35s ease, letter-spacing 0.35s ease;
}

.feature-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-text p {
  color: rgba(252, 249, 244, 0.8);
  font-size: 1.1rem;
  max-width: 38ch;
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-item:hover .feature-text h3 {
  transform: translateX(3px);
  letter-spacing: -0.02em;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.feature-item:nth-child(even) .feature-visual {
  transform: translateY(1.5rem);
}

.story-section {
  padding-top: 3rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: var(--neo-border-width) solid var(--border);
  border-radius: var(--neo-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.story-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.story-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.story-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: auto;
}

/* FAQ */
.faq-section {
  max-width: 920px;
  margin: 0 auto;
}

.faq-intro {
  margin-bottom: 1rem;
}

.faq-item {
  border-bottom: var(--neo-border-width) solid var(--border);
  padding-block: 2rem;
  transition: background 0.15s ease;
}

.faq-item:hover {
  background: var(--accent-glow);
  padding-inline: 1rem;
}

.faq-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-secondary);
}

.faq-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  border-bottom: 2px solid transparent;
}
.faq-link:hover {
  border-color: var(--accent-primary);
}

.launch-section {
  padding-top: 2rem;
}

.launch-band {
  background: var(--accent-secondary);
  color: var(--bg-primary);
  border-radius: var(--neo-radius);
  border: var(--neo-border-width) solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.launch-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.launch-panel {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.4rem;
  border-radius: var(--neo-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.launch-band .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.launch-band .section-title,
.launch-band .lead-text {
  color: var(--bg-primary);
}

.launch-band .lead-text {
  margin-inline: auto;
}

.waitlist-form {
  max-width: 780px;
  margin: 0 auto;
}

.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.waitlist-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.waitlist-field input,
.waitlist-field select {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--neo-radius);
  padding: 1rem 1rem;
  font: inherit;
  outline: none;
  appearance: none;
}

.waitlist-field input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.waitlist-field input:focus,
.waitlist-field select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.waitlist-field-wide {
  grid-column: 1 / -1;
}

.launch-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.launch-band .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.launch-band .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.launch-band code {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.launch-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.launch-chip {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 1rem 1.05rem;
  border-radius: var(--neo-radius);
}

.launch-chip strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.launch-chip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

.waitlist-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.waitlist-note.is-error {
  color: #ffd4c9;
}

.waitlist-note.is-success {
  color: rgba(255, 255, 255, 0.82);
}

.waitlist-success {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--neo-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.waitlist-success-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.waitlist-success h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.waitlist-success p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--text-primary);
  border-top: var(--neo-border-width) solid var(--border);
  padding-block: 4rem 2rem;
  margin-top: 4rem;
  color: var(--bg-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .logo {
  color: var(--bg-primary);
}

.footer-links a {
  color: rgba(255, 251, 235, 0.7);
  font-weight: 500;
}

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

.copyright {
  color: rgba(255, 251, 235, 0.5);
  font-size: 0.9rem;
}

/* Entrance Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1), transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-reveal="left"] {
  transform: translateX(-28px);
}

.animate-on-scroll[data-reveal="right"] {
  transform: translateX(28px);
}

.animate-on-scroll[data-reveal="scale"] {
  transform: scale(0.96);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: none;
}

/* Mobile */
@media (max-width: 968px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-split .lead-text {
    margin: 0 auto 2.5rem;
  }

  .hero-note {
    margin-inline: auto;
  }

  .hero-signals {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-intro,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    justify-self: start;
  }

  .results-copy {
    position: static;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .result-card:nth-child(2),
  .result-card:nth-child(3) {
    margin-left: 0;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .launch-status {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(even) .feature-visual {
    transform: none;
  }

  .hero-orb-2,
  .hero-orb-3,
  .hero-phone::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-nav {
    order: 1;
  }

  .nav-actions {
      order: 2;
  }

  .nav-container {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg-primary);
      backdrop-filter: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-20px);
      transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .nav-open .nav-container {
      display: flex;
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  .nav-links {
      flex-direction: column;
      gap: 2.5rem;
      text-align: center;
  }

  .nav-links a {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--text-primary);
  }

  .btn-desktop-only {
      display: none;
  }

  .btn-mobile-nav {
      display: block;
  }

  .app-surface-hero {
    width: 100%;
    max-width: 28rem;
    transform: none;
  }

  .surface-header,
  .surface-summary,
  .surface-columns {
    grid-template-columns: 1fr;
  }

  .surface-toolbar,
  .surface-header {
    flex-direction: column;
    align-items: start;
  }

  .app-surface-mini {
    width: min(100%, 20rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge,
  .hero-phone,
  .app-surface-mini,
  .btn-primary,
  .step-number,
  .step-card::after,
  .hero::before,
  .hero::after,
  .hero-orb,
  .hero-phone::before,
  .hero-phone::after,
  .progress-fill {
    animation: none;
  }

  .app-surface-hero {
    transform: none;
  }

  .screen-track {
    animation: none;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn::after {
    display: none;
  }
}
/* Blog List Styles */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-secondary);
  border: var(--neo-border-width) solid var(--border);
  border-radius: var(--neo-radius);
  padding: 2.5rem 2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-md);
}

.blog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.blog-date {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

.blog-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.blog-card p {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 2rem;
}

.blog-read-more {
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-read-more:hover {
  color: var(--accent-primary);
}

.blog-read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.blog-read-more:hover::after {
  transform: translateX(4px);
}

/* Page Hero */
.page-hero {
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: 4rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.article-shell {
  max-width: 840px;
}

.article-hero {
  padding-bottom: 2.5rem;
}

.article-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.article-backlink::before {
  content: "←";
}

.article-meta {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.article-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 3rem 0 1rem;
}

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--neo-radius);
  background: var(--bg-secondary);
  border: var(--neo-border-width) solid var(--border);
  box-shadow: var(--shadow-md);
}

.article-cta-kicker {
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-cta .btn-outline {
  background: var(--bg-secondary);
}

.article-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.article-related {
  margin-top: 2rem;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.draft-notice {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: var(--neo-radius);
  border: var(--neo-border-width) solid var(--border);
  background: var(--accent-glow);
  color: var(--text-primary);
}

.inline-link {
  color: var(--accent-primary);
  font-weight: 700;
}

.inline-link:hover {
  color: var(--accent-primary-hover);
}

code {
  padding: 0.12rem 0.42rem;
  border-radius: var(--neo-radius-sm);
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  color: var(--accent-secondary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.utility-card {
  display: block;
  background: var(--bg-secondary);
  border: var(--neo-border-width) solid var(--border);
  border-radius: var(--neo-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.utility-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.utility-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.utility-card p {
  color: var(--text-secondary);
}

/* Mobile Navigation */
.btn-mobile-nav {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    position: relative;
    width: 24px;
    height: 24px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
}

.hamburger-line:nth-child(1) {
    top: 4px;
}

.hamburger-line:nth-child(2) {
    top: 11px;
}

.hamburger-line:nth-child(3) {
    top: 18px;
}

.nav-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

/* ============================================
   NEOBRUTALISM FLAVOR — Decorative Enhancements
   ============================================ */

/* --- Custom cursor & selection --- */
::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

/* --- Marquee ticker band --- */
.neo-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-top: var(--neo-border-width) solid var(--border);
  border-bottom: var(--neo-border-width) solid var(--border);
  padding: 0.75rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.neo-marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 20s linear infinite;
}

.neo-marquee-inner span {
  display: inline-block;
  padding: 0 2rem;
}

.neo-marquee-inner .neo-marquee-dot {
  color: var(--accent-primary);
  padding: 0 0.5rem;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Tilted cards — step cards rotate, straighten on hover --- */
.step-card:nth-child(1) {
  transform: rotate(-2deg);
}
.step-card:nth-child(2) {
  transform: rotate(1.5deg);
}
.step-card:nth-child(3) {
  transform: rotate(-1deg);
}
.step-card:nth-child(1):hover,
.step-card:nth-child(3):hover {
  transform: rotate(0deg) translate(-2px, -2px);
}
.step-card:nth-child(2):hover {
  transform: rotate(0deg) translate(-2px, -2px);
}

@media (min-width: 1024px) {
  .step-card:nth-child(2) {
    transform: translateY(3rem) rotate(1.5deg);
  }
  .step-card:nth-child(2):hover {
    transform: translateY(calc(3rem - 4px)) rotate(0deg) translate(-2px, -2px);
  }
}

/* --- Story cards tilt --- */
.story-card:nth-child(1) { transform: rotate(-1.5deg); }
.story-card:nth-child(2) { transform: rotate(1deg); }
.story-card:nth-child(3) { transform: rotate(-0.8deg); }
.story-card:hover { transform: rotate(0deg) translate(-2px, -2px) !important; }

/* --- Sticker badge — rotated with tape effect --- */
.badge {
  transform: rotate(-3deg);
  transition: transform 0.15s ease;
}
.badge:hover {
  transform: rotate(0deg) scale(1.05);
}

/* --- Hero surface playful tilt --- */
.app-surface-hero {
  transform: rotate(-3deg);
}
.app-surface-hero:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* --- Decorative underline on section titles --- */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.2em;
  left: 0;
  width: 100%;
  height: 0.18em;
  background: var(--accent-glow);
  border-radius: 2px;
  transform: rotate(-1deg);
}

/* Feature section titles: pink underline */
.features .section-title::after {
  background: var(--accent-primary);
}

/* --- Alternating colored card accents (top bar) --- */
.step-card:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent-primary);
  border-radius: var(--neo-radius) var(--neo-radius) 0 0;
  opacity: 1;
}
.step-card:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent-glow);
  border-radius: var(--neo-radius) var(--neo-radius) 0 0;
  opacity: 1;
}
.step-card:nth-child(3)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--neo-lime);
  border-radius: var(--neo-radius) var(--neo-radius) 0 0;
  opacity: 1;
}

/* --- Result cards: alternating left border color --- */
.result-card:nth-child(1) { border-left: 6px solid var(--accent-primary); }
.result-card:nth-child(2) { border-left: 6px solid var(--accent-secondary); }
.result-card:nth-child(3) { border-left: 6px solid var(--accent-glow); }

/* --- Story cards: colored top accent --- */
.story-card:nth-child(1) { border-top: 6px solid var(--accent-glow); }
.story-card:nth-child(2) { border-top: 6px solid var(--accent-primary); }
.story-card:nth-child(3) { border-top: 6px solid var(--accent-secondary); }

/* --- Section kicker — pill with colored bg --- */
.section-kicker {
  background: var(--accent-glow);
  color: var(--text-primary);
  padding: 0.3rem 0.85rem;
  border-radius: var(--neo-radius-sm);
  border: 2px solid var(--border);
  display: inline-block;
}

.section-kicker-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Feature kicker in dark section --- */
.feature-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--neo-radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* --- Wobble hover on mini surfaces --- */
@keyframes neo-wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  50% { transform: rotate(-1deg); }
  75% { transform: rotate(0.5deg); }
  100% { transform: rotate(0deg); }
}

.app-surface-mini:hover {
  animation: neo-wobble 0.4s ease;
  transform: translateY(-4px);
}

/* --- Display title: highlight word effect via text-shadow --- */
.display-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 3px 3px 0 var(--accent-glow);
}

/* --- Hero signals with colored icons --- */
.hero-signal:nth-child(1) { border-color: var(--accent-primary); }
.hero-signal:nth-child(2) { border-color: var(--accent-secondary); }
.hero-signal:nth-child(3) { border-color: var(--accent-glow); }

/* --- FAQ hover with bouncy feel --- */
.faq-item {
  transition: background 0.15s ease, padding 0.15s ease, transform 0.15s ease;
}
.faq-item:hover {
  transform: translateX(6px);
}

/* --- Blog card colored side stripe --- */
.blog-card {
  border-left: 6px solid var(--accent-primary);
}
.blog-card:nth-child(even) {
  border-left-color: var(--accent-secondary);
}
.blog-card:nth-child(3n) {
  border-left-color: var(--accent-glow);
}

/* --- Launch band: dashed inner panel --- */
.launch-panel {
  border-style: dashed;
}

/* --- Waitlist input focus glow --- */
.waitlist-field input:focus,
.waitlist-field select:focus {
  border-color: var(--accent-glow);
  box-shadow: 4px 4px 0 var(--accent-glow);
}

/* --- Inline link with thick underline --- */
.inline-link {
  text-decoration: none;
  background-image: linear-gradient(var(--accent-glow), var(--accent-glow));
  background-size: 100% 0.35em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  transition: background-size 0.15s ease;
}
.inline-link:hover {
  background-size: 100% 100%;
  color: var(--text-primary);
}

/* --- Story CTA arrow bounce --- */
.story-cta span {
  display: inline-block;
  transition: transform 0.15s ease;
}
.story-card:hover .story-cta span {
  transform: translateX(6px);
}

/* --- Blog read more arrow bounce --- */
.blog-read-more:hover::after {
  transform: translateX(8px);
}

/* --- CSS Peeps character illustrations --- */
.neo-peep .css-peeps {
  width: 200px;
  height: 220px;
}

/* Hero character — beside the surface mockup */
.neo-peep-hero {
  position: absolute;
  bottom: -3rem;
  right: -2rem;
  transform: rotate(6deg);
  z-index: 5;
  filter: drop-shadow(3px 3px 0 var(--border));
  pointer-events: none;
}

.neo-peep-hero .css-peeps {
  width: 140px;
  height: 160px;
}

/* Step card characters */
.neo-peep-step {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.neo-peep-step .css-peeps {
  width: 140px;
  height: 160px;
  filter: drop-shadow(2px 2px 0 var(--border));
  transition: transform 0.15s ease;
}

.step-card:hover .neo-peep-step .css-peeps {
  transform: scale(1.08) rotate(-3deg);
}

/* FAQ companion character */
.neo-faq-companion {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.neo-peep-faq {
  flex-shrink: 0;
}

.neo-peep-faq .css-peeps {
  width: 120px;
  height: 140px;
  filter: drop-shadow(2px 2px 0 var(--border));
}

/* Launch band character */
.neo-peep-launch {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.neo-peep-launch .css-peeps {
  width: 180px;
  height: 200px;
  filter: drop-shadow(3px 3px 0 rgba(255, 255, 255, 0.3));
  animation: neo-float 3s ease-in-out infinite;
}

@keyframes neo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Mobile adjustments for neobrutalism --- */
@media (max-width: 968px) {
  /* Characters */
  .neo-peep-hero {
    display: none;
  }

  .neo-faq-companion {
    flex-direction: column;
  }

  .neo-peep-step .css-peeps {
    width: 120px;
    height: 140px;
  }

  /* Smaller shadows on mobile */
  :root {
    --shadow-md: 3px 3px 0 var(--border);
    --shadow-lg: 5px 5px 0 var(--border);
    --shadow-hover: 4px 4px 0 var(--border);
  }

  /* Tilt cards: flatten on mobile */
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .story-card:nth-child(1),
  .story-card:nth-child(2),
  .story-card:nth-child(3) {
    transform: none !important;
  }

  /* Display title: smaller shadow offset */
  .display-title {
    text-shadow: 3px 3px 0 var(--accent-glow);
    font-size: clamp(2.2rem, 8vw, 4rem);
  }

  /* Section title underline */
  .section-title::after {
    height: 0.14em;
    transform: none;
  }

  /* Marquee: smaller text */
  .neo-marquee {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  /* Buttons: thinner border */
  .btn {
    --neo-border-width: 2px;
    padding: 0.85rem 1.5rem;
  }

  /* Cards: less padding, thinner border */
  .step-card {
    padding: 2rem 1.5rem;
    border-width: 2px;
  }

  .result-card,
  .story-card,
  .blog-card,
  .utility-card {
    border-width: 2px;
  }

  /* Section kicker pill */
  .section-kicker {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
  }

  /* Features section: no border on mobile, full width */
  .features {
    border-radius: 0;
    margin-inline: -1.5rem;
    border-left: none;
    border-right: none;
  }

  /* Launch band: less radius */
  .launch-band {
    border-radius: var(--neo-radius);
  }

  /* FAQ: gentler hover */
  .faq-item:hover {
    padding-inline: 0.5rem;
  }
}

@media (max-width: 480px) {
  /* Very small screens */
  .display-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    text-shadow: 2px 2px 0 var(--accent-glow);
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-signals {
    flex-direction: column;
    align-items: center;
  }

  .hero-signal {
    font-size: 0.78rem;
    width: 100%;
    justify-content: center;
  }

  .neo-peep-step .css-peeps {
    width: 100px;
    height: 120px;
  }

  .step-number {
    font-size: 3rem;
  }

  /* Marquee ticker */
  .neo-marquee {
    font-size: 0.75rem;
  }

  /* Surface mockup */
  .surface-window {
    border-width: 2px;
  }

  .surface-chip {
    font-size: 0.65rem;
    padding: 0.35rem 0.55rem;
    border-width: 1.5px;
  }
}

/* ============================================
   NEOBRUTALISM LAYER 2 — Texture & Depth
   ============================================ */

/* --- 1. Noise/grain texture overlay --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- 2. Zigzag / wave section separators --- */
.neo-zigzag {
  display: block;
  width: 100%;
  height: 24px;
  background: var(--text-primary);
  clip-path: polygon(
    0% 0%, 4% 100%, 8% 0%, 12% 100%, 16% 0%, 20% 100%,
    24% 0%, 28% 100%, 32% 0%, 36% 100%, 40% 0%, 44% 100%,
    48% 0%, 52% 100%, 56% 0%, 60% 100%, 64% 0%, 68% 100%,
    72% 0%, 76% 100%, 80% 0%, 84% 100%, 88% 0%, 92% 100%,
    96% 0%, 100% 100%, 100% 100%, 0% 100%
  );
  margin: 0;
  position: relative;
  z-index: 1;
}

.neo-zigzag-flip {
  clip-path: polygon(
    0% 100%, 4% 0%, 8% 100%, 12% 0%, 16% 100%, 20% 0%,
    24% 100%, 28% 0%, 32% 100%, 36% 0%, 40% 100%, 44% 0%,
    48% 100%, 52% 0%, 56% 100%, 60% 0%, 64% 100%, 68% 0%,
    72% 100%, 76% 0%, 80% 100%, 84% 0%, 88% 100%, 92% 0%,
    96% 100%, 100% 0%, 100% 0%, 0% 0%
  );
}

/* --- 3. Dot grid pattern backgrounds --- */
.neo-dots-bg {
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 0 0;
}

.neo-lines-bg {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(26, 26, 46, 0.04) 8px,
    rgba(26, 26, 46, 0.04) 9px
  );
}

/* Apply dot pattern to how-it-works section */
#how-it-works {
  position: relative;
}

#how-it-works::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 26, 46, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

#how-it-works > * {
  position: relative;
  z-index: 1;
}

/* Apply diagonal lines to results section */
.results-section {
  position: relative;
}

.results-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(26, 26, 46, 0.03) 10px,
    rgba(26, 26, 46, 0.03) 11px
  );
  pointer-events: none;
  z-index: 0;
}

.results-section > * {
  position: relative;
  z-index: 1;
}

/* --- 4. Bold filled headings with hard shadow --- */
.display-title {
  color: var(--text-primary);
  text-shadow: 4px 4px 0 var(--accent-glow);
}

/* --- Reduced motion: disable all playful transforms --- */
@media (prefers-reduced-motion: reduce) {
  .neo-marquee-inner { animation: none; }
  .step-card,
  .story-card,
  .badge,
  .app-surface-hero {
    transform: none !important;
  }
  .app-surface-mini:hover {
    animation: none;
  }
  .display-title {
    text-shadow: none;
  }
  .neo-peep-launch .css-peeps {
    animation: none;
  }
}
