:root {
  /* Light, green-tinted system */
  --bg-primary: #173826;
  --bg-secondary: rgba(236, 253, 245, 0.72);
  /* mint glass */
  --bg-elevated: rgba(255, 255, 255, 0.72);
  /* white glass */

  --text-primary: #173826;
  --text-secondary: rgba(23, 56, 38, 0.78);
  --text-muted: rgba(23, 56, 38, 0.55);

  --accent: #34d399;
  /* emerald-400 */
  --accent-hover: #6ee7b7;
  /* emerald-300 */
  --accent-glow: rgba(52, 211, 153, 0.35);
  --accent-subtle: rgba(52, 211, 153, 0.18);

  --border: rgba(23, 56, 38, 0.18);

  /* Page background gradient (was "Unified" gradient) */
  --gradient-start: #34d399;
  --gradient-mid: #ecfdf5;
  --gradient-end: #ffffff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}



body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui,
    sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background (now the page background gradient) */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg,
      var(--gradient-start) 0%,
      var(--gradient-mid) 55%,
      var(--gradient-end) 100%);
  background-size: 220% 220%;
  animation: gradientShift 16s ease infinite;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Floating Orbs (green-tinted) */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
  animation: floatOrb 20s ease-in-out infinite;
  z-index: -1;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle,
      rgba(52, 211, 153, 0.35) 0%,
      transparent 70%);
  top: -220px;
  right: -220px;
  animation-delay: 0s;
}

.orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle,
      rgba(16, 185, 129, 0.28) 0%,
      transparent 70%);
  bottom: 18%;
  left: -140px;
  animation-delay: -7s;
  animation-duration: 25s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
      rgba(52, 211, 153, 0.22) 0%,
      transparent 70%);
  top: 52%;
  right: 12%;
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -40px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

/* Navigation - ALWAYS VISIBLE AT TOP */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(236, 253, 245, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Hide navbar on scroll down (mobile only) */
.nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-container,
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(23, 56, 38, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 800;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bg-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--bg-primary);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  box-shadow: 0 14px 36px rgba(23, 56, 38, 0.18);
}

.nav-cta-secondary {
  background: transparent;
  border: 2px solid var(--bg-primary, #173826);
  color: var(--bg-primary, #173826);
  box-shadow: none;
}

.nav-cta:hover,
.nav-cta-secondary:hover {
  transform: translateY(-1px);
  background: #0f2d1e;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(23, 56, 38, 0.22);
}

.nav-links a:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid rgba(23, 56, 38, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  /* Ensure flex behavior when visible */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle span+span {
  margin-top: 4px;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  text-shadow: 0 10px 40px rgba(23, 56, 38, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image {
  position: relative;
}

.hero-image.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 32px 80px -20px rgba(23, 56, 38, 0.3),
    0 0 0 1px rgba(23, 56, 38, 0.05) inset;
}



/* IMPORTANT: word highlight is now ink (background owns the gradient) */
.hero-line .gradient-text {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 3rem;
  font-weight: 650;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* Magnetic CTA button */
.btn-primary {
  background: var(--bg-primary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 18px 60px rgba(23, 56, 38, 0.18);
  transform-style: preserve-3d;
  will-change: transform;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%,
      rgba(255, 255, 255, 0.26),
      transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg,
      rgba(52, 211, 153, 0.7),
      rgba(16, 185, 129, 0.35),
      rgba(52, 211, 153, 0.7));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: #0f2d1e;
  box-shadow: 0 22px 70px rgba(23, 56, 38, 0.22);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover::after {
  opacity: 0.55;
}

.btn-primary:focus-visible {
  outline: 2px solid rgba(23, 56, 38, 0.55);
  outline-offset: 3px;
}

.link-secondary {
  color: rgba(23, 56, 38, 0.82);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  position: relative;
  transition: color 0.2s ease;
}

.link-secondary::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(23, 56, 38, 0.35);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-secondary:hover {
  color: var(--text-primary);
}

.link-secondary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-secondary:focus-visible {
  outline: 2px solid rgba(23, 56, 38, 0.55);
  outline-offset: 4px;
}

/* Hero Shape */
.hero-shape {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      rgba(23, 56, 38, 0.2) 0%,
      rgba(23, 56, 38, 0.05) 45%,
      transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

/* Narrative */
.narrative {
  padding: 3rem 1rem;
  position: relative;
}

.narrative-content {
  max-width: 1000px;
  margin: 0 auto;
}

.narrative-text {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Scroll-driven glow words */
.narrative-text .glow-word {
  display: inline;
  color: rgba(23, 56, 38, 0.48);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.narrative-text .glow-word.active {
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(23, 56, 38, 0.12);
}

.narrative-text .glow-word.accent {
  color: rgba(23, 56, 38, 0.48);
}

.narrative-text .glow-word.accent.active {
  color: #0f2d1e;
  text-shadow: 0 0 55px rgba(52, 211, 153, 0.25);
}

.narrative-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(23, 56, 38, 0.75),
      rgba(52, 211, 153, 0.55),
      transparent);
  margin: 4rem 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.narrative-divider.visible {
  opacity: 1;
  transform: scaleX(1);
}

/* Product */
.product {
  padding: 3rem 1rem 5rem;
  position: relative;
  perspective: 1000px;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.product-label {
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
}

.product-label.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 760px;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
}

.product-title.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.product-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  font-weight: 650;
}

.product-desc.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* UI Mockup (light) + 3D hover */
.ui-mockup {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 26px 90px -35px rgba(23, 56, 38, 0.22),
    0 0 0 1px rgba(23, 56, 38, 0.05) inset;
  opacity: 0;
  transform: translateY(60px) scale(0.95) rotateX(10deg);
  transform-style: preserve-3d;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-mockup.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.ui-mockup:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 35px 120px -30px rgba(23, 56, 38, 0.24),
    0 0 0 1px rgba(23, 56, 38, 0.08) inset;
}


/* Parallax Shape */
.parallax-shape {
  position: absolute;
  right: -110px;
  top: 50%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(23, 56, 38, 0.14) 0%,
      rgba(23, 56, 38, 0.04) 45%,
      transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
}

/* Capabilities */
.capabilities {
  padding: 3rem 1rem;
  position: relative;
}

.capabilities-container {
  max-width: 900px;
  margin: 0 auto;
}

.capability {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-40px);
  filter: blur(10px);
}

.capability.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.capability:nth-child(even) {
  transform: translateX(40px);
  text-align: right;
}

.capability:nth-child(even) .capability-desc {
  margin-left: auto;
}

.capability-number {
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  color: var(--bg-primary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.capability-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.capability-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  font-weight: 650;
}

/* Trust */
.trust {
  padding: 3rem 1rem;
  background: rgba(236, 253, 245, 0.58);
  position: relative;
  overflow: hidden;
}

.trust::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--border),
      transparent);
}

.trust-container {
  max-width: 1000px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.trust-item {
  opacity: 0;
  transform: translateY(30px);
}

.trust-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:nth-child(2).visible {
  transition-delay: 0.1s;
}

.trust-item:nth-child(3).visible {
  transition-delay: 0.2s;
}

.trust-item:nth-child(4).visible {
  transition-delay: 0.3s;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(23, 56, 38, 0.18);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--bg-primary);
}

.trust-title {
  font-size: 1.125rem;
  font-weight: 950;
  margin-bottom: 0.5rem;
}

.trust-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 650;
}



/* Pricing Section - Card Layout Refactor */
.pricing {
  padding: 3rem 1rem;
  position: relative;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(52, 211, 153, 0.06) 50%,
      transparent 100%);
}

.pricing-container {
  max-width: 1200px;
  /* Increased for wider row */
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-label,
.pricing-title,
.pricing-subtitle {
  opacity: 0;
  transform: translateY(20px);
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  margin-bottom: 1.5rem;
}

.pricing-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.pricing-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 650;
}

.pricing-label.visible,
.pricing-title.visible,
.pricing-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-title.visible {
  transition-delay: 0.08s;
}

.pricing-subtitle.visible {
  transition-delay: 0.16s;
}

/* Billing Toggle */
.billing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
}

.billing-toggle-container.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s;
}

.toggle-label {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.toggle-label:hover {
  color: var(--text-primary);
}

.toggle-label.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.billing-toggle {
  position: relative;
  width: 64px;
  height: 32px;
  background: rgba(23, 56, 38, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.toggle-switch {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(23, 56, 38, 0.2);
}

.billing-toggle.yearly .toggle-switch {
  transform: translateX(32px);
}

.save-badge {
  background: var(--accent-subtle);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
  border: 1px solid var(--accent);
  margin-left: 0.5rem;
}

/* Card layout wrapper */
.pricing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  flex: 1 1 350px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  /* Added to fix absolute highlights */
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card.featured {
  background: linear-gradient(135deg,
      rgba(52, 211, 153, 0.16) 0%,
      rgba(236, 253, 245, 0.85) 100%);
  border-color: rgba(23, 56, 38, 0.28);
  box-shadow: 0 32px 100px -40px rgba(23, 56, 38, 0.25);
  position: relative;
  z-index: 2;
  transform: scale(1.05);
  /* Slight pop */
}

.pricing-card.featured.visible {
  transform: translateY(0) scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 120px -50px rgba(23, 56, 38, 0.3);
}

.pricing-card.featured:hover {
  transform: translateY(-8px) scale(1.06);
}

.card-header {
  margin-bottom: 2rem;
}

.card-tier {
  font-size: 0.875rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-price {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 980;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.card-price .currency {
  font-size: 0.4em;
  vertical-align: super;
  margin-right: 0.1em;
  color: var(--text-secondary);
}

.card-price .period {
  font-size: 0.25em;
  font-weight: 800;
  color: var(--text-muted);
  margin-left: 0.25em;
}

.card-highlight {
  display: inline-block;
  background: var(--bg-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 950;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  letter-spacing: 0.05em;
}

.card-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 650;
  flex-grow: 1;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.card-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 650;
  text-align: left;
}

.card-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--bg-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 950;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.card-cta-primary {
  background: var(--bg-primary);
  color: #fff;
  box-shadow: 0 18px 60px rgba(23, 56, 38, 0.18);
}

.card-cta-primary:hover {
  background: #0f2d1e;
  box-shadow: 0 22px 70px rgba(23, 56, 38, 0.22);
}

.card-cta-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.card-cta-secondary:hover {
  background: rgba(236, 253, 245, 0.85);
  border-color: rgba(23, 56, 38, 0.35);
}



/* CTA */
.cta {
  padding: 3rem 1rem 6rem;
  background: linear-gradient(180deg,
      rgba(236, 253, 245, 0.55) 0%,
      rgba(255, 255, 255, 0.2) 100%);
  text-align: center;
  position: relative;
}

.cta-container {
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 980;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.cta-title.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  font-weight: 650;
}

.cta-desc.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.cta-btn {
  opacity: 0;
  transform: translateY(20px);
}

.cta-btn.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-primary);
  /* #173826 */
  background: linear-gradient(135deg, #173826 0%, #0e2a1c 100%);
  color: #fff;
  border-top: 1px solid rgba(52, 211, 153, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(52, 211, 153, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-header {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-header img {
  height: 32px;
  filter: brightness(0) invert(1);
  /* White logo */
  opacity: 0.9;
}

.footer-header-sm {
  font-size: 0.725rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #34d399;
  /* emerald-400 accent for high visibility on dark */
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 240px;
  font-weight: 600;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.75rem;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  position: relative;
}

.footer-nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-gradient {
    animation: none;
  }

  .hero-sub,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    transform: translateY(30px);
    max-width: 600px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured.visible {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {

  .nav-container,
  .footer-container {
    padding: 0 1rem;
  }

  .nav {
    padding: 0.75rem 0;
  }

  .nav-container {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 1002;
    order: 3;
  }

  .nav-logo {
    order: 1;
    font-size: 1.1rem;
  }

  .nav-logo img {
    height: 40px;
  }

  /* Mobile menu - shown inline below logo when expanded */
  nav {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease,
      padding 0.3s ease;
  }

  body.nav-open nav {
    max-height: 600px;
    opacity: 1;
    padding-top: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    padding: 1rem 0;
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: transparent;
    color: var(--bg-primary);
  }

  .nav-actions {
    order: 5;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease,
      padding 0.3s ease;
  }

  body.nav-open .nav-actions {
    max-height: 200px;
    opacity: 1;
  }

  .nav-actions .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .nav-actions .nav-cta-secondary {
    background: transparent;
    color: var(--bg-primary);
    border: 2px solid var(--bg-primary);
  }

  /* Collapsed navbar state - hide menu when scrolling down */
  .nav.nav-hidden nav,
  .nav.nav-hidden .nav-actions {
    display: none;
  }

  .nav.nav-hidden .nav-toggle {
    /* Transform hamburger to chevron when collapsed */
    transform: rotate(0deg);
  }

  /* Ensure all hero sections have proper top padding */
  .hero {
    padding: calc(70px + 2rem) 1rem 3rem;
    min-height: 100vh;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .narrative {
    padding: 8rem 1rem;
  }

  .capabilities {
    padding: 6rem 1rem 4rem;
  }

  .capabilities-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .capability {
    margin-bottom: 3rem;
    text-align: left;
    transform: translateX(0) !important;
  }

  .capability:nth-child(even) {
    text-align: left;
    transform: translateX(0) !important;
  }

  .capability:nth-child(even) .capability-desc {
    margin-left: 0;
  }

  .capability-title {
    font-size: 1.4rem;
  }

  .capability-desc {
    font-size: 1rem;
    max-width: 100%;
  }

  .pricing {
    padding: 6rem 1rem;
  }

  .pricing-cards {
    gap: 1.5rem;
  }

  .section-hero {
    padding-top: calc(70px + 2rem);
  }

  .section-hero--terms {
    padding-top: calc(70px + 2rem);
    padding-bottom: 3rem;
  }

  .glass-card {
    padding: 2rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-tagline {
    margin: 0 auto;
  }
}

/* Forms & UI Components */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 1rem;
  box-shadow: 0 32px 100px -40px rgba(23, 56, 38, 0.25);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--bg-primary);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

.form-control::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.section-hero {
  padding-top: calc(1.15rem * 2 + 70px + 4rem);
  /* nav padding + logo height + extra space */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.section-hero--terms {
  padding-top: calc(1.15rem * 2 + 70px + 1.5rem);
  padding-bottom: 4rem;
  min-height: auto;
}

.form-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.form-full {
  grid-column: 1 / -1;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  z-index: 9999;
  transition: top 0.3s ease;
  font-weight: 950;
  box-shadow: 0 16px 40px rgba(23, 56, 38, 0.18);
}

.skip-link:focus {
  top: 1rem;
}

/* Contact Page Styles */
.contact-hero {
  padding: 10rem 1rem 6rem;
  position: relative;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 5rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
}

.contact-label.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
}

.contact-title.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  font-weight: 650;
}

.contact-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 26px 90px -35px rgba(23, 56, 38, 0.22);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 120px -30px rgba(23, 56, 38, 0.24);
  border-color: var(--accent);
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover .contact-icon {
  background: var(--accent);
  transform: scale(1.05);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--bg-primary);
  transition: stroke 0.3s ease;
}

.contact-card:hover .contact-icon svg {
  stroke: #fff;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 950;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-card-content {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 650;
}

.contact-link {
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 800;
  position: relative;
  transition: color 0.2s ease;
}

.contact-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(23, 56, 38, 0.12);
}

@media (max-width: 768px) {
  .contact-hero {
    padding: calc(70px + 2rem) 1.5rem 4rem;
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 2rem;
  }
}

/* Privacy Page Styles */
.privacy-hero {
  padding: 10rem 1rem 6rem;
  position: relative;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.privacy-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.privacy-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 650;
  font-style: italic;
}

.privacy-content {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3rem 1rem;
  box-shadow: 0 26px 90px -35px rgba(23, 56, 38, 0.22);
}

.privacy-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 650;
}

.privacy-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.privacy-section:first-of-type {
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

.privacy-section-title {
  font-size: 1.75rem;
  font-weight: 950;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.privacy-subsection-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.privacy-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.privacy-list {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.privacy-list li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  font-weight: 600;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.privacy-link {
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 800;
  position: relative;
  transition: color 0.2s ease;
  border-bottom: 2px solid var(--accent-subtle);
}

.privacy-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.privacy-section--contact {
  background: var(--accent-subtle);
  padding: 2rem;
  border-radius: 12px;
  border-top: none;
  margin-top: 3rem;
}

.privacy-content strong {
  color: var(--text-primary);
  font-weight: 900;
}

.privacy-content em {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .privacy-hero {
    padding: calc(70px + 2rem) 1.5rem 4rem;
  }

  .privacy-content {
    padding: 2rem;
  }

  .privacy-section-title {
    font-size: 1.5rem;
  }

  .privacy-subsection-title {
    font-size: 1.125rem;
  }
}

/* Documentation Page Styles */
.doc-hero {
  padding: 10rem 1rem 6rem;
  position: relative;
}

.doc-container {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 0 1rem;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(23, 56, 38, 0.05);
}

.doc-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-nav-item {
  margin-bottom: 0.2rem;
}

.doc-nav-link {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.doc-nav-link:hover {
  background: var(--accent-subtle);
  color: var(--bg-primary);
  transform: translateX(3px);
}

.doc-nav-link.active {
  background: var(--bg-primary);
  color: #fff;
}

.doc-content {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 70px -30px rgba(23, 56, 38, 0.15);
  margin-bottom: 4rem;
}

.doc-section {
  margin-bottom: 4.5rem;
}

.doc-section:last-child {
  margin-bottom: 1.5rem;
}

.doc-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.doc-section-title {
  font-size: 1.75rem;
  font-weight: 950;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--accent-subtle);
  padding-bottom: 0.75rem;
}

.doc-subsection-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.doc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.doc-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.4);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.doc-table th {
  background: var(--accent-subtle);
  color: var(--bg-primary);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-table td {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 5px solid var(--bg-primary);
  transition: transform 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
}

.doc-card-title {
  display: block;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.doc-list {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.doc-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  font-weight: 600;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.doc-step {
  margin-bottom: 2rem;
}

.doc-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.doc-step-number {
  width: 28px;
  height: 28px;
  background: var(--bg-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.doc-step-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .doc-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
    display: block;
    /* Switch to block to allow sticky header relative to viewport if needed, or keep grid */
  }

  .doc-sidebar {
    display: none;
    /* Hidden completely on mobile as requested */
  }

  .doc-sidebar.expanded {
    max-height: 500px;
    /* Enough to show all links */
    box-shadow: 0 16px 40px rgba(23, 56, 38, 0.15);
  }

  .doc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
  }

  .doc-sidebar-title {
    font-weight: 950;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: -0.01em;
  }

  .doc-menu-toggle {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .doc-sidebar.expanded .doc-menu-toggle {
    transform: rotate(180deg);
  }

  .doc-nav-collapse {
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 1.25rem 1.25rem;
  }

  .doc-sidebar.expanded .doc-nav-collapse {
    opacity: 1;
  }

  .doc-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
  }

  .doc-nav-item {
    margin-bottom: 0;
  }

  .doc-nav-link {
    padding: 0.75rem 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(23, 56, 38, 0.08);
  }

  .doc-nav-link:last-child {
    border-bottom: none;
  }

  .doc-nav-link:hover {
    background: transparent;
    color: var(--bg-primary);
    transform: translateX(5px);
  }

  .doc-nav-link.active {
    background: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(23, 56, 38, 0.15);
  }

  .doc-content {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .doc-hero {
    padding: calc(70px + 2rem) 1rem 3rem;
  }

  .doc-sidebar {
    position: sticky;
    top: calc(70px + 0.5rem);
    /* Aligned with navbar height + small gap */
    z-index: 100;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(23, 56, 38, 0.08);
  }

  .doc-content {
    padding: 2rem 1.25rem;
    border-radius: 12px;
  }

  .doc-title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .doc-section-title {
    font-size: 1.5rem;
  }

  .doc-subsection-title {
    font-size: 1.15rem;
    margin-top: 2rem;
  }

  .doc-text {
    font-size: 0.9rem;
  }

  .doc-table th,
  .doc-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
  }

  .doc-card {
    padding: 1.25rem;
  }

  .nav-actions .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .doc-container {
    padding: 0 0.75rem;
  }

  .doc-content {
    padding: 1.5rem 1rem;
  }

  .doc-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Desktop default styles for new elements */
@media (min-width: 901px) {
  .doc-sidebar-header {
    display: none;
  }

  .doc-nav-collapse {
    display: block;
    opacity: 1;
  }
}