/* The Daily Rip — landing page CSS.
   No build step. One file. Animations + phone mockup + marquee +
   reveal-on-scroll. Editorial-finance dark aesthetic with depth.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #08090C;
  --surface: #11131A;
  --surface-2: #181A22;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --ink: #F4F4F0;
  --ink-muted: #B0B0BC;
  --muted: #7A7A88;
  --muted-deep: #4A4A55;
  --accent: #E3350D;
  --accent-2: #FFCB05;
  --accent-3: #3D7DCA;
  --gain: #4FB050;
  --gain-glow: rgba(79,176,80,0.35);
  --loss: #C2241B;
  --loss-glow: rgba(194,36,27,0.35);
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --grad: linear-gradient(135deg, #FFCB05 0%, #E3350D 50%, #B11D02 100%);
  --grad-cool: linear-gradient(135deg, #3D7DCA 0%, #185FA5 100%);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
  --shadow-2: 0 20px 60px rgba(0,0,0,0.7);
}

@font-face {
  font-family: 'Fraunces';
  font-weight: 500 900;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/fraunces/v33/6NUu8FuAQwzPq67opaLJ5JE5tigVxc1B.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/jetbrainsmono/v20/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjNQ.woff2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s, opacity .2s;
}
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

/* ═════════════════ Animated background ═════════════════ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 50%, transparent 100%);
}
.bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 30s ease-in-out infinite alternate;
}
.bg-glow-1 {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(227,53,13,0.35), transparent 60%);
}
.bg-glow-2 {
  top: 30%;
  right: -300px;
  background: radial-gradient(circle, rgba(61,125,202,0.28), transparent 60%);
  animation-delay: -15s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, -40px) scale(1.1); }
  100% { transform: translate(-60px, 80px) scale(0.95); }
}

/* ═════════════════ Nav ═════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,9,12,0.7);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--grad);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(227,53,13,0.5);
}
.brand-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.brand-text.small { font-size: 11px; letter-spacing: 2px; }
.nav nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}
.nav nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #0a0a0a !important;
  transition: all .2s;
  box-shadow: 0 0 0 1px rgba(255,203,5,0.0), 0 0 20px rgba(227,53,13,0.0);
}
.nav-cta:hover {
  box-shadow: 0 0 0 1px rgba(255,203,5,0.4), 0 0 24px rgba(227,53,13,0.5);
  transform: translateY(-1px);
}

/* ═════════════════ Common ═════════════════ */
main { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
}
.section-lede {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-muted);
  max-width: 620px;
  line-height: 1.55;
}
.grad-text {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.muted { color: var(--muted); }
.muted-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.gain { color: var(--gain); }
.loss { color: var(--loss); }

/* CTA buttons */
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  border: 1px solid var(--line-strong);
}
.cta.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a !important;
  box-shadow: 0 0 24px rgba(227,53,13,0.35);
}
.cta.primary:hover {
  background: #FF4517;
  border-color: #FF4517;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(227,53,13,0.55);
}
.cta.ghost { color: var(--ink-muted); }
.cta.ghost:hover { color: var(--ink); border-color: var(--accent); }

/* ═════════════════ HERO ═════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 60px;
  min-height: 80vh;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gain);
  box-shadow: 0 0 12px var(--gain-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═════════════════ Phone mockup ═════════════════ */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  animation: float-phone 8s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.phone {
  position: relative;
  width: 320px;
  z-index: 2;
}
.phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.7), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.phone-frame {
  position: relative;
  background: #1a1a1f;
  border-radius: 38px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 2px rgba(0,0,0,0.4),
    var(--shadow-2);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  background: #0a0a0a;
  border-radius: 28px;
  padding: 20px 14px 18px;
  height: 620px;
  overflow: hidden;
  position: relative;
}

/* App UI inside the phone */
.app-statusbar {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  margin-top: 4px;
  padding: 0 8px;
}
.app-statusbar .sb-icons { font-size: 9px; letter-spacing: 1px; opacity: 0.7; }
.app-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 0 4px;
}
.app-card-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}
.app-card-thumb {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.app-card-meta { display: flex; flex-direction: column; gap: 4px; }
.app-set {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.app-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.app-grade-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  background: rgba(227,53,13,0.15);
  color: var(--accent);
  border: 1px solid rgba(227,53,13,0.4);
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 4px;
}
.app-price {
  margin-bottom: 16px;
  padding: 0 4px;
}
.app-price-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.app-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.app-price-row strong {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.app-delta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.app-price-meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-deep);
  letter-spacing: 0.3px;
}
.app-chart {
  position: relative;
  height: 130px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.chart-svg { width: 100%; height: 100px; }
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 2.4s ease-out 0.4s forwards;
}
.chart-area {
  opacity: 0;
  animation: fade-fill 1s ease-out 1.6s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-fill { to { opacity: 1; } }
.dot-pulse {
  animation: pulse-ring 2s ease-out infinite;
  transform-origin: 320px 15px;
}
@keyframes pulse-ring {
  0%   { r: 4; opacity: 0.6; }
  100% { r: 12; opacity: 0; }
}
.chart-vols {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 26px;
  gap: 2px;
  margin-top: 4px;
}
.chart-vols span {
  flex: 1;
  background: rgba(181,212,244,0.55);
  border-radius: 1px;
  min-height: 2px;
  animation: rise 0.8s ease-out backwards;
}
.chart-vols span:nth-child(1) { animation-delay: 0.05s; }
.chart-vols span:nth-child(2) { animation-delay: 0.1s; }
.chart-vols span:nth-child(3) { animation-delay: 0.15s; }
.chart-vols span:nth-child(4) { animation-delay: 0.2s; }
.chart-vols span:nth-child(5) { animation-delay: 0.25s; }
.chart-vols span:nth-child(6) { animation-delay: 0.3s; }
.chart-vols span:nth-child(7) { animation-delay: 0.35s; }
.chart-vols span:nth-child(8) { animation-delay: 0.4s; }
.chart-vols span:nth-child(9) { animation-delay: 0.45s; }
.chart-vols span:nth-child(10) { animation-delay: 0.5s; }
.chart-vols span:nth-child(11) { animation-delay: 0.55s; }
.chart-vols span:nth-child(12) { animation-delay: 0.6s; }
.chart-vols span:nth-child(13) { animation-delay: 0.65s; }
.chart-vols span:nth-child(14) { animation-delay: 0.7s; }
.chart-vols span:nth-child(15) { animation-delay: 0.75s; }
@keyframes rise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.app-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.app-tabs span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: 4px;
}
.app-tabs span.active {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
}
.app-actions {
  display: flex;
  gap: 8px;
  padding: 0 4px;
}
.btn-primary, .btn-secondary {
  flex: 1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary {
  flex: 1.4;
  background: var(--accent);
  color: #0a0a0a;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Floating chips around the phone */
.float-chip {
  position: absolute;
  background: rgba(17,19,26,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: float-chip 10s ease-in-out infinite;
}
.chip-eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.float-chip strong {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.chip-1 {
  top: 60px;
  left: -110px;
  animation-delay: 0s;
}
.chip-2 {
  bottom: 100px;
  right: -90px;
  animation-delay: -3s;
}
.chip-3 {
  top: 40%;
  right: -70px;
  flex-direction: column;
  align-items: center;
  animation-delay: -6s;
}
.chip-3 strong {
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 600;
}
.chip-3 span {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.chip-gain { border-color: rgba(79,176,80,0.3); }
.chip-gain strong { color: var(--gain); }
@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ═════════════════ Marquee ═════════════════ */
.marquee-wrap {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.marquee-wrap .section-eyebrow { padding: 0 32px; max-width: 1200px; margin: 0 auto 24px; }
.marquee {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.ticker { display: flex; gap: 18px; padding: 0 9px; }
.card-tile {
  display: flex;
  flex-direction: column;
  width: 130px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}
.card-tile img {
  width: 130px;
  height: 180px;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 6px;
}
.card-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px 0;
}
.card-tile-meta span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tile-meta strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═════════════════ Features grid ═════════════════ */
.features-wrap {
  padding: 100px 0 60px;
}
.features-wrap .section-h { max-width: 800px; margin-bottom: 60px; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), rgba(227,53,13,0.06), transparent 40%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.feat:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.feat:hover::before { opacity: 1; }
.feat-art {
  height: 130px;
  margin: -8px -8px 16px -8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line);
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-art-chart svg { width: 100%; height: 100%; }
.mini-portfolio { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.mp-row { display: flex; align-items: center; gap: 10px; }
.mp-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--accent-3), rgba(61,125,202,0.3));
  border-radius: 2px;
}
.mp-row strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
}
.mini-feed { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.mf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mf-row:last-child { border-bottom: 0; }
.mf-thumb {
  width: 18px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), #B11D02);
  border-radius: 2px;
  flex-shrink: 0;
}
.mf-name {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-row strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.bell-wrap { position: relative; }
.bell-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring-2 2.5s ease-out infinite;
}
@keyframes pulse-ring-2 {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
.ai-bubbles { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.ai-bubble {
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 90%;
}
.ai-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #0a0a0a;
  border-bottom-right-radius: 3px;
}
.ai-bubble.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  color: var(--ink-muted);
}
.ai-bubble.ai strong { color: var(--ink); }
.edit-art {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
}
.edit-art .serif {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.edit-art .mono {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gain);
  letter-spacing: -0.01em;
}
.feat .feat-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.feat h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.feat p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ═════════════════ Triptych ═════════════════ */
.triptych-wrap {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.triptych-text { max-width: 600px; margin: 0 auto 60px; text-align: center; }
.triptych-text .section-eyebrow { display: block; }
.triptych-text .section-lede { margin: 0 auto; }
.triptych {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  perspective: 1200px;
}
.phone-sm {
  width: 240px;
  transition: transform .4s ease;
}
.phone-sm .phone-screen {
  height: 460px;
  padding: 16px 12px;
}
.phone-sm .phone-notch {
  width: 70px;
  height: 18px;
}
.phone-tilt-l { transform: rotate(-6deg) translateY(20px); }
.phone-tilt-c { transform: scale(1.06); z-index: 2; }
.phone-tilt-r { transform: rotate(6deg) translateY(20px); }
.phone-sm:hover { transform: translateY(-8px) scale(1.04); z-index: 5; }
.mock-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 6px;
}
.mock-home h4, .mock-portfolio h4, .mock-sales h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock-home, .mock-portfolio, .mock-sales {
  padding-top: 18px;
}
.mock-body {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.mock-mini-cards { display: flex; gap: 8px; }
.mc-card {
  flex: 1;
  height: 80px;
  background: linear-gradient(180deg, var(--accent), #B11D02);
  border-radius: 5px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.mc-card:nth-child(2) { background: linear-gradient(180deg, #3D7DCA, #185FA5); }
.mc-card:nth-child(3) { background: linear-gradient(180deg, #4FB050, #2C6F30); }
.mock-delta {
  font-family: var(--mono);
  font-size: 11px;
  margin-bottom: 16px;
}
.mock-cells {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.mock-cell {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-cell > span:first-child {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.mock-cell strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.mock-cell > span:last-child {
  font-family: var(--mono);
  font-size: 8px;
}
.mock-rows { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mock-row:last-child { border-bottom: 0; }
.mr-thumb {
  width: 14px;
  height: 20px;
  background: var(--surface-2);
  border-radius: 2px;
  flex-shrink: 0;
}
.mr-name {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-row strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

/* ═════════════════ Pricing ═════════════════ */
.pricing-wrap {
  padding: 100px 0 80px;
  border-top: 1px solid var(--line);
}
.pricing-wrap .section-eyebrow,
.pricing-wrap .section-h { text-align: center; }
.pricing-wrap .section-h { margin: 0 auto 60px; max-width: 720px; }
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all .3s;
}
.tier:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.tier.featured {
  border-color: rgba(227,53,13,0.4);
  background: linear-gradient(180deg, rgba(227,53,13,0.06), var(--surface));
  box-shadow: 0 0 0 1px rgba(227,53,13,0.2), 0 20px 60px rgba(0,0,0,0.5);
}
.tier.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: var(--grad);
  opacity: 0.18;
  z-index: -1;
  filter: blur(20px);
}
.ribbon {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.tier h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.tier-price {
  margin-bottom: 4px;
}
.tier-price strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-price span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.tier-meta {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tier ul {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.tier li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tier li::before {
  content: "✓";
  color: var(--gain);
  font-weight: 700;
}
.pricing-fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted-deep);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═════════════════ CTA strip ═════════════════ */
.cta-strip {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-strip-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cta-strip .section-h { margin-bottom: 24px; }
.cta-strip .section-lede { margin: 0 auto 40px; }
.cta-strip .cta { margin: 0 auto; }

/* ═════════════════ Footer ═════════════════ */
footer {
  padding: 60px 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-grid p { margin: 0; }
.footer-grid > div:first-child p { margin-top: 8px; }
.footer-grid a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  transition: color .15s;
}
.footer-grid a:hover { color: var(--ink); }
.footer-fine {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-deep);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  letter-spacing: 0.2px;
}

/* ═════════════════ Reveal animations ═════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ═════════════════ Long-form pages ═════════════════ */
.longform {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 100px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-muted);
}
.longform h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 8px;
}
.longform h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin-top: 44px;
  margin-bottom: 12px;
}
.longform h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 8px;
}
.longform p { margin: 0 0 16px 0; }
.longform ul { padding-left: 20px; }
.longform li { margin-bottom: 8px; }
.longform a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}
.longform table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: var(--mono);
  font-size: 13px;
}
.longform th, .longform td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.longform th { color: var(--muted); font-weight: 600; }
.longform code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
}
.longform .effective {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.longform strong { color: var(--ink); font-weight: 600; }

/* ═════════════════ Mobile ═════════════════ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 80px; padding: 56px 0 40px; min-height: auto; }
  .hero-phone { order: -1; }
  .float-chip { display: none; }
  .nav nav { display: none; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-cta { padding: 8px 14px; font-size: 10px; }
  main { padding: 0 18px; }
  .hero h1 { font-size: 38px; }
  .hero-stats { gap: 20px; padding-top: 24px; margin-top: 32px; }
  .hero-stats > div { flex: 1; min-width: 0; }
  .hero-stats strong { font-size: 22px; }
  .features-wrap, .pricing-wrap, .cta-strip { padding: 60px 0; }
  .triptych-wrap { padding: 60px 0; }
  .triptych { gap: 16px; }
  .phone-sm { width: 200px; }
  .phone-sm .phone-screen { height: 380px; }
  .phone-tilt-l { display: none; }
  .phone-tilt-r { display: none; }
  .phone-tilt-c { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .longform { padding: 40px 18px 80px; }
  .marquee-wrap .section-eyebrow { padding: 0 18px; }
  .card-tile { width: 110px; }
  .card-tile img { width: 110px; height: 152px; }
  .phone { width: 280px; }
  .phone-screen { height: 540px; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .bg-glow, .hero-phone, .float-chip, .badge-dot,
  .marquee-track, .chart-line, .chart-area, .chart-vols span,
  .dot-pulse, .bell-pulse {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
