:root {
  --bg-base: #ffffff;
  --bg-surface: #f4f4f5;
  --text-primary: #27272a;
  --text-muted: #52525b;
  --accent: #10b981;
  --accent-hover: #059669;
  --radius: 20px;
  --radius-pill: 9999px;
  --max-width: 1100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body, html {
  margin: 0;
  padding: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.7;
  overflow-x: hidden;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-top: 0; margin-bottom: 1.5rem; }
a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); object-fit: cover; }

/* Header & Nav */
.site-header {
  position: static;
  background-color: var(--bg-base);
  padding: 1rem 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

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

/* Layout Bands */
.band {
  padding: 5rem 1.5rem;
  width: 100%;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-container {
  max-width: 72ch;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: #111;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  border-radius: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

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

.card {
  background-color: rgba(244, 244, 245, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s var(--ease);
}

.band-surface .card {
  background-color: rgba(255, 255, 255, 0.85);
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  aspect-ratio: 4/3;
  margin-bottom: 1.5rem;
}

/* Feature Panels */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split-panel { grid-template-columns: 1fr; }
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e4e4e7;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

/* Footer */
.site-footer {
  background-color: var(--text-primary);
  color: #f4f4f5;
  padding: 4rem 1.5rem 2rem;
}

.site-footer a {
  color: #f4f4f5;
  text-decoration-color: var(--accent);
}
.site-footer a:hover {
  color: var(--accent);
}

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

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #a1a1aa;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-base);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .main-nav.active {
    display: flex;
  }
  .header-inner {
    position: relative;
  }
  .mobile-toggle {
    display: block;
  }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .band { padding: 3rem 1.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}}
