:root {
  --bg-canvas: #2a0912;
  --bg-surface: #3b0d1a;
  --bg-surface-hover: #4e1223;
  --text-primary: #fffdd0;
  --text-muted: #e8d5a8;
  --accent-primary: #e8d5a8;
  --accent-secondary: #d4af37;
  
  --radius: 20px;
  --shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 24px 48px -12px rgba(232, 213, 168, 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Consolas, "Courier New", monospace;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(232, 213, 168, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.mono-label, .nav-links a, .card-tag, .stat-number {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Header */
.site-header {
  position: static;
  margin: 20px auto;
  max-width: 1200px;
  background: var(--bg-surface);
  border-radius: 50px;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  width: calc(100% - 40px);
  z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-primary);
}

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

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  color: var(--bg-canvas);
  box-shadow: 0 8px 24px -4px rgba(232, 213, 168, 0.4);
}

.hero-images {
  position: relative;
  height: 500px;
}

.hero-images img {
  position: absolute;
  box-shadow: var(--shadow);
}

.hero-img-1 {
  top: 0; left: 0; width: 65%; height: 65%; z-index: 1;
}

.hero-img-2 {
  bottom: 0; right: 10%; width: 55%; height: 60%; z-index: 2;
}

.hero-img-3 {
  top: 20%; right: 0; width: 45%; height: 50%; z-index: 3;
}

/* Bento Grid System */
.bento-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  grid-auto-rows: minmax(200px, auto);
}

.bento-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  background: var(--bg-surface-hover);
}

.bento-card.image-card {
  padding: 0;
}

.bento-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.bento-card.image-card .card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(42, 9, 18, 0.9), transparent);
}

@media (min-width: 900px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .row-2 { grid-row: span 2; }
}

.section-title {
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

.card-tag {
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: inline-block;
}

/* Typography & Content Pages */
.page-header {
  max-width: 800px;
  margin: 60px auto 40px;
  text-align: center;
  padding: 0 20px;
}

.content-body {
  max-width: 72ch;
  margin: 0 auto 80px;
  padding: 0 20px;
  font-size: 1.1rem;
}

.content-body p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.content-body h2, .content-body h3 {
  margin-top: 2.5rem;
}

.content-body ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
  color: var(--text-muted);
}

.content-body li {
  margin-bottom: 0.5rem;
}

/* Tool Form */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.tool-tile {
  background: var(--bg-surface);
  border: 2px solid transparent;
  padding: 20px;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.tool-tile.selected {
  border-color: var(--accent-primary);
  background: var(--bg-surface-hover);
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  padding: 60px 20px;
  margin-top: 80px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.disclaimer-box {
  background: var(--bg-canvas);
  padding: 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-images {
    height: 350px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
