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

:root {
  --brand-dark: #1B2A4A;
  --brand-blue: #2B6CB0;
  --brand-light: #E8F0FA;
  --brand-accent: #3B82F6;
  --text: #333;
  --text-muted: #6B7B8D;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.12);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent); }

h1, h2, h3, h4 { color: var(--brand-dark); line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-outline:hover {
  background: var(--brand-blue);
  color: #fff;
}

.nav-links a.btn-nav {
  padding: 8px 20px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.nav-links a.btn-nav:hover {
  background: var(--brand-accent);
  color: #fff;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  padding: 0 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--brand-blue); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brand-blue); }

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand-dark);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 50%, #f0f4ff 100%);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* ── Features ── */
.features {
  padding: 80px 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand-blue);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── CTA ── */
.cta {
  padding: 80px 0;
  text-align: center;
  background: var(--brand-dark);
  color: #fff;
}

.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 1.1rem; }

/* ── Footer ── */
.footer {
  padding: 60px 0 24px;
  background: var(--bg-alt);
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col p,
.footer-col li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 2;
}

.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--brand-blue); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Content Pages (Privacy, EULA, Help, Product) ── */
.page-header {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
  text-align: center;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

.page-content {
  padding: 60px 0 80px;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.page-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
}

.page-content p {
  margin-bottom: 12px;
  color: var(--text);
}

.page-content ul, .page-content ol {
  margin: 8px 0 16px 24px;
  color: var(--text);
}

.page-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.page-content code {
  background: var(--brand-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Consolas', monospace;
}

.page-content pre {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 12px 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-content .info-box {
  background: var(--brand-light);
  border-left: 4px solid var(--brand-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
}

.page-content .info-box strong {
  color: var(--brand-blue);
}

/* ── Product Page ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.product-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid #e2e8f0;
}

.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ── Help Page ── */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.help-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid #e2e8f0;
  transition: all var(--transition);
}

.help-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow);
}

.help-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.help-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu { display: block; }

  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }

  .hero { padding: 120px 0 60px; }
}
