/* ============================================
   Postic.ai — Vercel-Inspired Dark Theme
   ============================================ */

:root {
  --bg: #000000;
  --bg-subtle: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-hover: #333333;
  --text: #ededed;
  --text-secondary: #888888;
  --text-tertiary: #666666;
  --accent: #8b5cf6;
  --accent-light: #c084fc;
  --accent-pink: #ec4899;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-text: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #c084fc 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

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

.logo-dot { color: var(--accent-light); }

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.logo-img-sm {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 12px;
}

.nav-mobile a {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.nav-mobile-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #d4d4d4;
  border-color: #d4d4d4;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text); }

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius);
}

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

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 160px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

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

.hero-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}

.window-dots span:first-child { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:last-child { background: #22c55e; }

.window-title {
  font-size: 12px;
  color: var(--text-tertiary);
  flex: 1;
  text-align: center;
}

.window-content {
  padding: 24px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.dash-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.dash-card-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.dash-card-value {
  font-size: 14px;
  font-weight: 600;
}

.dash-preview {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.dash-preview-bar {
  height: 8px;
  width: 40%;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
}

.dash-preview-lines {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
}

.line {
  flex: 1;
  border-radius: 4px 4px 0 0;
  animation: bar-grow 2s ease-out forwards;
  transform-origin: bottom;
}

.line-80 { height: 80%; background: var(--accent); }
.line-60 { height: 60%; background: var(--accent-pink); }
.line-90 { height: 90%; background: var(--accent); }
.line-45 { height: 45%; background: var(--accent-pink); }
.line-70 { height: 70%; background: var(--accent); }

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Platforms
   ============================================ */

.platforms {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}

.platforms-label {
  font-size: 14px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.platforms-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  transition: color var(--transition);
}

.platform-item:hover { color: var(--text); }

.platform-item span {
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Features
   ============================================ */

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

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

.feature-card {
  background: var(--bg-card);
  padding: 40px;
  transition: background var(--transition);
}

.feature-card:hover { background: var(--bg-card-hover); }

.feature-card-large {
  grid-column: span 3;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tags span {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  padding: 120px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  background: var(--bg-card);
  padding: 40px;
  transition: background var(--transition);
}

.step:hover { background: var(--bg-card-hover); }

.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--border-hover);
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

.step-visual {
  display: flex;
  justify-content: flex-end;
}

.step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

/* ============================================
   Pricing
   ============================================ */

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

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

.pricing-card {
  background: var(--bg-card);
  padding: 40px;
  position: relative;
  transition: background var(--transition);
}

.pricing-card:hover { background: var(--bg-card-hover); }

.pricing-card-popular {
  background: var(--bg-card-hover);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gradient);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   CTA
   ============================================ */

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

.cta-inner {
  position: relative;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.cta-inner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  position: relative;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  padding: 120px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color var(--transition);
}

.faq-item summary:hover { color: var(--accent-light); }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-tertiary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 4px 0;
  transition: color var(--transition);
}

.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);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-tertiary);
  transition: color var(--transition);
}

.footer-socials a:hover { color: var(--text); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile.open { display: flex; }

  .hero { padding: 120px 20px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .hero-stats { gap: 24px; }
  .stat-value { font-size: 22px; }

  .dash-grid { grid-template-columns: repeat(2, 1fr); }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }

  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px; }
  .step-visual { display: none; }

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

  .cta-inner { padding: 48px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .dash-grid { grid-template-columns: 1fr; }
  .platforms-grid { gap: 32px; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
}

/* ============================================
   Animations (Scroll Reveal)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-page {
  padding: 140px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}

.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}

.legal-page a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.legal-page a:hover {
  color: var(--text);
}
