/* ── CaloGen AI – shared styles ── */

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

:root {
  --bg:        #080808;
  --bg2:       #101010;
  --surface:   #161616;
  --border:    #1f1f1f;
  --primary:   #34D399;
  --primary-d: #10B981;
  --text:      #F5F5F5;
  --text2:     #9CA3AF;
  --text3:     #6B7280;
  --red:       #F87171;
  --radius:    14px;
}

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

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

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── Wrapper ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text2);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 99px;
  text-decoration: none;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }
.hero-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ── Feature cards ── */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(52,211,153,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.55; }

/* ── Doc page (privacy, terms, support) ── */
.doc-header { margin-bottom: 48px; }
.doc-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.doc-header .meta { font-size: 14px; color: var(--text3); }

.doc-section { margin-bottom: 40px; }
.doc-section h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  color: var(--text);
}
.doc-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text);
}
.doc-section p { font-size: 15px; color: var(--text2); margin-bottom: 12px; line-height: 1.65; }
.doc-section ul, .doc-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.doc-section li { font-size: 15px; color: var(--text2); margin-bottom: 6px; line-height: 1.6; }
.doc-section a { color: var(--primary); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }

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

/* ── Highlight box ── */
.info-box {
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.info-box p { color: var(--text); margin: 0; font-size: 14px; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
  background: var(--surface);
}
.faq-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: 14px; color: var(--text2); margin: 0; line-height: 1.6; }

/* ── Contact card ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.contact-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { font-size: 15px; color: var(--text2); margin-bottom: 20px; }
.contact-card a {
  display: inline-block;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
}
.contact-card a:hover { background: var(--primary-d); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  list-style: none;
}
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; }
.footer-links a:hover { color: var(--text2); }
.footer p { font-size: 13px; color: var(--text3); }

@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .hero { padding: 72px 16px 60px; }
  .page { padding: 48px 16px 80px; }
  .features { padding: 0 16px 80px; }
}
