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

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  --border: #2a2a2e;
  --text-primary: #f0f0f2;
  --text-secondary: #9898a0;
  --text-muted: #68686e;
  --accent: #6e6eff;
  --accent-dim: #5050cc;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* === Hero === */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* === Products === */
.products {
  padding: 40px 0 100px;
}

.products h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.product-card:hover {
  background: var(--bg-card-hover);
  border-color: #3a3a40;
  color: inherit;
}

.product-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.product-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

a.product-card:hover .product-link {
  color: var(--text-primary);
}

.product-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-weight: 600;
  font-size: 1rem;
}

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

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

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

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

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Legal Pages === */
.legal {
  padding: 80px 0 60px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-header .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-header .back-link:hover {
  color: var(--text-primary);
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 4px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.legal-content th {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-content a {
  color: var(--accent);
}

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

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .logo-text {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .products {
    padding: 20px 0 60px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .legal-header h1 {
    font-size: 1.5rem;
  }
}
