/* ==========================================================================
   FAIRBROOK ASSOCIATES — DESIGN SYSTEM & STYLESHEET
   Brand Identity: Clarity for what's next.
   Colors: Deep Atlantic, Modern Teal, Soft Mint, Cloud Ivory, Slate Mist
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* Brand Core Colors */
  --color-primary: #102F35;          /* Deep Atlantic */
  --color-primary-dark: #09252A;     /* Dark Alternative Surface */
  --color-secondary: #007F77;        /* Modern Teal */
  --color-secondary-hover: #006861;
  --color-accent: #B9E8D7;           /* Soft Mint */
  --color-accent-soft: #EAF7F0;      /* Pale Mint Surface */
  --color-bg: #F6F8F5;               /* Cloud Ivory */
  --color-white: #FFFFFF;
  --color-border: #DFE9E5;
  --color-border-subtle: #E8EFEA;
  
  /* Typography Colors */
  --color-text-main: #102F35;
  --color-text-muted: #657779;       /* Slate Mist */
  --color-text-light: #8E9F9F;
  --color-text-inverse: #FFFFFF;
  --color-text-inverse-muted: #B4C6C4;

  /* Feedback Colors */
  --color-success: #147D62;
  --color-error: #B93F49;
  --color-warning: #D9822B;

  /* Typography Scale */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(16, 47, 53, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 47, 53, 0.06);
  --shadow-lg: 0 16px 40px rgba(16, 47, 53, 0.08);
  --shadow-hover: 0 20px 48px rgba(16, 47, 53, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 127, 119, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --max-width: 1320px;
}

/* Base Reset & Standards */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

/* Focus Outlines */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.lead-p {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

.eyebrow-mint {
  color: var(--color-accent);
}
.eyebrow-mint::before {
  background-color: var(--color-accent);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.section-sm {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-mint {
  background-color: var(--color-accent-soft);
}

.section-white {
  background-color: var(--color-white);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}
.section-dark p {
  color: var(--color-text-inverse-muted);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(246, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(16, 47, 53, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 1002;
}

.nav-brand img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hide mobile-only action buttons from desktop menu! */
.nav-menu-actions {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  white-space: nowrap;
  font-weight: 600;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
  z-index: 1002;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Refined responsiveness for tablets & intermediate laptop widths */
@media (max-width: 1320px) and (min-width: 1141px) {
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn {
    padding: 9px 16px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1140px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2.5rem 3rem;
    gap: 1.25rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    transition: right var(--transition-normal);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu .nav-link {
    font-size: 1.0625rem;
    padding: 6px 0;
  }

  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-menu-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 127, 119, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background-color: var(--color-white);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-mint {
  background-color: var(--color-accent);
  color: var(--color-primary);
}
.btn-mint:hover {
  background-color: #A6DEC9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 232, 215, 0.4);
}

.btn-teal {
  background-color: var(--color-secondary);
  color: var(--color-white);
}
.btn-teal:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 127, 119, 0.35);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.btn-link:hover {
  color: var(--color-primary);
  gap: 10px;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}
.btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   CARDS & SURFACES
   ========================================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 127, 119, 0.3);
}

.card-mint {
  background: var(--color-accent-soft);
  border-color: #D3EFE1;
}

.card-dark {
  background: var(--color-primary-dark);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}
.card-dark h3, .card-dark h4 {
  color: var(--color-white);
}
.card-dark p {
  color: var(--color-text-inverse-muted);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-dark .card-icon {
  background: rgba(0, 127, 119, 0.25);
  color: var(--color-accent);
}

.card-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--color-bg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-secondary);
  border: 1px solid #D0EDE0;
}
.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  border-color: rgba(185, 232, 215, 0.2);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  margin-bottom: 0.5rem;
}

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

.hero-micro-support {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sculpture-container {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sculpture-glow {
  position: absolute;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 232, 215, 0.5) 0%, rgba(0, 127, 119, 0.15) 50%, transparent 75%);
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.sculpture-img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: auto;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 25px 40px rgba(16, 47, 53, 0.12));
  animation: floatSculpture 7s ease-in-out infinite;
}

@keyframes floatSculpture {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-micro-support {
    justify-content: center;
  }
  .sculpture-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   INTERACTIVE DASHBOARD SHOWCASE
   ========================================================================== */
.dashboard-preview {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-header {
  padding: 1.25rem 2rem;
  background: #FAFCF9;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(20, 125, 98, 0.2);
}

.dash-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-tab {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-tab.active,
.dash-tab:hover {
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.dash-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .dash-body {
    grid-template-columns: 1fr;
  }
}

.dash-chart-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-stat-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.dash-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.dash-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-success);
  background: #EBF8F2;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.chart-svg-container {
  width: 100%;
  height: 240px;
  background: #F9FBFA;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dash-allocation-panel {
  background: #F8FAF7;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.alloc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alloc-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
}

.alloc-bar-bg {
  width: 100%;
  height: 8px;
  background: #E5EFEA;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.alloc-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

/* ==========================================================================
   ACCORDIONS (FAQ)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
}

.faq-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.faq-button:hover {
  color: var(--color-secondary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-content p {
  padding-bottom: 1.25rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.faq-item.active .faq-content {
  max-height: 400px;
}

/* ==========================================================================
   TABLES (PROFESSIONAL ACCOUNTS COMPARISON)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.comparison-table th {
  background: #F8FAF7;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

.comparison-table tr:hover td {
  background: #FAFBF9;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 127, 119, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
}
.form-checkbox input {
  margin-top: 4px;
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   DISCLAIMERS & CALLOUT BOXES
   ========================================================================== */
.disclaimer-box {
  background: #F4F8F6;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.risk-alert-box {
  background: #FFF7F6;
  border: 1px solid #F6D6D3;
  border-left: 4px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #7A282D;
  font-size: 0.875rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  height: 42px;
  width: auto;
  display: block;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--color-text-inverse-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-disclaimers {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #889D9D;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #7E9393;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   ARTICLE / EDITORIAL STYLES
   ========================================================================== */
.article-header {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2D484D;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: #385055;
  font-size: 1.0625rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #385055;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.takeaway-card {
  background: var(--color-accent-soft);
  border: 1px solid #D2EEE0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.takeaway-card h4 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border-left: 4px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  color: var(--color-secondary);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   MODERN EXPERIENCE LAYER
   Dynamic motion, glass surfaces, aurora lighting & micro-interactions.
   Purely presentational — content and imagery are unchanged.
   ========================================================================== */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gradient-brand: linear-gradient(135deg, #0A3A40 0%, #007F77 55%, #2BB5A6 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(185,232,215,0.55), rgba(0,127,119,0.12));
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow-float: 0 30px 60px -20px rgba(16, 47, 53, 0.25);
}

/* Smooth cross-page navigation (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both fadeOutSoft; }
::view-transition-new(root) { animation: 0.45s var(--ease-out-expo) both fadeInSoft; }
.site-header { view-transition-name: site-header; }
@keyframes fadeOutSoft { to { opacity: 0; } }
@keyframes fadeInSoft { from { opacity: 0; } }

::selection { background: var(--color-secondary); color: #fff; }

/* Ambient page background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -5%, rgba(185, 232, 215, 0.55), transparent 60%),
    radial-gradient(800px 560px at 100% 12%, rgba(0, 127, 119, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(185, 232, 215, 0.35), transparent 60%);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 2000;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #B9E8D7, #007F77, #102F35);
  box-shadow: 0 0 12px rgba(0, 127, 119, 0.55);
  pointer-events: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 12px 28px rgba(0, 127, 119, 0.35);
  opacity: 0;
  translate: 0 20px;
  pointer-events: none;
  transition: opacity .35s var(--ease-out-expo), translate .35s var(--ease-out-expo), box-shadow .3s;
}
.back-to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 16px 36px rgba(0, 127, 119, 0.5); translate: 0 -3px; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Header: glass + shrink on scroll ---------- */
.site-header {
  background: rgba(246, 248, 245, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 40px -12px rgba(16, 47, 53, 0.14);
}
.nav-container { transition: height .35s var(--ease-out-expo); }
.nav-brand img { transition: height .35s var(--ease-out-expo), transform .3s var(--ease-out-expo); }
.site-header.scrolled .nav-container { height: 68px; }
.site-header.scrolled .nav-brand img { height: 38px; }

.nav-link::after {
  height: 2px;
  background: linear-gradient(90deg, #007F77, #2BB5A6);
  transform-origin: left;
}
.nav-link:hover { transform: translateY(-1px); }

/* ---------- Buttons: gradient, shimmer & magnetic ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  translate: var(--tx, 0) var(--ty, 0);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s var(--ease-out-expo),
              background-color .3s, border-color .3s, color .3s, translate .25s var(--ease-out-expo);
}
.btn-primary {
  background-image: linear-gradient(135deg, #0F3A41 0%, #102F35 100%);
}
.btn-primary:hover {
  background-image: var(--gradient-brand);
  box-shadow: 0 12px 28px -6px rgba(0, 127, 119, 0.5);
}
.btn-teal { background-image: var(--gradient-brand); }
.btn:is(.btn-primary, .btn-teal, .btn-mint, .btn-outline-white)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.30) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out-expo);
}
.btn:is(.btn-primary, .btn-teal, .btn-mint, .btn-outline-white):hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-secondary { backdrop-filter: blur(6px); background-color: rgba(255,255,255,0.45); }

/* ---------- Typography & eyebrows ---------- */
.eyebrow {
  padding: 7px 16px 7px 14px;
  background: rgba(185, 232, 215, 0.35);
  border: 1px solid rgba(0, 127, 119, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  box-shadow: 0 0 0 0 rgba(0, 127, 119, 0.5);
  animation: dotPulse 2.4s ease-out infinite;
}
.eyebrow-mint {
  background: rgba(185, 232, 215, 0.12);
  border-color: rgba(185, 232, 215, 0.25);
}
.eyebrow-mint::before { animation-name: dotPulseMint; }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 127, 119, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(0, 127, 119, 0); }
}
@keyframes dotPulseMint {
  0% { box-shadow: 0 0 0 0 rgba(185, 232, 215, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(185, 232, 215, 0); }
}

.hero-title,
.article-header h1 {
  background: linear-gradient(110deg, #102F35 0%, #102F35 35%, #007F77 58%, #2BB5A6 72%, #102F35 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textSheen 9s ease-in-out infinite alternate;
  padding-bottom: 0.08em;
}
@keyframes textSheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Aurora hero & dark sections ---------- */
main > section:first-of-type {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
main > section:first-of-type::before,
main > section:first-of-type::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
main > section:first-of-type::before {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(0,127,119,0.30), transparent 65%);
  animation: auroraA 16s ease-in-out infinite alternate;
}
main > section:first-of-type::after {
  width: 520px; height: 520px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, rgba(185,232,215,0.75), transparent 65%);
  animation: auroraB 19s ease-in-out infinite alternate;
}
@keyframes auroraA {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-90px, 70px, 0) scale(1.18); }
}
@keyframes auroraB {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(110px, -60px, 0) scale(0.92); }
}

/* Subtle dotted grid for depth on hero */
main > section:first-of-type > .container { position: relative; z-index: 1; }
main > section:first-of-type > .container::before {
  content: '';
  position: absolute;
  inset: -40px 0;
  z-index: -1;
  background-image: radial-gradient(rgba(16,47,53,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.section-dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0,127,119,0.45), transparent 60%),
    radial-gradient(700px 480px at -5% 110%, rgba(43,181,166,0.22), transparent 60%),
    linear-gradient(160deg, #0C262B 0%, #102F35 55%, #0A2226 100%);
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(185,232,215,0.07) 70deg, transparent 140deg, transparent 360deg);
  animation: spinSlow 38s linear infinite;
  pointer-events: none;
}
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(185,232,215,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.section-dark:hover::after { opacity: 1; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.section-mint {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(0,127,119,0.08), transparent 60%),
    var(--color-accent-soft);
}

/* ---------- Hero load-in choreography ---------- */
.hero-content > * {
  animation: heroRise 1s var(--ease-out-expo) both;
}
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .27s; }
.hero-content > *:nth-child(4) { animation-delay: .38s; }
.hero-content > *:nth-child(5) { animation-delay: .5s; }
.hero-content > *:nth-child(6) { animation-delay: .62s; }
.hero-visual { animation: heroVisual 1.4s var(--ease-out-expo) .2s both; }
@keyframes heroRise {
  from { opacity: 0; translate: 0 34px; filter: blur(8px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes heroVisual {
  from { opacity: 0; scale: 0.9; translate: 40px 0; filter: blur(12px); }
  to   { opacity: 1; scale: 1; translate: 0 0; filter: blur(0); }
}

/* Hero sculpture: orbit rings + mouse parallax */
.sculpture-container {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .5s var(--ease-out-expo);
}
.sculpture-container::before,
.sculpture-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sculpture-container::before {
  inset: 2%;
  border: 1px dashed rgba(0, 127, 119, 0.28);
  animation: spinSlow 48s linear infinite;
}
.sculpture-container::after {
  inset: 11%;
  border: 1px solid rgba(185, 232, 215, 0.9);
  animation: spinSlow 32s linear infinite reverse;
  box-shadow: inset 0 0 40px rgba(185,232,215,0.35);
}
.sculpture-container > .sculpture-img { border-radius: var(--radius-xl); }

/* ---------- Scroll reveal ---------- */
.motion-ready .reveal:not(.is-visible) { opacity: 0; }
.motion-ready .reveal.is-visible {
  opacity: 1;
  animation: revealUp .95s var(--ease-out-expo) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.motion-ready .reveal.reveal-scale.is-visible { animation-name: revealScale; }
.motion-ready .reveal.reveal-left.is-visible  { animation-name: revealLeft; }
.motion-ready .reveal.reveal-right.is-visible { animation-name: revealRight; }
@keyframes revealUp    { from { opacity: 0; translate: 0 38px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes revealScale { from { opacity: 0; scale: 0.94; translate: 0 24px; filter: blur(6px); } to { opacity: 1; scale: 1; translate: 0 0; filter: blur(0); } }
@keyframes revealLeft  { from { opacity: 0; translate: -42px 0; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes revealRight { from { opacity: 0; translate: 42px 0; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* ---------- Cards: glass, spotlight, tilt ---------- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 10px 30px -14px rgba(16,47,53,0.16);
  transform-style: preserve-3d;
  transition: transform .45s var(--ease-out-expo), box-shadow .45s var(--ease-out-expo),
              border-color .3s, background .3s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(0,127,119,0.11), transparent 65%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, #B9E8D7, #007F77, #2BB5A6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out-expo);
  pointer-events: none;
}
.card:hover {
  transform: perspective(1000px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 34px 60px -22px rgba(16,47,53,0.28), 0 0 0 1px rgba(0,127,119,0.18);
  border-color: rgba(0, 127, 119, 0.35);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card > * { position: relative; z-index: 1; }

.card-mint { background: linear-gradient(145deg, rgba(234,247,240,0.95), rgba(214,240,228,0.8)); }
.card-dark {
  background: linear-gradient(150deg, rgba(14,48,54,0.96), rgba(9,37,42,0.98));
  border-color: rgba(185,232,215,0.14);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
.card-dark::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(185,232,215,0.14), transparent 65%); }

.card-icon {
  background: var(--gradient-brand-soft);
  box-shadow: inset 0 0 0 1px rgba(0,127,119,0.12);
  transition: transform .5s var(--ease-spring), background .3s, color .3s;
}
.card:hover .card-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.08);
  background: var(--gradient-brand);
  color: #fff;
}

.card-image-wrap { position: relative; box-shadow: 0 12px 28px -14px rgba(16,47,53,0.35); }
.card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16,47,53,0.22));
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card:hover .card-image-wrap::after { opacity: 1; }
.card:hover .card-image-wrap img { transform: scale(1.08); }

.badge { transition: transform .3s var(--ease-spring), background .3s; }
.card:hover .badge { transform: translateY(-1px) scale(1.04); }

.btn-link svg { transition: transform .3s var(--ease-out-expo); }
.btn-link:hover svg { transform: translateX(5px); }

/* ---------- Dashboard ---------- */
.dashboard-preview {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float);
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
}
.dashboard-preview:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -24px rgba(16,47,53,0.32); }
.dash-status-dot { animation: statusPulse 2s ease-out infinite; }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(20,125,98,0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(20,125,98,0); }
}
.dash-tab { transition: all .3s var(--ease-out-expo); }
.dash-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
#chartPath.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 1.7s var(--ease-out-expo) forwards;
  filter: drop-shadow(0 6px 10px rgba(0,127,119,0.35));
}
#chartArea.draw { animation: areaFade 1.6s ease-out both; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes areaFade { from { opacity: 0; } to { opacity: 1; } }
.alloc-bar-fill { position: relative; overflow: hidden; transition: width 1.4s var(--ease-out-expo); }
.alloc-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%);
  animation: barShine 3.2s ease-in-out infinite;
}
@keyframes barShine { 60%, 100% { transform: translateX(100%); } }

/* ---------- FAQ, tables, forms, callouts ---------- */
.faq-item { background: var(--glass-bg); backdrop-filter: blur(10px); transition: all .4s var(--ease-out-expo); }
.faq-item:hover { transform: translateX(4px); border-color: rgba(0,127,119,0.35); }
.faq-item.active { box-shadow: 0 18px 36px -18px rgba(0,127,119,0.35); background: #fff; }
.faq-content { transition: max-height .55s var(--ease-out-expo); }
.faq-chevron { transition: transform .45s var(--ease-spring); }

.comparison-table tbody tr { transition: background .25s, transform .25s var(--ease-out-expo); }
.comparison-table tbody tr:hover td { background: var(--color-accent-soft); }

.form-input, .form-select, .form-textarea { transition: all .3s var(--ease-out-expo); background: rgba(255,255,255,0.85); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(0,127,119,0.14), 0 12px 24px -12px rgba(0,127,119,0.4);
}

.disclaimer-box, .takeaway-card, .risk-alert-box { transition: transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo); }
.disclaimer-box:hover, .takeaway-card:hover, .risk-alert-box:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(16,47,53,0.3); }
.takeaway-card { background: linear-gradient(145deg, #EAF7F0, #DDF2E8); }

.breadcrumbs a { position: relative; }
.breadcrumbs a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out-expo);
}
.breadcrumbs a:hover::after { transform: scaleX(1); transform-origin: left; }
.breadcrumbs a:hover { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(800px 380px at 90% -10%, rgba(0,127,119,0.28), transparent 60%),
    linear-gradient(180deg, #0A2226 0%, #08201F 100%);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, #B9E8D7, #007F77, #B9E8D7, transparent);
  background-size: 200% 100%;
  animation: footerLine 6s linear infinite;
}
@keyframes footerLine { to { background-position: -200% 0; } }
.footer-link {
  display: inline-block;
  position: relative;
  transition: color .3s, transform .35s var(--ease-out-expo);
}
.footer-links .footer-link:hover { transform: translateX(6px); }
.footer-col h4 { position: relative; padding-bottom: 0.9rem; }
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #B9E8D7, #007F77);
  transition: width .4s var(--ease-out-expo);
}
.footer-col:hover h4::after { width: 56px; }
.footer-logo { transition: transform .4s var(--ease-out-expo), filter .4s; }
.footer-logo:hover { transform: scale(1.04); filter: drop-shadow(0 6px 16px rgba(185,232,215,0.35)); }

/* Toast polish */
.toast { backdrop-filter: blur(12px); background: rgba(16,47,53,0.94); }

/* Touch / small screens: calmer effects */
@media (hover: none) {
  .card:hover { transform: translateY(-4px); }
  .card::before { display: none; }
}
@media (max-width: 768px) {
  .back-to-top { right: 16px; bottom: 16px; }
  main > section:first-of-type::before { width: 360px; height: 360px; }
  main > section:first-of-type::after { width: 340px; height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal:not(.is-visible) { opacity: 1; }
  .hero-content > *, .hero-visual { animation: none !important; }
  .scroll-progress { display: none; }
}

/* Eyebrow pills must hug their text inside flex/column parents */
.eyebrow { width: fit-content; max-width: 100%; }

/* ==========================================================================
   EDITORIAL LAYER (v2)
   Bolder type, floating rounded panels, bento grids, pill UI,
   scroll-linked parallax. CSS-only restyle — no content changes.
   ========================================================================== */

:root {
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --panel-gap: clamp(8px, 1.4vw, 24px);
  --panel-radius: clamp(28px, 4.2vw, 60px);
}

/* ---------- Display typography ---------- */
h1 {
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 800;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  letter-spacing: -0.038em;
  line-height: 1.07;
  font-weight: 800;
}
h3 { letter-spacing: -0.025em; }
.lead-p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.55; }
.hero-grid { grid-template-columns: 1.25fr 0.75fr; }
.hero { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(5rem, 10vw, 9rem); }

.section {
  padding-top: clamp(5rem, 10vw, 9.5rem);
  padding-bottom: clamp(5rem, 10vw, 9.5rem);
}
.section-sm {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

/* Editorial section numbering on eyebrows (decorative counter) */
main { counter-reset: sec; }
main > section:not(:first-of-type) { counter-increment: sec; }
main > section:not(:first-of-type) .eyebrow {
  background: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
  letter-spacing: 0.18em;
}
main > section:not(:first-of-type) .eyebrow::before {
  content: counter(sec, decimal-leading-zero) ' \2014';
  width: auto; height: auto;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
  animation: none;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

/* ---------- Floating rounded panels ---------- */
.section-dark,
.section-mint {
  margin-left: var(--panel-gap);
  margin-right: var(--panel-gap);
  margin-top: var(--panel-gap);
  margin-bottom: var(--panel-gap);
  border-radius: var(--panel-radius);
}
.section-white {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}
.site-footer {
  margin-left: var(--panel-gap);
  margin-right: var(--panel-gap);
  margin-bottom: var(--panel-gap);
  border-radius: var(--panel-radius);
  border: none;
}
.site-footer .container { max-width: var(--max-width); }

/* ---------- Pill navigation & buttons ---------- */
.btn { border-radius: var(--radius-full); padding: 14px 30px; }
.nav-actions .btn { padding: 11px 24px; }
.btn-secondary { border-color: rgba(16, 47, 53, 0.14); }

.nav-link {
  padding: 9px 12px;
  margin: 0 -8px;
  border-radius: var(--radius-full);
  transition: color .3s, background .3s var(--ease-out-expo);
}
.nav-link::after { display: none; }
.nav-link:hover { background: rgba(185, 232, 215, 0.45); transform: none; }
.nav-link.active {
  background: rgba(0, 127, 119, 0.12);
  color: var(--color-secondary);
}
@media (max-width: 1140px) {
  .nav-link { margin: 0; padding: 8px 14px; }
}

/* ---------- Bento & staggered grids (desktop) ---------- */
@media (min-width: 1025px) {
  /* Three-up grids: editorial vertical stagger */
  main .grid-3:not(:has(> :nth-child(4))) { align-items: start; }
  main .grid-3:not(:has(> :nth-child(4))) > :nth-child(2) { margin-top: clamp(1.5rem, 4vw, 4.5rem); }

  /* Six-up grids: bento mosaic (7/5 · 5/7 · 6/6) */
  main .grid-3:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
  }
  main .grid-3:has(> :nth-child(6):last-child) > * { grid-column: span 4; }
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(1) { grid-column: span 7; }
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(2) { grid-column: span 5; }
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(3) { grid-column: span 5; }
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(4) { grid-column: span 7; }
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(5),
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(6) { grid-column: span 6; }
  /* wide image cards crop to a cinematic ratio */
  main .grid-3:has(> :nth-child(6):last-child) .card-image-wrap { aspect-ratio: 21 / 9; }
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(2) .card-image-wrap,
  main .grid-3:has(> :nth-child(6):last-child) > :nth-child(3) .card-image-wrap { aspect-ratio: 16 / 10; }
}
.grid { gap: clamp(1.25rem, 2.2vw, 2.25rem); }

/* Cards: roomier, rounder */
.card { padding: clamp(2rem, 3.4vw, 3rem); border-radius: var(--radius-lg); }
.card-image-wrap { border-radius: 20px; }
.card h3 { margin-bottom: 0.25rem; }
.badge { padding: 5px 14px; }

/* ---------- Scroll-linked image parallax (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  .card-image-wrap img {
    scale: 1.14;
    animation: imgDrift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes imgDrift {
    from { translate: 0 -5%; }
    to   { translate: 0 5%; }
  }
  .hero-visual {
    animation: heroVisual 1.4s var(--ease-out-expo) .2s both;
  }
  .section-dark > .container,
  .section-mint > .container {
    animation: panelRise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  @keyframes panelRise {
    from { opacity: 0.2; translate: 0 60px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

/* ---------- Word-by-word headline reveal ---------- */
.motion-ready .split-heading .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.motion-ready .split-heading .word-inner {
  display: inline-block;
  translate: 0 112%;
  rotate: 4deg;
  transform-origin: 0 100%;
  transition: translate 1s var(--ease-out-expo), rotate 1s var(--ease-out-expo);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.motion-ready .split-heading.in .word-inner { translate: 0 0; rotate: 0deg; }
.motion-ready .reveal.split-heading:not(.is-visible) { opacity: 1; }
.motion-ready .reveal.split-heading.is-visible { animation: none; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3000;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s, width .35s var(--ease-out-expo), height .35s var(--ease-out-expo),
              background .3s, border-color .3s;
}
.cursor-dot { width: 7px; height: 7px; background: var(--color-secondary); margin: -3.5px 0 0 -3.5px; }
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(0, 127, 119, 0.45);
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(185, 232, 215, 0.28);
  border-color: rgba(0, 127, 119, 0.7);
}
.cursor-hover .cursor-dot { opacity: 0; }

/* Footer wordmark space & calmer small screens */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .section-dark, .section-mint, .site-footer { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}
