/* BASE VARIABLES & SETUP */
:root {
  --bg-base: #1e2530;
  --bg-surface: #262e3b;
  --bg-surface-hover: #2d3644;
  --text-primary: #ffffff;
  --text-muted: #a0aab8;
  --accent-primary: #a3e635;
  --accent-shadow: rgba(163, 230, 53, 0.2);
  --shadow-soft: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 16px 40px -4px rgba(0, 0, 0, 0.7);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-zero: 0px;
  --font-main: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; }

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

/* HEADER & NAVIGATION */
.header-wrapper {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 0 20px;
}

.header-floating {
  width: 100%;
  max-width: 1200px;
  background: rgba(30, 37, 48, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.nav-desktop a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.btn-cta {
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  padding: 10px 24px;
  border-radius: var(--radius-zero);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  background: var(--accent-primary);
  color: var(--bg-base);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  line-height: 1;
}

.mobile-menu-overlay {
  display: none;
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-zero);
  padding: 2rem;
  box-shadow: var(--shadow-lift);
  z-index: 99;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}
.mobile-menu-overlay.active {
  display: flex;
}

/* LAYOUT & CONTAINERS */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}

.reading-column {
  max-width: 68ch;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* HERO SECTION */
.hero-typographic {
  padding: 8vw 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 100%, rgba(163, 230, 53, 0.15) 0%, transparent 70%);
  margin-bottom: 4rem;
}

.hero-typographic h1 {
  max-width: 20ch;
  margin: 0 auto 1.5rem;
  background: linear-gradient(to right, #fff, #a0aab8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-typographic p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* CARDS & PANELS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.glass-card {
  background: var(--bg-surface);
  border-radius: var(--radius-zero);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease-kinetic);
  position: relative;
  overflow: hidden;
}

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

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.glass-card:hover::before {
  opacity: 1;
}

/* IMAGERY & MEDIA */
.wide-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  border-radius: var(--radius-zero);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.wide-image-wrapper img {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  filter: contrast(1.2) brightness(0.9);
  transition: opacity 0.5s;
}

.wide-image-wrapper:hover img {
  opacity: 1;
}

.image-caption {
  padding: 1rem;
  background: var(--bg-surface);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
  border-left: 4px solid var(--accent-primary);
}

/* PULL QUOTES */
.pull-quote {
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--accent-primary);
  border-left: 4px solid var(--accent-primary);
  padding-left: 1.5rem;
  margin: 3rem -3rem;
  font-style: italic;
  font-weight: 700;
}

/* FORMS & TOOLS */
.tool-panel {
  background: var(--bg-surface);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-zero);
  margin: 4rem auto;
  max-width: 800px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-base);
  border: 1px solid #3a4556;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  border-radius: var(--radius-zero);
  transition: border-color 0.3s;
}

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

.tool-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #0f131a;
  border-left: 4px solid var(--accent-primary);
  display: none;
}
.tool-output.active { display: block; }
.tool-output pre {
  white-space: pre-wrap;
  font-family: monospace;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* TABLES */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #3a4556;
}
th {
  background: var(--bg-base);
  color: var(--accent-primary);
  font-weight: 700;
}

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

/* FOOTER */
.site-footer {
  background: #0f131a;
  padding: 4rem 20px 2rem;
  margin-top: 6rem;
  border-top: 1px solid #262e3b;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #262e3b;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pull-quote { margin: 2rem 0; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-mobile-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pull-quote { padding-left: 1rem; font-size: 1.3rem; }
  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}}
