:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #2a2d33;
  --bg-surface-alt: #16181c;
  --text-primary: #f9fafb;
  --text-muted: #e5e7eb;
  --accent-primary: #14b8a6;
  --accent-secondary: #0d9488;
  --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -10px rgba(20, 184, 166, 0.15);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6, .brand, .nav-link, .label, .number, .btn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-weight: 700;
  text-decoration: none;
}

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

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-wrapper {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  z-index: 100;
}

.floating-box {
  background-color: var(--bg-surface);
  border-radius: 9999px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.desktop-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow-soft);
  z-index: 99;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 31, 36, 0.4), rgba(28, 31, 36, 1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px auto;
}

/* Sections */
.band {
  padding: 100px 0;
}

.band-alt {
  background-color: var(--bg-surface-alt);
}

.band-accent {
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
}

.band-accent h2, .band-accent p {
  color: var(--bg-canvas);
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-secondary);
  transform: scale(1.05);
}

.band-accent .btn {
  background-color: var(--bg-canvas);
  color: var(--accent-primary);
}

.band-accent .btn:hover {
  background-color: var(--bg-surface);
}

/* Layout Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
}
input, textarea {
  width: 100%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--bg-surface-alt);
  color: var(--text-primary);
  padding: 12px 15px;
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 0.3s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  padding: 40px 20px;
  background-color: var(--bg-canvas);
}
.footer-box {
  background-color: var(--bg-surface-alt);
  border-radius: 40px;
  padding: 40px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.footer-text {
  font-size: 0.85rem;
  color: #9ca3af;
}

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

/* Article content layout */
.article-content {
  max-width: 72ch;
  margin: 0 auto;
}
.article-content h2 {
  margin: 2rem 0 1rem;
}
.article-content img {
  margin: 2rem 0;
  aspect-ratio: 16/9;
}
.article-content ul, .article-content ol {
  margin: 0 0 1.5rem 2rem;
  color: var(--text-muted);
}
.article-content li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .band { padding: 60px 0; }
  .hero h1 { font-size: 2.5rem; }
}

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