/* Pitchly AI - Landing Page Styles */
:root {
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-card: #14141a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.05));
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 80px -10px var(--accent-glow);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* ---------- Animations / keyframes ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-14px) }
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-8px) }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1) }
  50%      { opacity: 0.85; transform: translateX(-50%) scale(1.08) }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50% }
  50%  { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}
@keyframes shimmer {
  0%   { background-position: -200% 0 }
  100% { background-position:  200% 0 }
}
@keyframes blink {
  0%, 100% { opacity: 1 }
  50%      { opacity: 0.35 }
}
@keyframes arrowSlide {
  0%, 100% { transform: translateX(0) }
  50%      { transform: translateX(4px) }
}
@keyframes spinSlow {
  to { transform: rotate(360deg) }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94) }
  to   { opacity: 1; transform: scale(1) }
}
@keyframes gridMove {
  0%   { background-position: 0 0, 0 0 }
  100% { background-position: 60px 60px, 60px 60px }
}

/* Scroll-reveal — initial hidden state, JS toggles .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.5);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.85);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

/* word-by-word headline animation */
.animate-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo img {
  height: 56px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 1.8s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #8b5cf6, #6366f1);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
  display: inline-block;
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(255, 255, 255, 0.4); }
.btn:hover svg { animation: arrowSlide 0.8s ease-in-out infinite; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-elev); border-color: rgba(255, 255, 255, 0.25); }
.btn-gradient {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px var(--accent-glow); }

.hero-screens {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
  flex-wrap: nowrap;
}
.hero-screens img {
  max-width: 260px;
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-screens img:nth-child(1) {
  transform: translateY(30px) rotate(-5deg);
  z-index: 1;
  animation: floatGentle 7s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-screens img:nth-child(2) {
  z-index: 2;
  transform: translateY(0) scale(1.05);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 40px 100px -20px rgba(99, 102, 241, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
}
.hero-screens img:nth-child(3) {
  transform: translateY(30px) rotate(5deg);
  z-index: 1;
  animation: floatGentle 7s ease-in-out infinite;
  animation-delay: -4s;
}
.hero-screens img:hover {
  transform: translateY(-12px) scale(1.06);
  animation-play-state: paused;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p { font-size: 18px; color: var(--text-dim); }

/* ---------- How it works (Features) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(99, 102, 241, 0.4); }
.feature:hover::before { opacity: 1; }
.feature-img img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.feature:hover .feature-img img { transform: scale(1.06); }
.feature-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feature p { color: var(--text-dim); font-size: 15px; }
.feature-img {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  aspect-ratio: 9/16;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Pricing ---------- */
#pricing { background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04) 50%, transparent); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #8b5cf6, #6366f1) border-box;
  background-size: 100% 100%, 300% 300%;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-glow);
  animation: gradientShift 6s ease-in-out infinite;
}
.price-card.featured:hover { transform: translateY(-8px); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.price-trial {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.price-amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-amount .period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}
.price-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.price-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.price-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.price-cta {
  width: 100%;
  text-align: center;
}

/* ---------- Mission ---------- */
.mission {
  text-align: center;
  padding: 120px 0;
}
.mission-quote {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 920px;
  margin: 0 auto 32px;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mission-attribution {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.mission-attribution img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 120px 24px;
}
.cta-box {
  max-width: 880px;
  margin: 0 auto;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, var(--accent-glow), transparent 30%, var(--accent-glow) 60%, transparent 80%, var(--accent-glow));
  filter: blur(60px);
  z-index: 0;
  opacity: 0.4;
  animation: spinSlow 18s linear infinite;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.cta-box h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 140px 0 80px;
}
.legal-container {
  max-width: 760px;
  margin: 0 auto;
}
.legal-container h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal-container .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 48px; }
.legal-container h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal-container h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal-container p, .legal-container li {
  color: var(--text-dim);
  margin-bottom: 12px;
  font-size: 16px;
}
.legal-container ul, .legal-container ol { padding-left: 24px; margin-bottom: 16px; }
.legal-container a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact page ---------- */
.contact-form {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-screens { gap: 16px; padding: 0 12px; }
  .hero-screens img { max-width: 170px; border-radius: 24px; }
  .hero-screens img:nth-child(1) { transform: translateY(20px) rotate(-4deg); }
  .hero-screens img:nth-child(2) { transform: translateY(0) scale(1.02); }
  .hero-screens img:nth-child(3) { transform: translateY(20px) rotate(4deg); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  section { padding: 64px 0; }
  .hero { padding: 120px 0 60px; }
  .cta-box { padding: 56px 24px; }
}
