/* ============================================================
   Tidibuddy Landing Page — Style System
   ============================================================ */
:root {
  --bg: #0a0e1a;
  --bg2: #0f1629;
  --surface: #151d35;
  --surface2: #1a2342;
  --border: #1e2d50;
  --text: #e2e8f0;
  --text-muted: #8892a8;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --green: #4ade80;
  --orange: #fb923c;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ NAV ============ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

#lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#lang-toggle:hover {
  background: var(--surface2);
  border-color: var(--accent);
}

.btn-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

/* ============ HERO ============ */
#hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 30% 60%, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease-out;
}

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease-out 0.1s both;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  animation: fadeInDown 0.6s ease-out 0.2s both;
}

.hero-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 12px;
  animation: fadeInDown 0.6s ease-out 0.3s both;
}

.hero-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.hero-form input:focus {
  border-color: var(--accent);
}

.btn-primary {
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: fadeInDown 0.6s ease-out 0.35s both;
}

/* Hero Visual (Dashboard Mock) */
.hero-visual {
  margin-top: 56px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.dashboard-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  max-width: 860px;
  margin: 0 auto;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-dots span:nth-child(1) { background: #f87171; }
.mock-dots span:nth-child(2) { background: #fbbf24; }
.mock-dots span:nth-child(3) { background: #4ade80; }

.mock-body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 180px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.mock-sidebar-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  cursor: default;
  transition: background 0.2s;
}

.mock-sidebar-item.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
}

.mock-main {
  flex: 1;
  padding: 20px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-card.green .stat-num { color: var(--green); }
.stat-card.purple .stat-num { color: var(--accent2); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.mock-heatmap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.heatmap-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.heatmap-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--surface);
  transition: transform 0.2s;
}

.heatmap-cell:hover { transform: scale(1.3); }

.heatmap-cell.h1 { background: rgba(56, 189, 248, 0.15); }
.heatmap-cell.h2 { background: rgba(56, 189, 248, 0.3); }
.heatmap-cell.h3 { background: rgba(56, 189, 248, 0.5); }
.heatmap-cell.h4 { background: rgba(56, 189, 248, 0.75); }
.heatmap-cell.h5 { background: var(--accent); }

/* Tab system */
.mock-tab-content { display: none; }
.mock-tab-content.active { display: block; }
.mock-sidebar-item { cursor: pointer; }

/* Heatmap labeled */
.heatmap-labeled {
  display: flex;
  gap: 8px;
}

.heatmap-days {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 2px;
}

.heatmap-days span {
  height: 14px;
  display: flex;
  align-items: center;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-cell.l0 { background: var(--surface); }
.legend-cell.l1 { background: rgba(56, 189, 248, 0.15); }
.legend-cell.l2 { background: rgba(56, 189, 248, 0.3); }
.legend-cell.l3 { background: rgba(56, 189, 248, 0.5); }
.legend-cell.l4 { background: rgba(56, 189, 248, 0.75); }

/* Bar chart */
.mock-chart {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.chart-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chart-bar-group span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  min-height: 4px;
  transition: height 0.4s ease-out;
}

/* AI Insights mock */
.ai-insight-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.insight-icon { font-size: 1.2rem; flex-shrink: 0; }
.insight-text { font-size: 0.82rem; color: var(--text); line-height: 1.5; }

/* Task list mock */
.task-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-src-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.task-item.done { color: var(--text-muted); text-decoration: line-through; }
.task-item.overdue { color: #f87171; }
.task-check { flex-shrink: 0; }
.task-tag {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(248,113,113,0.15);
  color: #f87171;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ============ PROBLEM ============ */
#problem {
  padding: 100px 0;
}

#problem h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
}

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

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 113, 113, 0.3);
}

.problem-emoji {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ SOLUTION ============ */
#solution {
  padding: 100px 0;
  text-align: center;
  background: var(--bg2);
}

.solution-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

#solution h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

#solution em {
  font-style: normal;
  font-weight: 800;
}

.solution-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ FEATURES ============ */
#features {
  padding: 140px 0;
}

#features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 56px;
}

/* Feature Highlight Blocks */
.feature-highlight {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-highlight.reverse { flex-direction: row-reverse; }

.feature-highlight-text { flex: 1; }
.feature-highlight-visual { flex: 1; max-width: 420px; }

.feature-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.feature-highlight h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-highlight p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.feature-sub {
  font-size: 0.85rem !important;
  color: var(--accent) !important;
  font-style: italic;
}

/* Chat Mockup */
.chat-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 90%;
  animation: fadeInUp 0.4s ease-out;
}

.chat-bubble.user {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bot-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.bot-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Push Notification Mockup */
.push-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.push-header {
  padding: 14px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.push-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.85rem;
  padding-left: 32px;
  position: relative;
}

.push-item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.push-item.green-dot::before { background: var(--green); }
.push-item.orange-dot::before { background: var(--orange); }
.push-item.blue-dot::before { background: var(--accent); }

.push-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.push-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Feature Grid (smaller cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.08);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ AI SUPERPOWERS ============ */
#ai {
  padding: 140px 0;
  background: var(--bg2);
  text-align: center;
}

#ai h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 40px auto 0;
  text-align: left;
}

.ai-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.3);
}

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

.ai-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.ai-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ai-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ai-card.coming-soon {
  border-style: dashed;
  opacity: 0.7;
}

.ai-card.coming-soon:hover {
  opacity: 1;
}

/* ============ PLATFORMS ============ */
#platforms {
  padding: 140px 0;
  background: var(--bg2);
}

#platforms h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.25);
}

.platform-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.platform-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.platform-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.platforms-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 32px;
}

.platforms-more {
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 8px;
  font-weight: 500;
}

/* ============ PRICING ============ */
#pricing {
  padding: 100px 0;
}

#pricing h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

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

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}

.pricing-card li:last-child { border-bottom: none; }
.pricing-card.featured li { color: var(--text); }

/* ============ SIGNUP CTA ============ */
#signup {
  padding: 100px 0;
  background: var(--bg2);
}

.signup-content {
  text-align: center;
  max-width: 640px;
}

#signup h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

#signup p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* Full Signup Form */
.signup-form-full {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus { border-color: var(--accent); }

/* Goal Chips */
.goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.goal-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.goal-chip input[type="checkbox"] {
  display: none;
}

.goal-chip span {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
  user-select: none;
}

.goal-chip span:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text);
}

.goal-chip input:checked + span {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
}

/* ============ FOOTER ============ */
/* ── Mid-page CTA ── */
.mid-cta {
  padding: 100px 0;
  text-align: center;
}

.mid-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.mid-cta h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mid-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.mid-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.05rem;
  text-decoration: none;
}

/* ── Footer ── */
footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-cta {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-cta:hover {
  opacity: 0.8;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.75rem;
  color: #4a5568;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }

  .problem-grid,
  .ai-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
    margin: 0 auto;
  }

  .feature-highlight,
  .feature-highlight.reverse {
    flex-direction: column;
    gap: 24px;
  }

  .feature-highlight-visual { max-width: 100%; }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-form,
  .signup-form {
    flex-direction: column;
  }

  .mock-sidebar { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .mock-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-num { font-size: 1.2rem; }

  .heatmap-grid { gap: 2px; }
}

/* ============ HERO LINE STYLES ============ */
#hero h1 em,
.hero-line2 {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ SIGNUP MODAL ============ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-card .form-group {
  margin-bottom: 20px;
}

.modal-card .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-card .form-group input[type="email"],
.modal-card .form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-card .form-group input:focus {
  border-color: var(--accent);
}

.modal-card .goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-card .goal-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.modal-card .goal-chip:hover {
  border-color: var(--accent);
}

.modal-card .goal-chip span {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
}

.modal-card .goal-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.modal-card .goal-chip:has(input:checked),
.modal-card .goal-chip.checked {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.modal-card .btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .modal-card {
    padding: 24px;
  }
}

/* ── Support / Donate Section ── */
#support {
  text-align: center;
  padding: 140px 0;
}

.support-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.support-btn.afdian {
  background: linear-gradient(135deg, #946ce6 0%, #7c4dff 100%);
  color: #fff;
  border-color: transparent;
}

.support-btn.afdian:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.35);
}

.support-btn.bmc {
  background: linear-gradient(135deg, #f5a623 0%, #f7c948 100%);
  color: #1a1a2e;
  border-color: transparent;
}

.support-btn.bmc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 201, 72, 0.35);
}

/* Feedback CTA */
.feedback-cta {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.feedback-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feedback-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feedback-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.feedback-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}
