:root {
  --bg-dark: #000000;
  --bg-light: #403d3d;
  --text-main: rgba(255,255,255,0.95);
  --text-muted: rgba(255,255,255,0.65);
  --border: rgba(255,255,255,0.12);
  --accent: #8c2a2a;
  --accent-light: #a83232;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(800px 500px at 30% 20%, rgba(149, 60, 60,0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-light));
  background-attachment: fixed;
  line-height: 1.6;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-light);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: drop-shadow(0 4px 8px rgba(157, 46, 46, 0.5));
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links li {
    border-top: 1px solid var(--border);
  }
  
  .nav-links a {
    display: block;
    padding: 16px 24px;
  }
}

/* Page wrapper */
.page {
  padding-top: 80px;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Card style */
.card {
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

@media (max-width: 640px) {
  .card {
    padding: 32px 24px;
    border-radius: 20px;
  }
}

/* Logo */
.logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 18px;
  filter: drop-shadow(0 8px 20px rgba(157, 46, 46, 0.5));
  object-fit: cover;
  display: block;
}

.logo-small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

/* Typography */
h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -1px;
  line-height: 1.1;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--text-muted);
}

.lead {
  font-size: 20px;
  max-width: 60ch;
}

/* Divider */
.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 36px auto;
}

.divider-left {
  margin-left: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Tagline */
.tagline {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Sections */
.section {
  margin-bottom: 64px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  margin-bottom: 24px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  margin: 0;
}

/* Hero section (home page) */
.hero {
  text-align: center;
  padding: 80px 24px;
}

.hero .logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 64px);
}

.hero .lead {
  margin: 0 auto 32px;
}

/* Content sections */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.content-section h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--text-main);
}

.content-section p,
.content-section li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.content-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 8px;
}

/* Contact info */
.contact-info {
  margin-top: 32px;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-item h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 16px;
  margin: 0;
}

.contact-item a {
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.contact-item a:hover {
  border-color: var(--accent-light);
}

/* Legal page styles */
.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

/* Footer */
.footer {
  margin-top: 64px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
