/* ============================================================
   AFTERAGENT — Landing Page Styles
   ============================================================ */

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

:root {
  --brand: #6C63FF;
  --brand-dark: #5A52E0;
  --brand-light: #8B85FF;
  --bg: #0A0A0F;
  --bg-card: #12121A;
  --bg-card2: #1A1A26;
  --border: rgba(255,255,255,0.08);
  --text: #F0F0F5;
  --text-muted: #8888A0;
  --text-dim: #5A5A70;
  --success: #22C55E;
  --error: #EF4444;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 40px rgba(108,99,255,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(108,99,255,0.4); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 0.95rem; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--brand-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-light), #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-social-proof strong { color: var(--text); }
.avatars { display: flex; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.avatars .avatar:first-child { margin-left: 0; }

/* ===== DEMO WINDOW ===== */
.demo-section {
  max-width: 780px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.demo-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-titlebar {
  background: var(--bg-card2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }
.demo-title { font-size: 0.82rem; color: var(--text-muted); margin-left: 8px; }
.demo-body { background: var(--bg-card); padding: 20px; }
.demo-messages { min-height: 140px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg.user { flex-direction: row-reverse; }
.msg-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); display: flex; align-items: center;
  justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.msg.user .msg-icon { background: var(--bg-card2); color: var(--text-muted); }
.msg-bubble {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  max-width: 90%;
  line-height: 1.5;
}
.msg.user .msg-bubble { background: rgba(108,99,255,0.15); border-color: rgba(108,99,255,0.3); }
.typing .msg-bubble::after { content: '...'; animation: typing 1s infinite; }
@keyframes typing { 0%,100%{opacity:.3} 50%{opacity:1} }
.demo-input-row { display: flex; gap: 8px; }
.demo-input-row input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.demo-input-row input:focus { border-color: var(--brand); }
.demo-input-row input::placeholder { color: var(--text-dim); }

/* ===== SECTION COMMONS ===== */
.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 12px;
}
section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ===== PRICING ===== */
.pricing {
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 40px rgba(108,99,255,0.2);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-muted); }
.plan-price { font-size: 2.4rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.03em; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 0.9rem; color: var(--text-muted); }
.plan-features li:not(.disabled) { color: var(--text); }
.plan-features .disabled { text-decoration: line-through; opacity: 0.4; }

/* ===== LICENSE CHECK ===== */
.license-check {
  max-width: 600px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.license-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.license-card h2 { font-size: 1.6rem; margin-bottom: 10px; }
.license-card p { color: var(--text-muted); margin-bottom: 24px; }
.license-input-row { display: flex; gap: 10px; }
.license-input-row input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}
.license-input-row input:focus { border-color: var(--brand); }
.license-result {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 24px;
  padding: 8px;
  border-radius: 8px;
  display: none;
}
.license-result.success { display: block; background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.license-result.error { display: block; background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }

/* ===== FAQ ===== */
.faq {
  max-width: 700px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-q {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--brand); }
.faq-q:hover { background: var(--bg-card2); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 14px 20px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 0.82rem; }

/* ===== HERO PILLS ===== */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== PRICING ADDITIONS ===== */
.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
  min-height: 2.8em;
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.plan-price-after {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}
.plan-features li.soon {
  color: var(--text-dim);
  font-style: italic;
}

/* Early bird counter */
.early-bird-counter {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--brand-light);
}
.eb-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(108,99,255,0.15);
  border-radius: 100px;
  margin-bottom: 6px;
  overflow: hidden;
}
.eb-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 100px;
  transition: width 0.8s ease;
  width: 0%;
}
#ebLabel { font-weight: 600; }

/* Coming soon card */
.pricing-card.coming-soon {
  opacity: 0.75;
}
.plan-badge-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== PINNY MASCOT ===== */

/* Shared animations */
@keyframes pinny-blink {
  0%,4%,8%,100% { transform: scaleY(1); }
  2%,6%         { transform: scaleY(0.1); }
}
@keyframes pinny-waddle {
  0%,100% { transform: rotate(0deg) translateY(0px); }
  25%     { transform: rotate(-1.5deg) translateY(-1px); }
  75%     { transform: rotate(1.5deg) translateY(-1px); }
}
@keyframes pinny-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
@keyframes pinny-float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%     { transform: translateY(-4px) rotate(-0.8deg); }
  66%     { transform: translateY(-2px) rotate(0.8deg); }
}
@keyframes pinny-success-jump {
  0%,100% { transform: translateY(0) scale(1); }
  40%,60% { transform: translateY(-14px) scale(1.06); }
  80%     { transform: translateY(2px) scale(.95); }
}
@keyframes speech-fadein {
  from { opacity:0; transform: translateY(6px) scale(.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Hero Pinny */
.pinny-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 40px auto 8px;
  width: fit-content;
  cursor: pointer;
}
.pinny-hero-svg {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 12px 36px rgba(230,58,54,.3));
}
.pinny-hero-svg .pinny-body { transform-origin: 65.79px 120px; }
.pinny-hero-svg .pinny-body.pinny-idle    { animation: pinny-waddle 4s ease-in-out infinite; }
.pinny-hero-svg .pinny-body.pinny-success { animation: pinny-success-jump .7s ease-out forwards; }
#ph-eyes { transform-origin: 65.79px 57.21px; animation: pinny-blink 5s infinite; }

.pinny-speech {
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: 14px 14px 14px 2px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 240px;
  text-align: left;
  line-height: 1.5;
  animation: speech-fadein .4s ease both;
  position: relative;
}
.pinny-speech::after {
  content: '';
  position: absolute;
  left: 14px;
  bottom: -8px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-top-color: rgba(108,99,255,.3);
  border-bottom: 0;
  border-left: 0;
}

/* Demo window Pinny avatar */
.msg-icon-pinny {
  background: #e63a36 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature card Pinny icon */
.feature-card .feature-icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(230,58,54,.3));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .demo-input-row { flex-direction: column; }
  .license-input-row { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-price-row { flex-direction: column; gap: 2px; }
}
