/* ==========================================================================
   SurfaceGPT Components
   ========================================================================== */

/* ---- Nav ---- */
/* 🧭 Navigation bar — sleek, sticky, sensational ✨ */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: var(--container);
  margin: 16px auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  width: calc(100% - 32px);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: -0.03em;
}

.logo-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
}

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

/* ---- Badges ---- */
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  vertical-align: middle;
}

.badge-beta {
  background: var(--grad-secondary);
  color: white;
}

.badge-pro {
  background: var(--grad-primary);
  color: white;
}

/* ---- Buttons ---- */
/* 🔘 Buttons! Click them! 👆 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-med) var(--ease-out), background var(--dur-med);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  box-shadow: var(--glow-purple);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 16px 30px;
  font-size: var(--fs-md);
}

/* ---- Hero ---- */
/* 🦸 Hero section — first impressions matter! 💯 */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-9) var(--space-4) var(--space-8);
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 10px var(--green-400);
  animation: pulse 2s infinite;
}

.pill-arrow {
  color: var(--purple-400);
}

.hero-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  max-width: 760px;
  margin: 0 auto var(--space-7);
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.stat-num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---- Trusted / Marquee ---- */
.trusted {
  text-align: center;
  padding: var(--space-6) 0;
}

.trusted-label {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: var(--space-5);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-8);
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Chat ---- */
/* 💬 Chat card — where the magic happens 🪄 */
.chat-card {
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.chat-header {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--glow-purple);
}

.chat-name {
  font-weight: 700;
}

.chat-status {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-400);
}

.chat-log {
  min-height: 260px;
  max-height: 440px;
  overflow-y: auto;
  padding: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.msg {
  display: flex;
  animation: rise var(--dur-med) var(--ease-out);
}

.msg-user {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.msg-ai .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}

.msg-user .msg-bubble {
  background: var(--grad-primary);
  border-top-right-radius: 4px;
}

.thinking-steps {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thinking-steps .done::before {
  content: "✓ ";
  color: var(--green-400);
}

.verdict {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: var(--space-3) 0;
}

.verdict.yes {
  color: var(--green-400);
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.6);
}

.verdict.no {
  color: var(--red-400);
  text-shadow: 0 0 30px rgba(248, 113, 113, 0.6);
}

.confidence-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-hover);
  overflow: hidden;
  margin: var(--space-2) 0;
}

.confidence-fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  transition: width 1.2s var(--ease-out);
}

.meta {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.chip:hover {
  border-color: var(--purple-500);
  background: rgba(168, 85, 247, 0.12);
}

.ask-form {
  display: flex;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
}

.ask-form:focus-within {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
}

.ask-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--fs-md);
}

.send-btn {
  padding: 12px;
  width: 46px;
  height: 46px;
}

.disclaimer {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: var(--space-3);
}

/* ---- Features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ⭐ Feature cards with hover lift effect 🚀 */
.feature-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--glow-purple);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  margin-bottom: var(--space-2);
}

/* ---- Steps ---- */
.steps {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
}

.step {
  flex: 1;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-3);
}

.step h3 {
  margin-bottom: var(--space-2);
}

.step-connector {
  width: 40px;
  align-self: center;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.6;
}

/* ---- Architecture ---- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.arch-layer {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.arch-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.code-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.code {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  padding: var(--space-5);
  overflow-x: auto;
}

.kw { color: #c084fc; }
.fn { color: #22d3ee; }
.str { color: #4ade80; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}

/* 💰 Pricing cards — show me the money! 🤑 */
.price-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.price-card.featured {
  transform: scale(1.04);
  box-shadow: var(--glow-purple);
}

.price {
  font-size: 44px;
  font-weight: 800;
}

.price span {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-secondary);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testimonial {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial blockquote {
  font-size: var(--fs-md);
  line-height: 1.6;
}

.testimonial figcaption {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-hover);
  display: grid;
  place-items: center;
}

.testimonial-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.testimonial.gold {
  position: relative;
  border: 2px solid var(--gold-400);
  background:
    radial-gradient(ellipse at top left, rgba(250, 204, 21, 0.16), transparent 65%),
    var(--glass-bg);
  box-shadow: var(--glow-gold), var(--shadow-card);
  padding: var(--space-7) var(--space-6) var(--space-6);
  animation: gold-pulse 3.5s ease-in-out infinite;
}

.testimonial.gold blockquote {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
}

.gold-badge {
  position: absolute;
  top: -14px;
  left: var(--space-6);
  background: var(--grad-gold);
  color: #1a1203;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45);
}

.testimonial.gold .avatar {
  background: var(--grad-gold);
}

.testimonial-wall {
  columns: 3 280px;
  column-gap: var(--space-5);
}

.testimonial-wall .testimonial {
  break-inside: avoid;
  margin-bottom: var(--space-5);
}

.testimonial-wall .avatar {
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--grad-primary);
  color: white;
}

/* ---- About ---- */
.about-story {
  max-width: 820px;
  margin: 0 auto var(--space-7);
  padding: var(--space-8) var(--space-7);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background:
    radial-gradient(ellipse at bottom, rgba(236, 72, 153, 0.14), transparent 70%),
    var(--glass-bg);
}

.about-story p {
  font-size: var(--fs-lg);
  line-height: 1.75;
}

.about-story em {
  color: var(--text);
  font-style: italic;
}

.about-lede {
  font-size: var(--fs-2xl) !important;
  font-weight: 800;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  text-align: center;
}

.about-kicker {
  text-align: center;
  font-size: var(--fs-xl) !important;
  font-weight: 700;
  color: var(--text) !important;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.founder {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
}

.founder:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-purple);
}

.founder-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  box-shadow: var(--glow-purple);
  outline: 2px solid rgba(255, 255, 255, 0.15);
  outline-offset: 4px;
}

.founder-role {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: var(--space-2);
}

.founder p {
  font-size: var(--fs-sm);
}

/* ---- CTA ---- */
.cta-card {
  text-align: center;
  padding: var(--space-9) var(--space-6);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.25), transparent 70%), var(--glass-bg);
}

.cta-card p {
  font-size: var(--fs-xl);
  margin: var(--space-4) 0 var(--space-6);
}

/* ---- No-AI badge ---- */
/* 🚫🤖 The no-AI badge — handcrafted with love by humans 🙌 */
.no-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: calc(var(--space-7) * -0.5) auto var(--space-7);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
  font-size: var(--fs-sm);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.2);
}

.no-ai-badge strong {
  color: #ffffff;
}

.badge-noai {
  background: #16a34a;
  color: #fff;
  margin-left: 4px;
}

.section-header::after {
  content: "🚫🤖 No AI was used to build this project.";
  display: block;
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-400);
  opacity: 0.9;
}

.no-ai-inline {
  font-size: var(--fs-sm) !important;
  color: var(--green-400) !important;
  font-weight: 600;
  margin-top: calc(var(--space-5) * -1) !important;
}

.no-ai-footer {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--green-400);
  font-weight: 600;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.footer-logo {
  font-weight: 800;
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120px);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  transition: transform var(--dur-med) var(--ease-spring);
  z-index: 100;
}

.toast.show {
  transform: translate(-50%, 0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid,
  .pricing-grid,
  .testimonial-grid,
  .testimonial-featured,
  .founders { grid-template-columns: 1fr; }
  .about-story { padding: var(--space-6) var(--space-5); }
  .arch-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: 2px; height: 24px; }
  .price-card.featured { transform: none; }
}

@media (max-width: 520px) {
  .hero-subtitle { font-size: var(--fs-md); }
  .verdict { font-size: 44px; }
  .nav .btn-sm { display: none; }
}
