:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #1b1b20;
  --text-primary: #f4f4f5;
  --text-muted: #c0c4cc;
  --accent-primary: #dc2626;
  --accent-hover: #b91c1c;
  --border-color: #2a2a35;
  
  --font-main: system-ui, "Segoe UI", Roboto, sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0;
  color: var(--text-primary);
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

/* Header */
header {
  position: static;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.nav-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-row a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-kinetic);
}

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

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

.content-narrow {
  max-width: 72ch;
  margin: 0 auto;
}

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

@media (min-width: 769px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 2rem;
  background: radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.1) 0%, var(--bg-canvas) 60%);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.1;
}

.hero-img-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-img-wrap img {
  aspect-ratio: 16/9;
  width: 100%;
}

.floating-card {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-surface);
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-elevation);
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.floating-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.floating-card span {
  font-weight: 800;
  font-size: 1.1rem;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

.card-img-wrap {
  position: relative;
}

.card-img-wrap img {
  aspect-ratio: 1/1;
  width: 100%;
}

.badge {
  position: absolute;
  bottom: -1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.card-content {
  padding: 2.5rem 1.5rem 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
}

/* Typography & Elements */
.official-note {
  display: inline-block;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--text-muted);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kinetic);
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-link {
  display: inline-block;
  color: var(--text-primary);
  font-weight: 800;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.btn-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s var(--ease-kinetic);
}

.btn-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

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

th {
  background-color: var(--bg-surface);
  font-weight: 800;
}

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

label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}

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

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

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

/* Footer */
footer {
  background-color: var(--bg-surface);
  padding: 3rem 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.silver-rule {
  border: 0;
  height: 1px;
  background-color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0.3;
}

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

.footer-grid a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.disclaimer {
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
  .nav-row {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding-top: 1rem;
  }
  
  .nav-row.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .floating-card {
    position: relative;
    bottom: 0;
    transform: none;
    left: 0;
    width: 100%;
    margin: 2rem auto 0;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

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