:root {
  --bg: #181512;
  --bg2: #221e1a;
  --bg3: #2c2622;
  --fg: #f0ece6;
  --fg2: #c0b098;
  --fg3: #887868;
  --accent: oklch(72% 0.17 182);
  --accent-dim: oklch(72% 0.17 182 / 0.15);
  --accent-border: oklch(72% 0.17 182 / 0.35);
  --border: rgba(240,236,230,0.08);
  --border2: rgba(240,236,230,0.05);
  --radius: 4px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(11,10,9,0.8);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius);
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85 !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 48px 60px;
  gap: 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  padding-bottom: 0.12em;
  text-wrap: pretty;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--fg2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  color: var(--fg2);
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}

.btn-ghost:hover { color: var(--fg); border-color: rgba(240,236,230,0.2); }

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#workflow-canvas {
  width: 100%;
  height: 100%;
}

/* ── MARQUEE ── */
.marquee-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg2);
}

.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
  text-align: center;
  margin-bottom: 24px;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.2s;
  flex-shrink: 0;
}

.marquee-item:hover { color: var(--fg); }

.marquee-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(0.4);
  transition: opacity 0.2s, filter 0.2s;
}

.marquee-item:hover img { opacity: 1; filter: grayscale(0); }

/* ── SECTIONS ── */
section {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--fg3);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 60px;
  padding-bottom: 0.1em;
  text-wrap: pretty;
  max-width: 760px;
}

h2 em { font-style: normal; color: var(--accent); }

/* ── FRICTION ── */
.friction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.friction-left {
  padding-right: 80px;
  border-right: 1px solid var(--border);
}

.friction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.friction-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border2);
  color: var(--fg2);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  transition: color 0.2s;
}

.friction-list li:hover { color: var(--fg); }

.friction-list li::before {
  content: '—';
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 2px;
}

.friction-right {
  padding-left: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.friction-statement {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.friction-note {
  color: var(--fg2);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

/* ── PROCESS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-step {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--border);
  position: relative;
}

.process-step:last-child { border-right: none; padding-right: 0; }
.process-step:not(:first-child) { padding-left: 36px; }

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  color: var(--fg2);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
}

/* ── PRICING ── */
.pricing-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  align-items: end;
}

.pricing-intro {
  color: var(--fg2);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 440px;
}

.pricing-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-grid--2 { grid-template-columns: 1fr 1fr; }
.pricing-grid--3 { grid-template-columns: 1fr 1fr 1fr; }


.pricing-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.pricing-card:last-child { border-right: none; }

.pricing-card:hover { background: var(--bg3); }

.pricing-card.featured {
  background: var(--accent-dim);
  border-right-color: var(--accent-border);
  border-left: 2px solid var(--accent);
}

.pricing-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 16px;
}

.pricing-card.featured .pricing-tag { color: var(--accent); }

.pricing-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 4px;
}

.pricing-cadence {
  font-size: 12px;
  color: var(--fg3);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.pricing-tagline {
  font-size: 13px;
  color: var(--fg2);
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--fg2);
  display: flex;
  gap: 8px;
  line-height: 1.4;
  font-weight: 300;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-card {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg2);
  text-decoration: none;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-card:hover { border-color: var(--fg2); color: var(--fg); }

.pricing-card.featured .btn-card,
.pricing-card.selected .btn-card {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.pricing-card.featured .btn-card:hover,
.pricing-card.selected .btn-card:hover { opacity: 0.88; }

.pricing-card.selected {
  background: var(--accent-dim);
  border-right-color: var(--accent-border);
  border-left: 2px solid var(--accent);
  cursor: pointer;
}

.pricing-card.selected .pricing-tag { color: var(--accent); }

.pricing-card { cursor: pointer; }

/* ── USE CASES ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.usecase-item {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--border);
}

.usecase-item:last-child { border-right: none; }
.usecase-item:not(:first-child) { padding-left: 28px; }

.usecase-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 14px;
  font-family: var(--font-mono);
  background: var(--accent-dim);
}

.usecase-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.usecase-desc {
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
}

/* ── TOOLS ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.tools-category {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--border);
}

.tools-category:last-child { border-right: none; }
.tools-category:not(:first-child) { padding-left: 32px; }

.tools-cat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 20px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border2);
  color: var(--fg2);
  font-size: 14px;
  transition: color 0.2s;
}

.tool-item:hover { color: var(--fg); }

.tool-item:last-child { border-bottom: none; }

.tool-item img {
  width: 16px; height: 16px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(0.4);
  transition: opacity 0.2s, filter 0.2s;
}

.tool-item:hover img { opacity: 1; filter: grayscale(0); }

.tools-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--fg3);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── ABOUT ── */
.about-left {
  max-width: 720px;
}

.about-text {
  color: var(--fg2);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 40px;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.value-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg3);
}

/* ── CTA ── */
.cta-section {
  padding: 120px 48px;
  text-align: center;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(72% 0.17 182 / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  max-width: 640px;
  margin: 0 auto 24px;
}

.cta-section p {
  color: var(--fg2);
  font-size: 16px;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg3);
  margin-top: 24px;
  letter-spacing: 0.02em;
}

.cta-email a { color: var(--fg2); text-decoration: none; transition: color 0.2s; }
.cta-email a:hover { color: var(--fg); }

/* ── FOOTER ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-brand-mark {
  width: 18px; height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: right;
  line-height: 1.6;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  display: none;
  position: fixed;
  bottom: 24px; right: 24px;
  width: 260px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.tweaks-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.tweaks-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }

.tweak-row label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg3);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.tweak-row select, .tweak-row input[type=range] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--fg2);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
  outline: none;
}

.tweak-row input[type=range] { padding: 4px 0; appearance: none; height: 4px; cursor: pointer; accent-color: var(--accent); }

/* ── NAV TOGGLE (HAMBURGER) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 2px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */

/* Anchor offsets for fixed nav */
section[id], [id="process"], [id="services"], [id="about"], [id="contact"] {
  scroll-margin-top: 80px;
}

/* Responsive media defaults */
img { max-width: 100%; }

@media (max-height: 700px) and (min-width: 1025px) {
  .hero { padding-top: 80px; padding-bottom: 40px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 28px; }
}

/* Small laptop / desktop tight */
@media (max-width: 1180px) {
  nav { padding: 0 32px; }
  section { padding: 100px 32px; }
  .cta-section { padding: 100px 32px; }
  footer { padding: 40px 32px; }
  .hero { padding: 96px 32px 56px; gap: 48px; }
  .pricing-header { gap: 48px; }
}

/* Tablet — stack hero, compress grids, enable hamburger */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  section { padding: 80px 24px; }
  .cta-section { padding: 88px 24px; }
  footer { padding: 32px 24px; }

  /* Hero single column */
  .hero {
    grid-template-columns: 1fr;
    padding: 112px 24px 64px;
    gap: 36px;
    min-height: auto;
  }
  .hero-visual { display: none; }
  .hero-sub { max-width: 560px; }

  /* Hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(11,10,9,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li { border-bottom: 1px solid var(--border2); }
  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 20px;
  }
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
  }
  .nav-links .nav-cta {
    text-align: center;
    padding: 14px 20px !important;
    font-size: 14px !important;
    width: 100%;
  }

  /* Friction */
  .friction-grid { grid-template-columns: 1fr; }
  .friction-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
  .friction-right { padding-left: 0; }

  /* Process → 2 cols, gap layout */
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .process-step { padding: 0; border-right: none; }
  .process-step:last-child { padding-right: 0; }
  .process-step:not(:first-child) { padding-left: 0; }

  /* Pricing → 1 col */
  .pricing-header { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pricing-card:last-child { border-bottom: none; }

  /* Use cases → 2 cols */
  .usecases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    border-top: none;
    padding-top: 0;
  }
  .usecase-item { padding: 0; border-right: none; }
  .usecase-item:not(:first-child) { padding-left: 0; }

  /* Tools → 2 cols */
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    border-top: none;
  }
  .tools-category { padding: 0; border-right: none; }
  .tools-category:not(:first-child) { padding-left: 0; }

  /* Footer stack */
  footer { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* Mobile — everything to 1 column, tighter rhythm */
@media (max-width: 640px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
  }
  .nav-logo { font-size: 13px; gap: 8px; }
  .nav-logo-mark { width: 20px; height: 20px; }

  section { padding: 56px 20px; scroll-margin-top: 72px; }
  .cta-section { padding: 64px 20px; }
  footer { padding: 28px 20px; gap: 16px; }

  /* Hero */
  .hero { padding: 88px 20px 40px; gap: 28px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    text-align: center;
    padding: 16px 24px;
    width: 100%;
  }

  /* Headings */
  h2 { margin-bottom: 36px; }

  /* All grids to 1 col */
  .process-steps,
  .usecases-grid,
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-step,
  .usecase-item,
  .tools-category {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .process-step:first-child,
  .usecase-item:first-child,
  .tools-category:first-child { padding-top: 4px; }
  .process-step:last-child,
  .usecase-item:last-child,
  .tools-category:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
  .usecases-grid { border-top: 1px solid var(--border); padding-top: 4px; }
  .tools-grid { border-top: 1px solid var(--border); padding-top: 4px; }

  /* Friction typography */
  .friction-left { padding-bottom: 24px; margin-bottom: 24px; }
  .friction-list li { padding: 16px 0; font-size: 15px; }
  .friction-statement { font-size: 22px; margin-bottom: 20px; }
  .friction-note { font-size: 14px; padding-left: 16px; }

  /* Pricing */
  .pricing-card { padding: 28px 22px; }
  .pricing-features li { font-size: 14px; }
  .btn-card { padding: 12px 16px; }

  /* Step + use case typography */
  .step-num { margin-bottom: 16px; }
  .step-title { font-size: 20px; }
  .step-desc { font-size: 14px; }
  .usecase-title { font-size: 17px; }
  .usecase-desc { font-size: 14px; }

  /* About */
  .about-text { font-size: 15px; margin-bottom: 28px; line-height: 1.7; }
  .about-values { gap: 8px; }
  .value-tag { font-size: 10px; padding: 5px 12px; }

  /* Marquee */
  .marquee-section { padding: 28px 0; }
  .marquee-label { margin-bottom: 16px; font-size: 10px; }
  .marquee-track { gap: 32px; animation-duration: 28s; }
  .marquee-item { font-size: 12px; }
  .marquee-item img { width: 16px; height: 16px; }

  /* CTA */
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost {
    text-align: center;
    padding: 16px 24px;
    width: 100%;
  }
  .cta-section::before { width: 420px; height: 420px; }
  .cta-section p { font-size: 15px; margin-bottom: 32px; }

  /* Footer */
  .footer-meta { font-size: 11px; }

  /* Tweaks panel */
  #tweaks-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
    max-width: 300px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  nav { padding: 0 16px; }
  section { padding: 48px 16px; }
  .cta-section { padding: 56px 16px; }
  footer { padding: 24px 16px; }
  .hero { padding: 80px 16px 32px; }
  .nav-logo { font-size: 12px; }
  .nav-logo-mark { width: 18px; height: 18px; }
  h2 { margin-bottom: 32px; }
  .friction-list li { font-size: 14px; }
  .pricing-price { font-size: 20px; }
}
