:root {
  --bg-canvas: #1e2530;
  --bg-surface: rgba(45, 55, 72, 0.65);
  --bg-surface-solid: #2d3748;
  --accent: #a3e635;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html { scroll-behavior: smooth; font-family: "Trebuchet MS", "Segoe UI", sans-serif; line-height: 1.8; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-main);
  overflow-wrap: anywhere;
  hyphens: auto;
}
a { color: var(--accent); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: #bbf7d0; }
h1, h2, h3, h4 { line-height: 1.2; margin-top: 0; color: var(--text-main); font-weight: bold; }
h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.2rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); }

.site-header {
  position: relative;
  padding: 1.5rem 2rem;
  background: var(--bg-canvas);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-main);
}
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: bold;
}
.main-nav a:hover { color: var(--accent); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(30, 37, 48, 0.5), rgba(30, 37, 48, 0.95));
  z-index: -1;
}
.hero-content { z-index: 1; max-width: 800px; padding: 2rem; }
.hero-content h1 { font-size: 4.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

.btn {
  display: inline-block;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
}
.btn:hover { background: var(--accent); color: var(--bg-canvas); }

.clip-section {
  position: relative;
  padding: 8rem 2rem;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  background: var(--bg-canvas);
  margin: -4rem 0;
  z-index: 2;
}
.clip-section.alt {
  background: var(--bg-surface-solid);
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
  z-index: 1;
}
.container { max-width: 1200px; margin: 0 auto; position: relative; }
.reading-container { max-width: 72ch; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); }
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
  background: var(--bg-surface-solid);
  padding: 2.5rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 12px 32px -4px rgba(0,0,0,0.3);
}
.stat-item { text-align: center; }
.stat-value { font-size: 3rem; font-weight: bold; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; }

.tabs { margin: 3rem 0; background: var(--bg-surface-solid); padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); }
.tab-list { display: flex; gap: 1rem; border-bottom: 2px solid rgba(255,255,255,0.05); margin-bottom: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.tab-btn {
  background: none; border: none; color: var(--text-muted); font-size: 1rem;
  padding: 0.5rem 1rem; cursor: pointer; text-transform: uppercase; font-weight: bold; letter-spacing: 0.05em; transition: color 0.3s; white-space: nowrap;
}
.tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.table-wrapper { overflow-x: auto; margin: 3rem 0; border-radius: var(--radius); background: var(--bg-surface-solid); border: 1px solid rgba(255,255,255,0.05); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; text-align: left; }
th { background: rgba(0,0,0,0.2); color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }
td { color: var(--text-muted); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 37, 48, 0.95); backdrop-filter: blur(12px);
  display: none; justify-content: center; align-items: center; z-index: 100;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg-surface-solid);
  padding: 3rem; border-radius: var(--radius); width: 90%; max-width: 550px;
  border: 1px solid var(--accent); box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  position: relative;
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--accent); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem;
  background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main); border-radius: 4px; box-sizing: border-box; font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.terminal-box {
  background: #0f131a; color: var(--accent); font-family: monospace;
  padding: 1.5rem; border-radius: 4px; margin-top: 2rem; white-space: pre-wrap; font-size: 0.9rem;
  border: 1px solid rgba(163, 230, 53, 0.3); display: none; line-height: 1.5;
}

.site-footer {
  background: #151a22;
  padding: 5rem 2rem 3rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem;
}
.footer-brand { display: inline-block; font-size: 1.2rem; font-weight: bold; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-nav { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-text { font-size: 0.9rem; color: #94a3b8; }

@media (max-width: 768px) {
  .main-nav {
      display: none; flex-direction: column; width: 100%;
      position: absolute; top: 100%; left: 0; background: var(--bg-surface-solid);
      padding: 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
      box-sizing: border-box; align-items: flex-start;
  }
  .main-nav.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 2.8rem; }
  .clip-section { padding: 6rem 1.5rem; clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%); margin: -3rem 0; }
  .clip-section.alt { clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); }
  .stat-strip { flex-direction: column; }
}

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