/* ============================================
   SOTTOSCRIBE SHARED STYLES
   Common CSS for all pages
   ============================================ */

/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-grey: #1a1a1a;
  --clr-sage-dark: #4a5d3a;
  --clr-sage-mid: #6b8c4e;
  --clr-sage-light: #a8c686;
  --clr-sage-pale: #c8d4b8;
  --clr-off-white: #e8e6e0;
  --clr-text: #b8c4a8;
  --clr-text-muted: #8a9878;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--bg-grey);
  color: var(--clr-text);
  overflow-x: hidden;
}

/* ============================================
   ANIMATED BEAMS BACKGROUND
   ============================================ */
.bg-container {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

#beamsCanvas {
  position: absolute;
  inset: 0;
}

.bg-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.05);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.bg-edge-fades {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.bg-edge-fades .top-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg-grey), transparent);
}

.bg-edge-fades .bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-grey), transparent);
}

.bg-edge-fades .radial-glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(107, 140, 78, 0.06), transparent);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.site-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: -1;
}

.site-nav nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--clr-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--clr-sage-light);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--clr-off-white);
}

.site-nav .nav-cta {
  color: var(--clr-sage-light);
  background: rgba(107, 140, 78, 0.15);
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(107, 140, 78, 0.25);
  transition: all 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: rgba(107, 140, 78, 0.25);
  border-color: rgba(107, 140, 78, 0.4);
}

/* Mobile hamburger menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text-muted);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle:hover span {
  background: var(--clr-sage-light);
}

@media (max-width: 600px) {
  .site-nav {
    padding: 12px 16px;
  }

  .site-nav nav {
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.menu-open nav {
    max-height: 300px;
    padding: 16px 0;
  }

  .site-nav nav a {
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.menu-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .site-nav.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.menu-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mesh gradient overlays */
.page-wrapper::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(74, 93, 58, 0.25), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.page-wrapper::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(74, 93, 58, 0.18), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

/* Large hero waveform */
.waveform-hero {
  position: absolute;
  top: 80px;
  left: -10%;
  right: -10%;
  height: 300px;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.waveform-hero svg {
  width: 100%;
  height: 100%;
}

/* Content container */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  position: relative;
  z-index: 2;
  flex: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--clr-off-white);
  font-weight: 500;
}

h1 {
  font-size: clamp(36px, 8vw, 48px);
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: var(--clr-text-muted);
  margin-bottom: 50px;
  text-align: center;
  font-size: 18px;
}

h2 {
  font-size: clamp(24px, 5vw, 30px);
  margin: 60px 0 24px;
  padding-top: 20px;
}

h3 {
  font-size: 18px;
  margin: 32px 0 14px;
  color: var(--clr-sage-light);
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--clr-sage-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.highlight {
  color: var(--clr-sage-light);
  font-style: italic;
}

/* ============================================
   GLASS CARDS
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 28px;
  border-radius: 16px;
  margin: 20px 0;
}

.glass-card p {
  margin: 0;
  font-size: 15px;
}

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
  background: rgba(107, 140, 78, 0.1);
  border-left: 3px solid var(--clr-sage-mid);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.callout p {
  margin: 0;
  font-size: 15px;
}

.callout-warning {
  background: rgba(200, 150, 50, 0.1);
  border-left-color: #c89632;
}

/* ============================================
   SHINY CTA BUTTON
   ============================================ */
.shiny-cta {
  --bg-dark: #252525;

  position: relative;
  display: inline-block;
  border-radius: 9999px;
  padding: 18px 40px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--clr-off-white);
  background: var(--bg-dark);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.shiny-cta:hover {
  box-shadow: 0 0 40px rgba(107, 140, 78, 0.35);
  text-decoration: none;
}

.shiny-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    var(--clr-sage-dark) 5%,
    var(--clr-sage-light) 12%,
    var(--clr-sage-dark) 20%,
    transparent 30%,
    transparent 100%
  );
  z-index: -2;
  opacity: 0.7;
  animation: spin 12s linear infinite;
}

.shiny-cta:hover::before {
  opacity: 1;
}

.shiny-cta::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: inherit;
  background: var(--bg-dark);
  z-index: -1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  text-align: center;
  padding: 50px 24px 40px;
  font-size: 14px;
  color: var(--clr-text-muted);
}

footer a {
  color: var(--clr-text-muted);
}

footer a:hover {
  color: var(--clr-sage-light);
}

footer nav {
  margin-bottom: 20px;
}

footer nav a {
  margin: 0 12px;
}

/* ============================================
   LISTS
   ============================================ */
ul {
  margin: 16px 0 24px 24px;
}

li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ============================================
   KEYBOARD SHORTCUTS
   ============================================ */
kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--clr-off-white);
}

/* ============================================
   TABLES
   ============================================ */
.command-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  overflow: hidden;
}

.command-table th,
.command-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.command-table th {
  font-weight: 500;
  color: var(--clr-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.command-table tr:last-child td {
  border-bottom: none;
}

.command-table td:first-child {
  color: var(--clr-off-white);
}

.command-table code {
  background: rgba(107, 140, 78, 0.15);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--clr-sage-light);
  font-family: 'Inter', sans-serif;
}

/* ============================================
   STEP LISTS
   ============================================ */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 24px 0;
}

.steps li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--clr-sage-dark);
  color: var(--clr-off-white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .page {
    padding: 50px 20px 80px;
  }

  h2 {
    margin: 50px 0 20px;
  }

  .command-table {
    font-size: 13px;
  }

  .command-table th,
  .command-table td {
    padding: 12px 14px;
  }

  .glass-card {
    padding: 22px 24px;
  }
}
