/* ============================================
   INTIOM LANDING PAGE — Production CSS
   Design: Dark-first, Black + White + Violet accent
   Inspired by: OpenAI, X.com, Prisma
   ============================================ */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139,92,246,0.4);
  --cyan: #06b6d4;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-12px); } }
@keyframes pulse-glow { 0%,100% { opacity:0.4; } 50% { opacity:1; } }
@keyframes gradient-shift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }
@keyframes shimmer { 0% { transform:translateX(-100%); } 100% { transform:translateX(100%); } }
@keyframes spin-slow { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes count-up { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.animate-fade-up { animation: fadeUp 0.7s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* === HEADER / NAV === */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0,0,0,0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
}

.logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.875rem;
  border-radius: 9999px; cursor: pointer;
  transition: all 0.25s ease; border: none; font-family: var(--font);
}

.btn-primary {
  background: var(--text); color: var(--bg);
  padding: 10px 24px;
}
.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255,255,255,0.15);
}

.btn-secondary {
  background: var(--surface); color: var(--text);
  padding: 10px 24px;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn-large { padding: 14px 32px; font-size: 1rem; }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--text); }

/* === OVERLINE LABEL === */
.overline {
  text-transform: uppercase; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--accent-light);
  margin-bottom: 16px;
}

/* === SECTION TITLE === */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 600px; line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* === HERO === */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9999px; padding: 6px 16px 6px 8px;
  font-size: 0.8rem; color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 24px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.hero p {
  font-size: 1.25rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Hero Visual */
.hero-visual {
  position: relative; max-width: 900px; margin: 0 auto;
  perspective: 1200px;
}

.hero-mockup {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 60px rgba(139,92,246,0.08);
  transform: rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-mockup:hover { transform: rotateX(0deg); }

.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-url {
  flex: 1; text-align: center;
  font-size: 0.75rem; color: var(--text-tertiary);
}

.mockup-body {
  display: flex; height: 380px;
}
.mockup-sidebar {
  width: 220px; border-right: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  padding: 16px;
}
.mockup-sidebar-item {
  height: 12px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.mockup-sidebar-item:nth-child(2) { width: 70%; }
.mockup-sidebar-item:nth-child(3) { width: 85%; }
.mockup-sidebar-item.active {
  background: rgba(139,92,246,0.3);
  border-left: 2px solid var(--accent);
}

.mockup-main { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mockup-card {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.mockup-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 3s infinite;
}
.mockup-cards-row { display: flex; gap: 16px; flex: 1; }

/* === FEATURES === */
.features { padding: 120px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-cell {
  background: var(--bg);
  padding: 40px;
  transition: background 0.3s ease;
  position: relative;
}
.feature-cell:hover { background: var(--bg-elevated); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.feature-cell h3 {
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.01em;
}

.feature-cell p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.how-it-works { padding: 120px 0; }

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  counter-reset: step;
}

.step-card {
  position: relative; padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  counter-increment: step;
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step-number {
  font-size: 3rem; font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1; margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.step-card h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.6;
}

/* === STATS === */
.stats { padding: 80px 0; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-cell {
  background: var(--bg); padding: 48px 32px; text-align: center;
}

.stat-value {
  font-size: 3.5rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stat-label {
  font-size: 0.85rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* === PRICING === */
.pricing { padding: 120px 0; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
}
.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, var(--bg-elevated) 40%);
}

.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 4px 16px; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}

.price-tier {
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary); margin-bottom: 12px;
}

.price-amount {
  font-size: 3rem; font-weight: 800;
  letter-spacing: -0.04em; margin-bottom: 4px;
}
.price-amount span { font-size: 1rem; color: var(--text-tertiary); font-weight: 400; }

.price-desc {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 32px; line-height: 1.6;
}

.price-features { list-style: none; margin-bottom: 32px; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.check { color: #22c55e; font-size: 1rem; }

.price-card .btn { width: 100%; justify-content: center; }

/* === TESTIMONIAL === */
.testimonial { padding: 120px 0; }

.testimonial-card {
  max-width: 700px; margin: 0 auto; text-align: center;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.testimonial-card blockquote {
  font-size: 1.5rem; font-weight: 500;
  font-style: italic; line-height: 1.6;
  letter-spacing: -0.02em; margin-bottom: 32px;
}

.testimonial-author {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.author-info { text-align: left; }
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { font-size: 0.8rem; color: var(--text-tertiary); }

/* === FAQ === */
.faq { padding: 120px 0; }

.faq-grid { max-width: 720px; margin: 0 auto; }

.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;
  font-size: 1rem; font-weight: 600;
  color: var(--text); transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-light); }
.faq-toggle {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px; padding-top: 16px;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
}

/* === CTA === */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem; color: var(--text-secondary);
  margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-tertiary);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.85rem; color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* === SCROLL REVEAL === */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  header .nav-inner { padding: 0 16px; }
  nav { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup-body { height: 220px; }
  .mockup-sidebar { width: 140px; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 2.5rem; }
}
