/* ═══════════════════════════════════════════
   INFINITE Protocol — Roadmap Styles
   Page-specific CSS for site/roadmap.html
   Requires: shared.css loaded first
   ═══════════════════════════════════════════ */

/* ─── Page Overrides ─── */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-conic-gradient(rgba(255,255,255,0.008) 0%, transparent 0.5%, transparent 1%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

html { scroll-behavior: auto; }
[id] { scroll-margin-top: 80px; }

.section-label {
  letter-spacing: 4px;
  margin-bottom: 24px;
  gap: 12px;
}

.section-label::before { width: 40px; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0; right: 0;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ─── Background Canvas ─── */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ─── Roadmap Hero ─── */
.roadmap-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(200, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.04) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.roadmap-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.roadmap-hero-content > * {
  opacity: 0;
  animation: heroEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.roadmap-hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.roadmap-hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.roadmap-hero-content > *:nth-child(3) { animation-delay: 0.55s; }
.roadmap-hero-content > *:nth-child(4) { animation-delay: 0.75s; }

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.roadmap-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.roadmap-headline .accent {
  color: var(--accent);
  font-style: italic;
  text-shadow: 0 0 60px rgba(200, 255, 0, 0.25), 0 0 120px rgba(200, 255, 0, 0.1);
}

.roadmap-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

/* ─── Progress Bar ─── */
.roadmap-progress-bar {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--accent), rgba(200, 255, 0, 0.4));
  border-radius: 2px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(200, 255, 0, 0.6), 0 0 24px rgba(200, 255, 0, 0.3);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.progress-label.active { color: var(--accent); }

/* ─── Timeline ─── */
.timeline-section {
  padding: 80px 40px 140px;
  position: relative;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

.timeline-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

/* Timeline vertical line */
.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), rgba(200, 255, 0, 0.2));
  transition: height 0.1s linear;
}

/* ─── Phase Block ─── */
.timeline-phase {
  position: relative;
  padding-bottom: 80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-phase.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-phase:last-child { padding-bottom: 0; }

/* Phase marker dot */
.phase-marker {
  position: absolute;
  left: -52px;
  top: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--border);
  position: relative;
  z-index: 2;
  transition: all 0.4s;
}

.phase-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.5);
}

.timeline-phase.completed .phase-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.phase-pulse {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.phase-pulse.active {
  border-color: rgba(200, 255, 0, 0.3);
  animation: phase-ring 2.5s ease-out infinite;
}

@keyframes phase-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Phase content */
.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.phase-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.phase-badge.completed {
  background: rgba(40, 200, 64, 0.1);
  color: var(--green);
  border: 1px solid rgba(40, 200, 64, 0.2);
}

.phase-badge.active {
  background: rgba(200, 255, 0, 0.08);
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.2);
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 0, 0); }
  50% { box-shadow: 0 0 12px rgba(200, 255, 0, 0.15); }
}

.phase-badge.upcoming {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.phase-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.phase-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.phase-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 600px;
}

/* ─── Phase Items ─── */
.phase-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phase-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  position: relative;
}

.phase-item:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
}

.phase-item.done {
  border-color: rgba(40, 200, 64, 0.15);
}

.phase-item.done:hover {
  border-color: rgba(40, 200, 64, 0.3);
}

.phase-item.active {
  border-color: rgba(200, 255, 0, 0.2);
  background: rgba(200, 255, 0, 0.03);
}

.item-check {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.item-check.dim { color: var(--text-muted); font-weight: 400; }

.item-check.blink {
  color: var(--accent);
  animation: blink-active 1.5s ease-in-out infinite;
}

@keyframes blink-active {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}

.item-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
}

.phase-item.done .item-name { color: var(--text-dim); }

.item-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* Mouse glow on phase items */
.phase-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.phase-item:hover::after { opacity: 1; }

/* ─── Code Preview ─── */
.phase-code-preview {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.phase-code-preview:hover { border-color: var(--border-light); }

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
  overflow-x: auto;
  margin: 0;
}

.code-body .kw { color: var(--accent); }
.code-body .str { color: #ff9f43; }

/* ─── Mobile App Cards ─── */
.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mobile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all 0.4s;
  position: relative;
}

.mobile-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.mobile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.mobile-card:hover::after { opacity: 1; }

/* Phone mockup */
.mobile-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 120px;
  height: 200px;
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 12px 8px;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.phone-status-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  width: 60%;
  margin: 0 auto 4px;
}

.phone-chat-line {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  width: 80%;
  animation: chat-line-fade 3s ease-in-out infinite;
}

.phone-chat-line.short { width: 50%; }
.phone-chat-line.accent { background: rgba(200, 255, 0, 0.2); width: 70%; }
.phone-chat-line.short.accent { width: 40%; }

.phone-chat-line:nth-child(2) { animation-delay: 0s; }
.phone-chat-line:nth-child(3) { animation-delay: 0.3s; }
.phone-chat-line:nth-child(4) { animation-delay: 0.6s; }
.phone-chat-line:nth-child(5) { animation-delay: 0.9s; }

@keyframes chat-line-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Seeker phone variant */
.phone-frame.seeker .phone-screen { justify-content: space-between; }

.phone-scan-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan-sweep 2.5s ease-in-out infinite;
}

@keyframes scan-sweep {
  0% { opacity: 0; transform: scaleX(0.3); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0.3); }
}

.phone-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  padding: 0 4px;
}

.phone-chart-bars .bar {
  flex: 1;
  background: var(--border-light);
  border-radius: 2px 2px 0 0;
  animation: bar-grow 2s ease-in-out infinite alternate;
}

.phone-chart-bars .bar.accent { background: rgba(200, 255, 0, 0.4); }

.phone-chart-bars .bar:nth-child(1) { animation-delay: 0s; }
.phone-chart-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.phone-chart-bars .bar:nth-child(3) { animation-delay: 0.4s; }
.phone-chart-bars .bar:nth-child(4) { animation-delay: 0.6s; }
.phone-chart-bars .bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes bar-grow {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1); }
}

.mobile-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
}

.mobile-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

.mobile-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-features span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.mobile-card:hover .mobile-features span {
  border-color: var(--border-light);
}

/* ─── Vision Section ─── */
.vision-section {
  padding: 140px 40px;
  position: relative;
  background: var(--surface);
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

.vision-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.vision-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.vision-headline .accent {
  color: var(--accent);
  font-style: italic;
  text-shadow: 0 0 60px rgba(200, 255, 0, 0.25);
}

.vision-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 64px;
}

.vision-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.vision-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
}

.vision-stat:hover {
  border-color: var(--accent);
}

.vision-stat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.vision-stat:hover::after { opacity: 1; }

.vision-stat-number {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.vision-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── CTA ─── */
.cta-section {
  padding: 140px 40px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.12) 20%, rgba(200, 255, 0, 0.3) 50%, rgba(200, 255, 0, 0.12) 80%, transparent);
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.95;
  margin-bottom: 24px;
}

.cta-section h2 .accent {
  color: var(--accent);
  font-style: italic;
}

.cta-section .cta-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-weight: 300;
}

.cta-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-compliance {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .roadmap-hero-content > * { animation: none; opacity: 1; }
  .scroll-reveal, .timeline-phase { transition: none; opacity: 1; transform: none; }
  #bgCanvas { display: none; }
  .phase-pulse.active { animation: none; }
  .phone-chat-line, .phone-chart-bars .bar, .phone-scan-line { animation: none; opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .vision-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { padding: 16px 20px; }
  .roadmap-hero { padding: 100px 20px 60px; min-height: 70vh; }
  .timeline-section { padding: 60px 20px 100px; }
  .timeline-inner { padding-left: 40px; }
  .timeline-line { left: 9px; }
  .phase-marker { left: -35px; }
  .phase-grid { grid-template-columns: 1fr; }
  .vision-section, .cta-section { padding: 90px 20px; }
  .cta-links { flex-direction: column; align-items: center; }
  footer { flex-direction: column; gap: 20px; }
  .progress-labels { gap: 4px; }
  .progress-label { font-size: 9px; }
}

@media (max-width: 480px) {
  nav { padding: 12px 16px; }
  .roadmap-hero { padding: 80px 16px 40px; }
  .roadmap-headline { letter-spacing: -1px; }
  .timeline-section { padding: 40px 16px 80px; }
  .timeline-inner { padding-left: 32px; }
  .timeline-line { left: 5px; }
  .phase-marker { left: -30px; }
  .phase-marker, .phase-dot { width: 10px; height: 10px; }
  .phase-dot { width: 8px; height: 8px; }
  .phase-title { font-size: 28px; }
  .phase-item { padding: 10px 14px; gap: 10px; }
  .item-name { font-size: 12px; }
  .item-tag { font-size: 8px; padding: 2px 8px; }
  .mobile-card { padding: 24px 20px; }
  .mobile-card h3 { font-size: 22px; }
  .phone-frame { width: 90px; height: 150px; }
  .vision-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vision-stat { padding: 24px 16px; }
  .vision-stat-number { font-size: 32px; }
  .code-body { font-size: 11px; padding: 14px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; }
}
