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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: #121110;
  color: #d6d3d1;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Design System Variables */
:root {
  --color-accent: #d4a373;
  --color-accent-hover: #faedcd;
  --color-text-bright: #fafaf9;
  --color-text-muted: #a8a29e;
  --color-border: #292524;
  --color-bg-deep: #0c0a09;
  --color-bg-card: #1a1918;
  
  --container-width: 1100px;
  --article-width: 760px;
  
  --space-unit: 1rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2.5rem;
  --space-lg: 3.5rem;
  --space-xl: 7rem;
  --space-2xl: 10rem;
}

@media (max-width: 768px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }
}

/* Layout Containers */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  max-width: var(--article-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  margin-block: var(--space-xl);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-text-bright);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 { 
  font-size: clamp(2.25rem, 8vw, 3.75rem); 
  margin-bottom: var(--space-sm);
}

h2 { 
  font-size: clamp(1.5rem, 5vw, 2.25rem); 
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

h3 { 
  font-size: clamp(1.25rem, 3vw, 1.5rem); 
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

p { 
  margin-bottom: var(--space-md); 
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Utilities */
.text-gradient {
  background: linear-gradient(to right, #fafaf9, #d4a373);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(212, 163, 115, 0.1);
  color: var(--color-accent);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.checklist {
  list-style: none !important;
  padding: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 900;
}

/* Header & Nav */
.site-header {
  padding-block: var(--space-sm);
  background-color: rgba(18, 17, 16, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.site-logo {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-text-bright);
  z-index: 102;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-bright);
  padding: 0.5rem;
  cursor: pointer;
  z-index: 102;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-deep);
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
  }

  .site-nav.active {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .site-nav a {
    font-size: 1.5rem;
    font-weight: 800;
  }
}

.site-nav ul {
  display: flex;
  gap: var(--space-md);
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.site-nav a:hover, .site-nav a[aria-current] {
  color: var(--color-accent);
}

/* Responsive Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card-feature {
  background-color: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 100%;
}

.card-feature:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.grid-responsive-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-responsive-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background-color: var(--color-text-bright);
  color: #121110;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .btn { width: 100%; }
}

/* Responsive Tables */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-block: 2rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th {
  text-align: left;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-border);
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

/* Footer */
.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-deep);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  font-size: 0.8rem;
  text-align: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
