/* ===== Ergosona – Landing Page ===== */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 92, 255, 0.1), transparent 70%);
  top: -120px;
  right: -180px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.07),
    transparent 70%
  );
  bottom: -60px;
  left: -100px;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.2s forwards;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--primary) 50%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.35s forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.5s forwards;
}

/* ── Stats Strip ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 16px 8px;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 20%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ── Features ── */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.features-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 48px;
  max-width: 480px;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-hover);
}

.bento-card.bento-lg {
  grid-column: span 2;
  grid-row: span 2;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    160deg,
    var(--surface) 0%,
    rgba(109, 92, 255, 0.04) 100%
  );
}

.bento-card.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-card.bento-lg .bento-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
}

.bento-card.bento-lg .bento-icon svg {
  width: 26px;
  height: 26px;
}

.bento-icon.purple {
  background: var(--primary-muted);
  color: var(--primary-light);
}
.bento-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.bento-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.bento-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.bento-icon.rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}
.bento-icon.cyan {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
}

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

.bento-card.bento-lg h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.bento-card.bento-lg p {
  font-size: 0.9375rem;
  max-width: 420px;
}

.bento-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 99px;
  margin-top: 20px;
}

/* ── CTA ── */
.cta-section {
  padding: 100px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

/* ── Footer ── */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ── Privacy Page ── */
.privacy-page {
  padding-top: 80px;
}

.privacy-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.privacy-header {
  text-align: center;
  margin-bottom: 48px;
}

.privacy-shield {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.privacy-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.privacy-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.privacy-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.privacy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
}

.privacy-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

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

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

.privacy-technical {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}

.privacy-technical h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.technical-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.technical-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.technical-item:last-child {
  border-bottom: none;
}

.technical-label {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 160px;
  flex-shrink: 0;
}

.technical-value {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.technical-value code {
  background: var(--primary-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.privacy-cta {
  text-align: center;
  padding: 32px 0;
}

.privacy-cta p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }

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

  .features {
    padding: 60px 20px;
  }

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

  .bento-card.bento-lg,
  .bento-card.bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cta-section {
    padding: 60px 20px;
  }

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

  .technical-item {
    flex-direction: column;
    gap: 4px;
  }

  .technical-label {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .stats-bar {
    padding: 32px 16px;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}
