:root {
  --bg-canvas: #1e1612;
  --bg-surface: #30221a;
  --bg-surface-hover: #3d2c22;
  --text-primary: #f5ecdf;
  --text-muted: #d0c5b5;
  --accent-primary: #f59e0b;
  --accent-secondary: #d97706;
  --border-subtle: rgba(245, 158, 11, 0.15);
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 24px -4px rgba(245, 158, 11, 0.4);
  --glass-backdrop: blur(16px) saturate(180%);
  
  --radius-sm: 4px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Broad soft amber radial gradient background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-kinetic);
}

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

/* --- Layout & Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.editorial-content {
  max-width: 72ch;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.editorial-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.editorial-content h2 {
  margin-top: 3rem;
  font-size: 1.75rem;
}

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

.editorial-content li {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

/* --- Header Navigation --- */
.tagline-bar {
  background: var(--bg-surface);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.site-header {
  position: relative; 
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.desktop-nav a:hover {
  color: var(--accent-primary);
}

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

.mobile-nav-dropdown {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.mobile-nav-dropdown.is-active {
  display: flex;
}

.mobile-nav-dropdown a {
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-dropdown a:last-child {
  border-bottom: none;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding: 6rem 0;
}

.hero-content {
  flex: 1 1 400px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-image-wrapper {
  flex: 1 1 500px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.btn-secondary {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.btn-secondary:hover::after {
  width: 100%;
}

/* --- Bento Grid Layout --- */
.bento-section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

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

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 0 1.5rem 0;
  transition: all 0.3s var(--ease-kinetic);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  background: var(--bg-surface-hover);
}

.card-image-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: 2rem;
}

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

/* Overlapping Amber Badge */
.card-badge {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  transform: translateY(50%);
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.25rem 0.75rem;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: bold;
  border-radius: var(--radius-sm);
}

.bento-card-content {
  padding: 0 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.bento-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Large feature tile modifier */
.bento-card.large {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.bento-card.large .card-image-wrap {
  width: 50%;
  height: auto;
  min-height: 350px;
  margin-bottom: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.bento-card.large .card-image-wrap img {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.bento-card.large .card-badge {
  left: auto;
  right: 0;
  transform: translate(50%, -50%);
  top: 50%;
  bottom: auto;
}

.bento-card.large .bento-card-content {
  width: 50%;
  padding: 3rem;
  justify-content: center;
}

/* --- FAQ Previews --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.faq-item p {
  margin-bottom: 0;
}

/* --- Tools / Forms --- */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.note-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.note-preview {
  flex-grow: 1;
  background: var(--bg-canvas);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
  min-height: 200px;
  overflow-y: auto;
}

.tool-actions {
  display: flex;
  gap: 1rem;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-nav h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Animations & Utilities --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-kinetic);
}

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

.responsive-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-surface);
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .bento-card.large {
    flex-direction: column;
  }
  
  .bento-card.large .card-image-wrap {
    width: 100%;
    min-height: 250px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  
  .bento-card.large .bento-card-content {
    width: 100%;
    padding: 1.5rem;
  }
  
  .bento-card.large .card-badge {
    left: 1.5rem;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateY(50%);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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