/* ============================================
   CoPilot Landing Page v2
   Copy the Smart Money
   ============================================ */

:root {
  --paper: #F3EFE8;
  --ink: #0D261F;
  --forest: #1A3C33;
  --clay: #C9A690;
  --stone: #D0DCD9;
  --highlight: #D4E157;
  --positive: #2E7D32;
  --negative: #D64045;

  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1200px;
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Honeypot - hidden from humans, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--highlight); color: var(--ink); }

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

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

/* Shared Colors */
.bg-forest { background: var(--forest); color: #fff; }
.bg-clay { background: var(--clay); color: var(--ink); }
.bg-highlight { background: var(--highlight); color: var(--ink); }
.bg-highlight-dark { background: #9E9D24; color: #fff; }
.bg-stone { background: var(--stone); color: var(--ink); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-forest-light { background: rgba(26, 60, 51, 0.08); color: var(--forest); }
.bg-clay-light { background: rgba(201, 166, 144, 0.15); color: #8B6914; }
.bg-highlight-light { background: rgba(212, 225, 87, 0.2); color: #5D6016; }
.positive { color: var(--positive); }

/* ============================================
   Navigation (Floating Pill)
   ============================================ */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  max-width: 520px;
  padding: 0 24px;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: rgba(243, 239, 232, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(13, 38, 31, 0.1);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(13, 38, 31, 0.05);
  transition: box-shadow var(--transition-medium);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(13, 38, 31, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.nav-cta:hover {
  transform: scale(1.05);
  background: rgba(13, 38, 31, 0.9);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 140px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "copy visual"
    "actions visual";
  gap: 0 48px;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
  max-width: 540px;
  align-self: end;
}

.hero-actions {
  grid-area: actions;
  max-width: 540px;
  align-self: start;
}

.hero-visual {
  grid-area: visual;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(26, 60, 51, 0.05);
  border: 1px solid rgba(26, 60, 51, 0.1);
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(13, 38, 31, 0.6);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144;
}

.hero-headline-accent {
  font-style: italic;
  color: var(--forest);
}

.hero-subheadline {
  font-size: 18px;
  color: rgba(13, 38, 31, 0.6);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 0;
  padding-bottom: 40px;
}

/* Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-glow-wrap {
  position: relative;
}

.btn-glow {
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(212, 225, 87, 0.3), rgba(208, 220, 217, 0.5));
  border-radius: 100px;
  filter: blur(16px);
  opacity: 0.4;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn-glow-wrap:hover .btn-glow { opacity: 0.7; }

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    rgba(13, 38, 31, 0.12) 0%,
    rgba(13, 38, 31, 0.06) 40%,
    rgba(13, 38, 31, 0.10) 100%
  );
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(13, 38, 31, 0.1);
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 4px 16px rgba(13, 38, 31, 0.08),
    0 12px 40px rgba(13, 38, 31, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.12) 75%,
    transparent 100%
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(13, 38, 31, 0.18) 0%,
    rgba(13, 38, 31, 0.10) 40%,
    rgba(13, 38, 31, 0.15) 100%
  );
  border-color: rgba(13, 38, 31, 0.18);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 8px 24px rgba(13, 38, 31, 0.1),
    0 16px 48px rgba(13, 38, 31, 0.08);
  transform: translateY(-1px);
}

.btn-primary svg { transition: transform var(--transition-fast); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(13, 38, 31, 0.1);
  transition: background var(--transition-fast);
}

.btn-secondary:hover { background: rgba(208, 220, 217, 0.2); }

/* Hero CTA Expand */
.hero-cta-wrap {
  position: relative;
  display: inline-flex;
}

.hero-cta-trigger {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-form {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-wrap.expanded .hero-cta-trigger {
  opacity: 0;
  pointer-events: none;
}

.hero-cta-wrap.expanded .hero-cta-form {
  opacity: 1;
  pointer-events: auto;
}

.hero-cta-wrap.expanded {
  min-width: 340px;
}

.hero-cta-input {
  flex: 1;
  height: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 38, 31, 0.15);
  border-right: none;
  border-radius: 100px 0 0 100px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: all 0.3s ease;
}

.hero-cta-input:focus {
  background: #fff;
  border-color: rgba(13, 38, 31, 0.3);
}

.hero-cta-input::placeholder {
  color: rgba(13, 38, 31, 0.4);
}

.hero-cta-submit {
  height: 100%;
  padding: 12px 20px;
  background: var(--ink);
  border: none;
  border-radius: 0 100px 100px 0;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-cta-submit:hover {
  background: var(--forest);
}

.hero-cta-submit svg {
  transition: transform 0.3s ease;
}

.hero-cta-submit:hover svg {
  transform: translateX(3px);
}

.hero-cta-wrap.success .hero-cta-input {
  background: rgba(46, 125, 50, 0.1);
  border-color: var(--positive);
}

/* Hero Visual — Single Card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.hero-card-wrap {
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card-wrap:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.depth-portfolio {
  width: 300px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 8px 24px rgba(13, 38, 31, 0.1),
    0 32px 80px rgba(13, 38, 31, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Glitch transition for card rotation */
@keyframes glitch {
  0% { transform: translate(0); filter: blur(0); }
  15% { transform: translate(-3px, 1px) skewX(-2deg); filter: blur(1px); }
  30% { transform: translate(3px, -1px) skewX(2deg); filter: blur(2px); }
  45% { transform: translate(-2px, 2px) skewX(-1deg); filter: blur(1px); }
  60% { transform: translate(2px, -2px) skewX(1deg); filter: blur(0); }
  75% { transform: translate(-1px, 1px); filter: blur(0); }
  100% { transform: translate(0); filter: blur(0); }
}

.card-transitioning .dp-name,
.card-transitioning .dp-tag,
.card-transitioning .dp-copiers,
.card-transitioning .dp-return-badge,
.card-transitioning .dp-avatar-img,
.card-transitioning .dp-holding {
  animation: glitch 0.15s ease-out;
}

.dp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.dp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dp-avatar svg { color: var(--paper); }

.dp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dp-avatar-initials {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
}

.dp-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.dp-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(243, 239, 232, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.dp-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.dp-copiers {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--highlight);
  text-shadow:
    0 0 6px rgba(212, 225, 87, 0.4),
    0 0 16px rgba(212, 225, 87, 0.2);
}

.dp-return-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dp-holdings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.dp-holding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dp-ticker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.05em;
}

.dp-holding-return {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.dp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--highlight);
  color: var(--ink);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
}

.bg-positive { background: var(--positive); }

/* ============================================
   Broker Ticker
   ============================================ */
.broker-ticker {
  background: var(--forest);
  color: var(--paper);
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(13, 38, 31, 0.05);
  border-bottom: 1px solid rgba(13, 38, 31, 0.05);
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  opacity: 0.5;
  margin-bottom: 24px;
}

.ticker-track {
  position: relative;
  display: flex;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  gap: 64px;
  padding: 0 32px;
  animation: ticker 30s linear infinite;
}

.ticker-content span {
  font-family: var(--font-heading);
  font-size: 24px;
  opacity: 0.7;
  font-variation-settings: 'opsz' 144;
}

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

/* ============================================
   Section Headers
   ============================================ */
.section-header { text-align: center; margin-bottom: 64px; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144;
}

.section-title-left { text-align: left; }

.section-subtitle {
  font-size: 18px;
  color: rgba(13, 38, 31, 0.6);
}

/* ============================================
   How It Works (Bento Grid)
   ============================================ */
.how-it-works { padding: 120px 0; }

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  grid-auto-rows: minmax(300px, auto);
}

.bento-card {
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.bento-wide { grid-column: 1; }
.bento-narrow { grid-column: 2; }
.bento-full { grid-column: 1 / -1; }

.bento-stone { background: rgba(208, 220, 217, 0.2); }
.bento-stone:hover { background: rgba(208, 220, 217, 0.3); }
.bento-white {
  background: #fff;
  border: 1px solid rgba(13, 38, 31, 0.05);
}
.bento-white:hover { box-shadow: 0 16px 48px rgba(13, 38, 31, 0.06); }
.bento-highlight { background: rgba(212, 225, 87, 0.2); }

.bento-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  margin-bottom: 24px;
}

.bento-number-forest {
  background: var(--forest);
  color: var(--paper);
}

.bento-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bento-description {
  font-size: 16px;
  color: rgba(13, 38, 31, 0.6);
  max-width: 400px;
  line-height: 1.6;
}

.bento-description-sm { font-size: 16px; }

/* Bento Step 1: Strategy Filter Card */
.bento-wide { display: flex; align-items: center; }
.bento-text { flex: 1; position: relative; z-index: 2; }

.bento-visual-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(25%) rotate(3deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-wide:hover .bento-visual-right {
  transform: translateY(-50%) translateX(0) rotate(0deg);
}

/* Horizontal scrollable strategies inside bento */
.bento-strategies-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 16px;
  margin: 0 -8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bento-strategies-scroll::-webkit-scrollbar {
  display: none;
}

.bento-strategies-scroll .strategy-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  min-width: 280px;
}

.strategy-filter-card {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(13, 38, 31, 0.08);
  padding: 16px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(13, 38, 31, 0.05);
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(13, 38, 31, 0.4);
}

.filter-dots { display: flex; gap: 4px; }
.dot-red { width: 8px; height: 8px; border-radius: 50%; background: var(--negative); }
.dot-yellow { width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }

.filter-rows { display: flex; flex-direction: column; gap: 8px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  background: var(--paper);
  border-radius: 8px;
}

.filter-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.filter-bar {
  height: 8px;
  background: rgba(13, 38, 31, 0.1);
  border-radius: 100px;
}

/* Bento Step 2: Connect Broker Layout */
.bento-step2-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
}

.bento-step2-text {
  flex: 0 1 400px;
}

.bento-step2-text .bento-title {
  margin-bottom: 16px;
}

.bento-step2-text .bento-description {
  margin: 0;
}

.bento-broker-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex-shrink: 0;
  margin-right: 60px;
}

.broker-icon-box {
  width: 160px;
  height: 160px;
  background: transparent;
  border: 1.5px solid rgba(13, 38, 31, 0.12);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0.8;
  transition: opacity var(--transition-medium);
  overflow: hidden;
}

.broker-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.broker-icon-box:has(.broker-logo-dark) {
  background: #000;
  border-color: rgba(13, 38, 31, 0.12);
  padding: 8px;
}

.bento-white:hover .broker-icon-box { opacity: 1; }

.bento-broker-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 5;
  pointer-events: none;
}

/* Bento Step 3: Portfolio Card */
.bento-step3-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.bento-portfolio-card {
  flex: 1;
  max-width: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 38, 31, 0.06);
  border: 1px solid rgba(13, 38, 31, 0.05);
  padding: 24px;
  transition: transform var(--transition-medium);
}

.bento-narrow:hover .bento-portfolio-card { transform: scale(1.02); }

.portfolio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.portfolio-card-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.portfolio-card-value { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--ink); }

.portfolio-card-badge {
  padding: 4px 8px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--positive);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}

.portfolio-card-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 128px;
  width: 100%;
}

.pchart-bar {
  flex: 1;
  background: rgba(208, 220, 217, 0.3);
  border-radius: 4px 4px 0 0;
  transition: background var(--transition-medium);
  position: relative;
}

.pchart-bar:hover { background: var(--forest); }
.pchart-bar-active { background: var(--forest); }

.pchart-now {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============================================
   Trending Strategies
   ============================================ */
.strategies {
  padding: 120px 0;
  background: #fff;
  border-top: 1px solid rgba(13, 38, 31, 0.05);
  border-bottom: 1px solid rgba(13, 38, 31, 0.05);
}

.strategies-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.strategies-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(13, 38, 31, 0.4);
  margin-bottom: 4px;
}

.strategies-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.strategies-view-all:hover { color: var(--forest); }
.strategies-view-all svg { transition: transform var(--transition-fast); }
.strategies-view-all:hover svg { transform: translateX(4px); }

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

.strategy-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 4px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13, 38, 31, 0.06);
}

.strategy-card-inner {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(13, 38, 31, 0.05);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.strategy-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.strategy-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strategy-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
}

.strategy-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
}

.strategy-category {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(13, 38, 31, 0.4);
  margin-top: 2px;
}

.strategy-bookmark {
  padding: 8px;
  background: rgba(208, 220, 217, 0.2);
  border-radius: 8px;
  color: rgba(13, 38, 31, 0.6);
}

.strategy-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.strategy-stat {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 0;
  border-bottom: 1px solid rgba(13, 38, 31, 0.05);
}

.strategy-stat:last-child { border-bottom: none; }

.strategy-stat-label {
  font-size: 14px;
  color: rgba(13, 38, 31, 0.6);
}

.strategy-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.strategy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(13, 38, 31, 0.1);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.strategy-btn:hover { background: rgba(208, 220, 217, 0.2); }

.strategy-btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.strategy-btn-primary:hover { background: rgba(13, 38, 31, 0.9); }

/* ============================================
   Trust Section
   ============================================ */
.trust-section { padding: 48px 0 64px; }

.trust-card {
  background: var(--ink);
  border-radius: 28px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.trust-blur {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: rgba(26, 60, 51, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  transform: translate(50%, -50%);
  pointer-events: none;
}

.trust-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.trust-headline {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.trust-description {
  font-size: 15px;
  color: rgba(243, 239, 232, 0.6);
  max-width: 480px;
  line-height: 1.7;
}

.trust-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

.trust-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.trust-check svg {
  width: 12px;
  height: 12px;
}

.trust-feature span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--paper);
}

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--paper); }

.footer-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.footer-cta-headline {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144;
}

.waitlist-form {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.waitlist-input {
  width: 320px;
  padding: 16px 24px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid rgba(13, 38, 31, 0.1);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.waitlist-input::placeholder { color: rgba(13, 38, 31, 0.35); }
.waitlist-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13, 38, 31, 0.08);
}

.waitlist-btn {
  padding: 16px 32px;
  background: var(--forest);
  color: var(--paper);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.waitlist-btn:hover { background: rgba(26, 60, 51, 0.9); }

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--positive);
}

.waitlist-success svg { flex-shrink: 0; }

.waitlist-error {
  display: none;
  font-size: 14px;
  color: var(--negative);
  margin-bottom: 8px;
}

.waitlist-form.success ~ .waitlist-success { display: flex; }
.waitlist-form.success { opacity: 0.5; pointer-events: none; }
.waitlist-form.error ~ .waitlist-error { display: block; }

.footer-cta-note {
  font-size: 14px;
  color: rgba(13, 38, 31, 0.4);
}

.footer-bar {
  border-top: 1px solid rgba(13, 38, 31, 0.05);
  background: rgba(208, 220, 217, 0.2);
  padding: 48px 0;
}

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

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(13, 38, 31, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(13, 38, 31, 0.3);
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger hero elements */
.hero-copy[data-animate] { transition-delay: 0s; }
.hero-visual[data-animate] { transition-delay: 0.2s; }
.hero-actions[data-animate] { transition-delay: 0.1s; }

/* ============================================
   Responsive
   ============================================ */

/* Safe area support for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .footer-bar {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }

  .nav {
    top: calc(24px + env(safe-area-inset-top));
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "actions";
    gap: 32px;
  }

  .hero-copy { max-width: 600px; align-self: auto; }
  .hero-actions { max-width: 600px; align-self: auto; }

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

  .depth-portfolio { width: 280px; padding: 24px; }

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

  .bento-wide, .bento-narrow, .bento-full {
    grid-column: auto;
  }

  .bento-visual-right {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 24px;
  }

  .bento-wide:hover .bento-visual-right {
    transform: none;
  }

  .bento-wide { flex-direction: column; }

  .bento-step3-layout { flex-direction: column; gap: 32px; }

  .strategies-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .ticker-content { gap: 48px; }
  .ticker-content span { font-size: 20px; }
}

@media (max-width: 768px) {
  .nav { top: 16px; max-width: 100%; }
  .nav-links { display: none; }
  .nav-pill { padding: 0 12px 0 16px; }

  /* Larger touch target for mobile CTA */
  .nav-cta {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero { padding: 100px 0 48px; }

  .hero-headline { font-size: 44px; line-height: 1.05; }
  .hero-subheadline { font-size: 16px; padding-bottom: 0; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .hero-cta-wrap {
    width: auto;
    margin: 0 auto;
  }

  .hero-cta-wrap.expanded {
    min-width: unset;
    width: 280px;
  }

  .hero-cta-trigger {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-cta-input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 8px 12px;
  }

  .hero-cta-submit {
    padding: 8px 14px;
  }

  .depth-portfolio { width: 280px; padding: 24px; border-radius: 20px; }
  .dp-name { font-size: 15px; }
  .dp-holding { padding: 10px 12px; }
  .dp-ticker { font-size: 12px; }
  .dp-holding-return { font-size: 12px; }
  .dp-cta { padding: 12px; font-size: 13px; }

  .section-header { margin-bottom: 40px; }

  .how-it-works { padding: 80px 0; }
  .strategies { padding: 80px 0; }

  .bento-card { padding: 28px; border-radius: 24px; }
  .bento-title { font-size: 24px; }

  .bento-step2-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .bento-step2-text {
    max-width: 100%;
    flex: unset;
  }

  .bento-broker-icons {
    width: 100%;
    margin-right: 0;
  }

  .broker-icon-box {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    padding: 20px;
  }
  .bento-number { width: 40px; height: 40px; font-size: 16px; }

  .bento-portfolio-card { padding: 20px; }
  .portfolio-card-chart { height: 100px; gap: 6px; }
  .portfolio-card-value { font-size: 20px; }

  .strategy-filter-card { width: 100%; max-width: 280px; }

  .trust-section { padding: 36px 0 48px; }
  .trust-card { padding: 28px; border-radius: 24px; }
  .trust-headline { font-size: 24px; }
  .trust-description { font-size: 14px; }

  .ticker-content { gap: 36px; }
  .ticker-content span { font-size: 18px; }
  .broker-ticker { padding: 32px 0; }

  .waitlist-form { flex-direction: column; gap: 12px; }
  .waitlist-input { width: 100%; }
  .waitlist-btn { width: 100%; min-height: 52px; }

  .footer-cta { padding: 60px 24px; }

  .footer-bar-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .strategies-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { padding: 90px 0 40px; }
  .hero-headline { font-size: 36px; }
  .hero-badge { margin-bottom: 24px; }
  .hero-subheadline { font-size: 15px; }

  .depth-portfolio { width: 260px; padding: 20px; border-radius: 18px; }
  .dp-avatar { width: 38px; height: 38px; }
  .dp-avatar-initials { font-size: 13px; }
  .dp-name { font-size: 14px; }
  .dp-tag { font-size: 9px; }
  .dp-holding { padding: 9px 11px; border-radius: 10px; }
  .dp-ticker { font-size: 11px; }
  .dp-holding-return { font-size: 11px; }
  .dp-cta { padding: 11px; font-size: 12px; border-radius: 12px; }
  .dp-holdings { gap: 6px; margin-bottom: 18px; }

  .bento-card { padding: 24px; border-radius: 20px; }
  .bento-title { font-size: 22px; }
  .bento-description { font-size: 14px; }

  .portfolio-card-chart { height: 80px; gap: 4px; }
  .pchart-now { font-size: 9px; padding: 3px 6px; top: -24px; }

  .bento-strategies-scroll .strategy-card { flex: 0 0 260px; min-width: 260px; }
  .strategy-card-inner { padding: 20px; }
  .strategy-stat-value { font-size: 16px; }
  .strategy-stat-label { font-size: 13px; }

  .trust-card { padding: 24px; border-radius: 20px; }
  .trust-headline { font-size: 22px; }
  .trust-description { font-size: 14px; }
  .trust-feature span { font-size: 11px; }

  .footer-cta { padding: 48px 16px; }
  .footer-cta-headline { font-size: 32px; }
  .footer-cta-note { font-size: 13px; }

  .footer-bar { padding: 32px 0; }
  .footer-links { gap: 16px; }
  .footer-links a { font-size: 13px; }
  .footer-copy { font-size: 10px; }

  .ticker-content { gap: 28px; padding: 0 16px; }
  .ticker-content span { font-size: 16px; }
  .ticker-label { margin-bottom: 16px; }
}

/* Extra small devices (320px) */
@media (max-width: 360px) {
  .hero-headline { font-size: 32px; }
  .hero-subheadline { font-size: 14px; }

  .depth-portfolio { width: 220px; padding: 16px; border-radius: 16px; }
  .dp-avatar { width: 34px; height: 34px; }
  .dp-avatar-initials { font-size: 12px; }
  .dp-holdings { gap: 4px; margin-bottom: 14px; }
  .dp-cta { padding: 10px; font-size: 11px; border-radius: 10px; }

  .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 15px; }

  .bento-card { padding: 20px; }
  .bento-title { font-size: 20px; }

  .trust-card { padding: 20px; }
  .trust-headline { font-size: 22px; }

  .footer-cta-headline { font-size: 28px; }
}
