:root {
  --bg-main: #060908;
  --bg-card: rgba(19, 78, 63, 0.15);
  --bg-card-hover: rgba(30, 100, 80, 0.25);
  --text-main: #f2f8f4;
  --text-muted: #8dc0af;

  --pine-900: #0c332a;
  --pine-700: #1d6a56;
  --pine-500: #3e8f78;
  --pine-300: #8dc0af;
  --pine-200: #cfe2da;
  --accent-glow: #10b981;
  --accent-subtle: rgba(16, 185, 129, 0.15);

  --card-radius: 24px;
  --card-border: 1px solid rgba(141, 192, 175, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 15% 50%, rgba(29, 106, 86, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.brand {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.03em;
  font-weight: normal;
}

p {
  margin: 0;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.scrolled {
  background: linear-gradient(180deg, rgba(6, 9, 8, 0.9) 0%, rgba(6, 9, 8, 0.5) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrap {
  width: auto;
  margin: 0 2.5rem;
  min-height: 80px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: var(--bg-main);
  background: linear-gradient(135deg, var(--accent-glow), var(--pine-500));
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links>a {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-links>a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-links>a.active {
  color: var(--accent-glow);
  background: var(--accent-subtle);
  border-color: rgba(16, 185, 129, 0.3);
}

.nav-links>.nav-cta {
  color: var(--bg-main);
  background: var(--text-main);
  margin-left: 0.5rem;
}

.nav-links>.nav-cta:hover {
  background: var(--accent-glow);
  color: var(--bg-main);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 6rem 0 3rem;
  position: relative;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-glow);
  background: var(--accent-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #a0c4b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-copy {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 50ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  color: var(--bg-main);
  background: var(--text-main);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Hero Panel (Glass Card) */
.hero-panel {
  position: relative;
  border-radius: var(--card-radius);
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--card-border);
  box-shadow: var(--glass-shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--card-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Glowing orb behind the panel */
.hero-panel::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(90px);
  opacity: 0.15;
  z-index: -1;
}

.hero-panel .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.mini-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini {
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.mini:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.mini h3 {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.mini p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  max-width: 65ch;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Color Bands -> Glass Cards */
.color-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.band-card {
  border-radius: var(--card-radius);
  padding: 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: var(--card-border);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Mouse glow effect wrapper */
.band-card::before,
.step::before,
.signal-card::before,
.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(16, 185, 129, 0.08),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.band-card:hover::before,
.step:hover::before,
.signal-card:hover::before,
.quote-card:hover::before {
  opacity: 1;
}

.band-card>* {
  position: relative;
  z-index: 1;
}

.band-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

.band-card h3 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.band-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.band-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-glow);
  margin-top: 1.5rem;
  transition: gap 0.2s ease;
}

.band-card a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.band-card:hover a::after {
  transform: translateX(4px);
}

.band-card.a {
  border-top: 2px solid var(--accent-glow);
}

.band-card.b {
  border-top: 2px solid var(--pine-500);
}

.band-card.c {
  border-top: 2px solid var(--pine-300);
}

/* Workflow */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: var(--card-border);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step>* {
  position: relative;
  z-index: 1;
}

.step:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.step .index {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-glow);
  font-size: 0.9rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.step h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Signals / Inner pages specific */
.signal-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.signal-card,
.quote-card {
  border-radius: var(--card-radius);
  padding: 2rem;
  border: var(--card-border);
  position: relative;
  overflow: hidden;
}

.signal-card>*,
.quote-card>* {
  position: relative;
  z-index: 1;
}

.signal-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.signal-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.signal-list li {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.signal-list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

.quote-card {
  background: linear-gradient(140deg, rgba(29, 106, 86, 0.2), rgba(12, 51, 42, 0.4));
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-card::after {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: serif;
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  z-index: 0;
}

.quote-card blockquote {
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.quote-card small {
  color: var(--accent-glow);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(120deg, var(--pine-900), #08221c);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--card-radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.15), transparent 50%);
  pointer-events: none;
}

.cta>div {
  position: relative;
  z-index: 1;
}

.cta h3 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.cta p {
  font-size: 1rem;
  max-width: 50ch;
  color: var(--text-muted);
}

.cta .btn {
  background: var(--text-main);
  color: var(--bg-main);
  white-space: nowrap;
  font-size: 1rem;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1;
}

.cta .btn:hover {
  background: var(--accent-glow);
  color: var(--bg-main);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Stagger reveals */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1060px) {

  .hero-wrap,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 600px;
    margin: 0 auto;
  }

  .color-bands,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 4rem);
  }

  .hero {
    padding: 3rem 0;
  }

  .color-bands,
  .workflow,
  .signal-list {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}