/* SmartPotholes — custom styles (layered on top of Tailwind) */

html { scroll-behavior: smooth; }

::selection { background: rgba(34,211,238,0.35); color: #fff; }

/* Animated grid background */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22d3ee;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  width: fit-content;
}
.pill-violet { color: #c4b5fd; background: rgba(168,85,247,0.10); border-color: rgba(168,85,247,0.30); }
.pill-gold   { color: #fcd34d; background: rgba(251,191,36,0.10); border-color: rgba(251,191,36,0.30); }

/* ===== Chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}

/* ===== Stats ===== */
.stat-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 1.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
  transition: transform 250ms ease, border-color 250ms ease;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(34,211,238,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,0.35); }
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-unit { margin-top: 0.4rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.stat-label { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ===== Problem ===== */
.prob-bullet {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem; width: 2rem;
  border-radius: 9999px;
  background: rgba(239,68,68,0.10);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== Steps (how it works) ===== */
.step-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  padding: 1.5rem;
  transition: border-color 250ms ease, transform 250ms ease;
}
.step-card:hover { border-color: rgba(168,85,247,0.40); transform: translateY(-3px); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}
.step-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.step-body { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.icon-tile {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.5rem; width: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.1rem;
}

/* ===== Value cards (Why) ===== */
.value-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 2rem;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.value-icon {
  height: 3rem; width: 3rem;
  border-radius: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  ring: 1px;
  box-shadow: inset 0 0 0 1px var(--ring-color, rgba(255,255,255,0.10));
  margin-bottom: 1.25rem;
}
.value-title { font-size: 1.25rem; font-weight: 700; color: #fff; }
.value-body { margin-top: 0.65rem; color: rgba(255,255,255,0.7); line-height: 1.65; }

/* Compare cards */
.compare-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  padding: 1.75rem;
}

/* ===== ICO ===== */
.ico-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(251,191,36,0.18);
  background: linear-gradient(180deg, rgba(251,191,36,0.06), rgba(255,255,255,0.01));
  padding: 2rem;
  transition: transform 280ms ease, border-color 280ms ease;
}
.ico-card:hover { transform: translateY(-4px); border-color: rgba(251,191,36,0.45); }
.ico-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #fbbf24;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.flow-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.5rem 0;
}
.flow-step {
  flex-shrink: 0;
  height: 2.25rem; width: 2.25rem;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
}

/* ===== Roadmap ===== */
.roadmap-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 1.5rem;
}
.roadmap-dot {
  position: absolute;
  top: -6px; left: 1.5rem;
  height: 12px; width: 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  box-shadow: 0 0 14px rgba(34,211,238,0.55);
}
.roadmap-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #818cf8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.roadmap-title { font-size: 1.15rem; font-weight: 700; margin-top: 0.4rem; color: #fff; }
.roadmap-list { margin-top: 0.85rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.roadmap-list li { padding: 0.25rem 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.roadmap-list li:last-child { border-bottom: none; }

/* ===== Audience cards ===== */
.audience-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 1.75rem;
  transition: transform 280ms ease, border-color 280ms ease;
}
.audience-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.30); }
.aud-icon {
  height: 2.75rem; width: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(168,85,247,0.10));
  border: 1px solid rgba(255,255,255,0.08);
}
.aud-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-top: 1rem; }
.aud-body  { margin-top: 0.5rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; }

/* ===== Founder section ===== */
.founder-avatar {
  position: relative;
  flex-shrink: 0;
  height: 9rem;
  width: 9rem;
  border-radius: 1.5rem;
  padding: 3px;
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #a855f7 100%);
  box-shadow: 0 0 60px -10px rgba(34,211,238,0.55), 0 0 60px -20px rgba(168,85,247,0.55);
}
.founder-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(1.5rem - 3px);
  object-fit: cover;
  background: #0b0f1f;
}

@media (max-width: 1024px) {
  .founder-avatar { height: 7rem; width: 7rem; }
}

/* LinkedIn link button */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #67e8f9;
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.25);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  text-decoration: none;
  line-height: 1;
}
.linkedin-link:hover {
  background: rgba(34,211,238,0.14);
  border-color: rgba(34,211,238,0.55);
  color: #fff;
  transform: translateY(-1px);
}
.linkedin-link svg { flex-shrink: 0; }

.cred-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  transition: border-color 200ms ease, background 200ms ease;
}
.cred-chip:hover {
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.06);
}
.cred-chip-active {
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(168,85,247,0.10));
  border-color: rgba(168,85,247,0.35);
  color: #fff;
}

.founder-stat {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  padding: 1rem 1.1rem;
}
.founder-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.founder-stat-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.35;
}

/* ===== FAQ ===== */
.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: border-color 250ms ease;
}
.faq-item[open] { border-color: rgba(34,211,238,0.35); }
.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: #22d3ee;
  transition: transform 250ms ease;
}
.faq-item[open] .faq-summary::after { content: '−'; }
.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ===== Header scrolled state ===== */
.scrolled #site-header > div > div {
  background: rgba(5,8,22,0.85);
  border-color: rgba(255,255,255,0.10);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
