/* ==========================================
   TELO.AI — Main Stylesheet
   Dark Minimal — inspired by Linear.app
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080808;
  --bg-2:       #0f0f0f;
  --bg-3:       #161616;
  --bg-card:    #111111;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --text-1:     #f5f5f5;
  --text-2:     #a0a0a0;
  --text-3:     #606060;
  --accent:     #7c3aed;
  --accent-2:   #a855f7;
  --accent-glow:rgba(124,58,237,0.35);
  --green:      #22c55e;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --section-pad: 120px 24px;
  --max-w:      1080px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
.heading-xl {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.heading-lg {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.heading-md {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.heading-sm {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.body-lg  { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); line-height: 1.7; }
.body-md  { font-size: 16px; color: var(--text-2); line-height: 1.65; }
.body-sm  { font-size: 14px; color: var(--text-3); line-height: 1.55; }
.label    { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }

.gradient-text {
  background: linear-gradient(135deg, #e2d9f3 0%, #a855f7 40%, #7c3aed 70%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-pad); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .label { margin-bottom: 16px; }
.section-header .heading-lg { margin-bottom: 20px; }
.section-header .body-lg { max-width: 560px; margin: 0 auto; }

/* --- Dividers --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  background: var(--bg-3);
  color: var(--text-1);
  border-color: var(--border-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 11px 16px;
}
.btn-ghost:hover { color: var(--text-1); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================
   NAV
   ========================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-1);
}
.nav-logo .logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 14px; color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-3); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-hamburger { display: none; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
/* Radial glow bg */
.hero::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
/* Grid texture */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge { margin-bottom: 32px; }
.hero-title { margin-bottom: 24px; }
.hero-title .line2 { display: block; }
.hero-sub { margin: 0 auto 40px; max-width: 560px; }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item .stat-value {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--text-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-item .stat-label { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ==========================================
   LOGOS STRIP
   ========================================== */
.logos-section { padding: 48px 24px; }
.logos-label { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 28px; letter-spacing: 0.06em; }
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 32px 40px;
}
.logo-chip {
  font-size: 15px; font-weight: 700; color: var(--text-3);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.logo-chip:hover { color: var(--text-2); }

/* ==========================================
   PROBLEM SECTION
   ========================================== */
.problem-section { padding: var(--section-pad); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}
.problem-card {
  padding: 40px;
  background: var(--bg-card);
  position: relative;
  transition: background 0.2s;
}
.problem-card:hover { background: var(--bg-3); }
.problem-card.full { grid-column: 1 / -1; }
.problem-card .card-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
}
.problem-card .card-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; line-height: 1.35; }
.problem-card .card-body { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.gap-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.gap-pill {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-2);
  border-radius: 100px; font-size: 13px; color: var(--text-2);
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how-section { padding: var(--section-pad); }
.steps-timeline {
  display: flex; flex-direction: column; gap: 0;
  max-width: 720px; margin: 0 auto;
  position: relative;
}
.steps-timeline::before {
  content: '';
  position: absolute; left: 23px; top: 12px; bottom: 12px;
  width: 1px; background: var(--border);
}
.step-item {
  display: flex; gap: 24px;
  padding: 32px 0;
  position: relative;
}
.step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent-2);
  z-index: 1;
}
.step-content { padding-top: 8px; }
.step-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-content p { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.step-time {
  display: inline-block; margin-top: 12px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  font-size: 12px; color: var(--green); font-weight: 600;
}

/* ==========================================
   ROLES
   ========================================== */
.roles-section { padding: var(--section-pad); }
.roles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 64px;
}
.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.role-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,58,237,0.15);
}
.role-icon {
  font-size: 28px; margin-bottom: 16px;
  width: 48px; height: 48px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.role-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.role-card .role-use-case {
  font-size: 13px; color: var(--accent-2);
  font-style: italic; margin-bottom: 16px; line-height: 1.45;
}
.role-integrations { display: flex; flex-wrap: wrap; gap: 6px; }
.integration-tag {
  padding: 3px 9px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 4px; font-size: 11px; color: var(--text-3); font-weight: 500;
}

/* ==========================================
   FEATURES
   ========================================== */
.features-section { padding: var(--section-pad); }
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 64px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-2); }
.feature-card.highlight {
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(124,58,237,0.25);
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.feature-card .moat-tag {
  display: inline-block; margin-top: 16px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  font-size: 11px; color: var(--green); font-weight: 600; letter-spacing: 0.04em;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing-section { padding: var(--section-pad); }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; max-width: 760px; margin: 64px auto 0;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.pricing-card.featured {
  background: linear-gradient(160deg, rgba(124,58,237,0.1) 0%, var(--bg-card) 60%);
  border-color: var(--accent);
  position: relative;
}
.pricing-card .plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 100px;
  background: var(--accent); font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.plan-price {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 6px;
}
.plan-price span { font-size: 18px; font-weight: 500; color: var(--text-2); vertical-align: top; padding-top: 12px; display: inline-block; }
.plan-period { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.plan-cta { width: 100%; margin-bottom: 28px; justify-content: center; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 20px; }
.plan-features { display: flex; flex-direction: column; gap: 12px; }
.plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.plan-feature .check { color: var(--green); font-size: 13px; margin-top: 1px; flex-shrink: 0; }
.plan-feature span { color: var(--text-2); }
.pricing-note { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 32px; }

/* ==========================================
   WAITLIST
   ========================================== */
.waitlist-section { padding: var(--section-pad); }
.waitlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist-card::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.waitlist-card > * { position: relative; z-index: 1; }
.waitlist-card .heading-lg { margin-bottom: 16px; }
.waitlist-card .body-lg { margin-bottom: 40px; }
.waitlist-form {
  display: flex; max-width: 480px; margin: 0 auto 16px;
  gap: 8px;
}
.waitlist-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-1); font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: var(--text-3); }
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-privacy { font-size: 13px; color: var(--text-3); }

.waitlist-success {
  display: none;
  padding: 12px 20px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--green);
  max-width: 480px; margin: 0 auto;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-section { padding: var(--section-pad); }
.faq-grid { max-width: 720px; margin: 64px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px;
}
.faq-question h3 { font-size: 16px; font-weight: 500; color: var(--text-1); }
.faq-toggle {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-2);
  transition: transform 0.25s, background 0.2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s; }
.faq-answer p { font-size: 15px; color: var(--text-2); line-height: 1.7; padding-top: 16px; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 64px 24px 40px;
  border-top: 1px solid var(--border);
}
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-3); max-width: 240px; line-height: 1.65; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-3); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--text-1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-3); transition: color 0.15s; }
.footer-social a:hover { color: var(--text-1); }

/* ==========================================
   ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 768px) {
  :root { --section-pad: 80px 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 90px 20px 60px; }

  .problem-grid,
  .features-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .problem-card.full { grid-column: auto; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .waitlist-form { flex-direction: column; }
  .waitlist-card { padding: 48px 24px; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
}
