/* === Telemini Landing — Styles === */

:root {
  --bg: #FFFEF7;
  --surface: #FFFFFF;
  --surface-secondary: #F9F9F9;
  --surface-inverse: #111827;
  --fg-primary: #111827;
  --fg-secondary: #4B5563;
  --fg-muted: #9CA3AF;
  --fg-inverse: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --accent: #FACC15;
  --accent-soft: #FACC1518;
  --accent-dark: #92400E;
  --blue: #3B82F6;
  --blue-soft: #3B82F618;
  --blue-dark: #1D4ED8;
  --green: #22C55E;
  --green-soft: #22C55E18;
  --green-dark: #15803D;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-md: 0 6px 20px -8px rgba(17, 24, 39, .14);
  --shadow-lg: 0 24px 56px -16px rgba(17, 24, 39, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; background: var(--surface-secondary); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* === Top accent strip === */
.accent-strip {
  height: 12px;
  width: 100%;
  background: linear-gradient(90deg, #FACC15 0%, #F59E0B 50%, #FACC15 100%);
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  position: sticky;
  top: 0;
  z-index: 100;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === Nav === */
.nav {
  position: sticky;
  top: 12px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 64px;
  background: rgba(255, 254, 247, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow .2s ease, background .2s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(17, 24, 39, .06);
  background: rgba(255, 254, 247, .96);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.brand-logo {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--fg-primary);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 20px -8px rgba(250, 204, 21, .55);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); box-shadow: 0 14px 30px -10px rgba(250, 204, 21, .8); }
.brand-logo-sm { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; }
.brand-text { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--fg-primary); }
.nav-right { display: inline-flex; align-items: center; gap: 12px; }
.bot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 9999px;
  background: rgba(17, 24, 39, .06);
  color: var(--fg-secondary);
  font-size: 14px; font-weight: 500;
}

/* === Buttons === */
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  border-radius: 9999px;
  padding: 0 18px; height: 40px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.cta-primary { background: var(--surface-inverse); color: var(--fg-inverse); }
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(17, 24, 39, .35); }
.cta-primary:active { transform: translateY(0); }
.cta-dark {
  height: 52px; padding: 0 26px;
  font-size: 15px;
  background: var(--surface-inverse);
  color: var(--fg-inverse);
  position: relative;
  isolation: isolate;
}
.cta-dark::before {
  content: ""; position: absolute; inset: -3px;
  border-radius: 9999px;
  background: var(--accent);
  opacity: 0;
  z-index: -1;
  filter: blur(14px);
  transition: opacity .3s ease;
}
.cta-dark:hover::before { opacity: .55; }
.cta-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -14px rgba(17, 24, 39, .55); }
.cta-yellow {
  height: 52px; padding: 0 28px;
  font-size: 15px; font-weight: 700;
  background: var(--accent);
  color: var(--fg-primary);
  box-shadow: 0 12px 32px -12px rgba(250, 204, 21, .9);
}
.cta-yellow:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 22px 50px -14px rgba(250, 204, 21, 1); }


/* === Hero === */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 80px 140px;
  isolation: isolate;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 600px;
  background:
    radial-gradient(ellipse at center, rgba(250, 204, 21, .35) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 30% 50%, rgba(59, 130, 246, .12) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.pre-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px; font-weight: 600;
  margin-bottom: 28px;
}
.pre-badge svg { animation: spinSlow 12s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 auto 24px;
  max-width: 920px;
}
.headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: .25em;
}
.headline .word > span {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: wordUp .8s cubic-bezier(.2, .8, .2, 1) forwards;
}
.headline .word:nth-child(1) > span { animation-delay: .05s; }
.headline .word:nth-child(2) > span { animation-delay: .12s; }
.headline .word:nth-child(3) > span { animation-delay: .19s; }
.headline .word:nth-child(5) > span { animation-delay: .26s; }
.headline .word:nth-child(6) > span { animation-delay: .33s; }
.headline .word:nth-child(7) > span { animation-delay: .40s; }
.headline-accent > span {
  background: linear-gradient(135deg, #FACC15 0%, #F59E0B 50%, #FACC15 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wordUp .8s cubic-bezier(.2, .8, .2, 1) forwards, gradientShift 3s ease-in-out infinite;
}
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.sub {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.hero-ctas { display: inline-flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.trust { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--fg-muted); }
.stars { display: inline-flex; gap: 2px; }
.stars span {
  width: 12px; height: 12px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") no-repeat center / contain;
  animation: starPulse 2s ease-in-out infinite;
}
.stars span:nth-child(2) { animation-delay: .1s; }
.stars span:nth-child(3) { animation-delay: .2s; }
.stars span:nth-child(4) { animation-delay: .3s; }
.stars span:nth-child(5) { animation-delay: .4s; }
@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: .8; }
}

/* === Section utilities === */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--fg-secondary); font-size: 16px; margin: 0; }

/* === VP cards === */
.vp { padding: 96px 80px; background: var(--surface-secondary); }
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.vp-card {
  padding: 36px 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.vp-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(250, 204, 21, .15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.vp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.vp-card:hover::after { opacity: 1; }
.vp-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.vp-card p { color: var(--fg-secondary); font-size: 14px; line-height: 1.65; margin: 0; }
.vp-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.vp-card:hover .vp-icon { transform: rotate(-8deg) scale(1.08); }
.vp-icon-yellow { background: var(--accent-soft); color: var(--accent-dark); }
.vp-icon-blue { background: var(--blue-soft); color: var(--blue-dark); }
.vp-icon-green { background: var(--green-soft); color: var(--green-dark); }

/* === How it works === */
.hiw { padding: 96px 80px; }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; position: relative; }
.hiw-step { display: flex; flex-direction: column; gap: 18px; }
.hiw-mock {
  height: 220px;
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 13px; font-weight: 500;
  position: relative;
  overflow: hidden;
}
.hiw-mock-1 { background: var(--surface-secondary); color: var(--fg-muted); }
.hiw-mock-2 { background: var(--accent-soft); color: var(--accent-dark); }
.hiw-mock-3 { background: var(--blue-soft); color: var(--blue-dark); }
.hiw-mock svg { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.hiw-step:hover .hiw-mock svg { transform: scale(1.15) rotate(4deg); }
.hiw-mock .sparkle { animation: sparkle 2.4s ease-in-out infinite; }
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.15) rotate(20deg); filter: drop-shadow(0 0 20px rgba(250, 204, 21, .8)); }
}
.hiw-mock .swoosh { animation: swoosh 3s ease-in-out infinite; }
@keyframes swoosh {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -4px); }
}
.hiw-num { display: flex; align-items: center; gap: 12px; }
.num-badge {
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--fg-primary);
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 16px -6px rgba(250, 204, 21, .8);
}
.hiw-num h3 { font-size: 18px; font-weight: 600; margin: 0; }
.hiw-step > p { color: var(--fg-secondary); font-size: 14px; line-height: 1.65; margin: 0; }

/* === Features grid === */
.feat { padding: 96px 80px; background: var(--surface-secondary); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.feat-card {
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.feat-icon {
  width: 36px; height: 36px;
  background: var(--surface-secondary);
  border-radius: 8px;
  color: var(--fg-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.feat-card:hover .feat-icon { background: var(--accent-soft); color: var(--accent-dark); transform: rotate(-6deg); }
.feat-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.feat-card p { color: var(--fg-secondary); font-size: 13px; line-height: 1.55; margin: 0; }

/* === Final CTA === */
.final-cta { padding: 96px 80px; }
.final-card {
  max-width: 1000px; margin: 0 auto;
  padding: 64px;
  background: var(--surface-inverse);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.final-card h2 { color: var(--fg-inverse); font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; margin: 0 0 12px; letter-spacing: -.02em; }
.final-card p { color: var(--fg-muted); font-size: 16px; margin: 0 0 28px; }
.final-glow {
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(250, 204, 21, .35) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite;
}

/* === Footer === */
.footer { padding: 64px 80px 40px; background: var(--bg); border-top: 1px solid var(--border-light); }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto 32px; }
.foot-brand { max-width: 320px; }
.foot-brand p { font-size: 13px; color: var(--fg-secondary); line-height: 1.55; margin-top: 12px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--fg-muted); margin: 0; text-transform: uppercase; }
.foot-col a { font-size: 13px; color: var(--fg-secondary); transition: color .2s ease; }
.foot-col a:hover { color: var(--accent-dark); }
.copy { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 12px; color: var(--fg-muted); }

/* === Reveal-on-scroll === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.headline { /* always visible after CSS animation */ opacity: 1; transform: none; }

/* === Responsive === */
@media (max-width: 920px) {
  .nav { padding: 0 24px; height: 72px; }
  .bot-badge { display: none; }
  .hero { padding: 60px 24px 80px; }
  .vp, .hiw, .feat, .final-cta, .footer { padding-left: 24px; padding-right: 24px; }
  .vp-grid, .hiw-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .final-card { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .copy { flex-direction: column; gap: 8px; align-items: center; }
}

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