:root {
  --bg-color: #000000;
  --bg-secondary: #0A0A0A;
  --bg-tertiary: rgba(255, 255, 255, 0.03);
  --text-primary: #f2f2f2;
  --text-secondary: #8A8F98;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #f4c1be;
  --accent-hover: #f8e5e4;
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-glow: linear-gradient(180deg, rgba(244, 193, 190, 0.15) 0%, rgba(0,0,0,0) 100%);
  --nav-height: 72px;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 44px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: rgba(255,255,255,0.2);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

.nav-brand img {
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* Hero Section */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle at center top, rgba(244, 193, 190, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero p {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Glass Card / Bento Box */
.section-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

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

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card.span-2 { grid-column: span 2; }
.glass-card.span-3 { grid-column: span 3; }

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.glass-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

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

/* User Journey Timeline (for index-timeline) */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--text-secondary);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.timeline-content {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover .timeline-content {
  transform: translateX(8px) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

.timeline-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.05);
}

/* Flowchart (for index-flowchart) */
.flowchart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.flow-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.flow-node {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 20px 24px;
  min-width: 200px;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.flow-node:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 193, 190, 0.1);
}

.flow-node h4 {
  font-size: 15px;
  font-weight: 500;
}

.flow-node.diamond {
  border-radius: 4px;
  transform: rotate(45deg);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.flow-node.diamond h4 {
  transform: rotate(-45deg);
  font-size: 13px;
}

.flow-node.diamond:hover {
  transform: rotate(45deg) scale(1.05);
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  gap: 8px;
}

.flow-arrow::before, .flow-arrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 30px;
  background: var(--border-color);
}
.flow-arrow::after {
  width: 10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--text-secondary);
  height: 10px;
}

.flow-arrow-down {
  flex-direction: column;
}
.flow-arrow-down::before, .flow-arrow-down::after {
  width: 1px;
  height: 30px;
}
.flow-arrow-down::after {
  height: 10px;
  width: 10px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}


/* Pricing Section */
.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
}

.price {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 24px 0 8px;
  display: flex;
  align-items: baseline;
}

.price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 8px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--bg-tertiary);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 24px;
}

.billing-toggle button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.billing-toggle button.active {
  background: var(--glass-bg);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-primary);
}

.pricing-features li svg {
  color: var(--accent-color);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* Animations */
.anim-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-active {
  opacity: 1;
  transform: translateY(0);
}

.anim-text-rotate {
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: inline-block;
}

.anim-text-rotate.hide {
  opacity: 0;
  transform: translateY(10px);
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .glass-card.span-2, .glass-card.span-3 {
    grid-column: span 1;
  }
  .flow-row {
    flex-direction: column;
  }
  .flow-arrow {
    flex-direction: column;
  }
  .flow-arrow::before, .flow-arrow::after {
    width: 1px;
    height: 30px;
  }
  .flow-arrow::after {
    height: 10px;
    width: 10px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
}
