:root {
  /* Light Mode */
  --primary: #005f73;
  --primary-light: #0a9396;
  --secondary: #94d2bd;
  --accent: #ee9b00;
  --dark: #001219;
  --light: #e9d8a6;
  --white: #ffffff;
  --text: #001219;
  --text-light: #555;
  --bg: #f8f9fa;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --border: rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
  --primary: #94d2bd;
  --primary-light: #0a9396;
  --secondary: #005f73;
  --accent: #ee9b00;
  --dark: #001219;
  --light: #001219;
  --white: #00222e;
  --text: #e9d8a6;
  --text-light: #94d2bd;
  --bg: #001219;
  --glass: rgba(0, 18, 25, 0.9);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --border: rgba(148, 210, 189, 0.1);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
nav {
  background: var(--glass);
  backdrop-filter: blur(10px);
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.cta-link {
  background: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: var(--white);
  font-weight: 700;
}

.nav-links a.cta-link:hover {
  background: var(--accent);
  color: var(--white);
}

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--text);
  transition: var(--transition);
}

.theme-btn:hover {
  border-color: var(--primary);
  background: rgba(148, 210, 189, 0.1);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 2rem;
    border-bottom: 2px solid var(--primary);
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q 25 25 50 50 T 100 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
  opacity: 0.3;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(238, 155, 0, 0.3);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 60px;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Single Content Styling */
.content-wrapper {
  background: var(--white);
  padding: 60px;
  border-radius: 20px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin-top: 2rem;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #444;
}

.placeholder-img {
  background: #eee;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #888;
  margin: 2rem 0;
  width: 100%;
  aspect-ratio: 16/9;
}

/* Sound Player */
.whale-sound-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.sound-icon {
  font-size: 3rem;
}

.play-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition);
}

.play-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* Seasonality Chart */
.seasonality-container {
  background: #f0f7f9;
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 4rem;
  border: 1px solid rgba(0, 95, 115, 0.1);
}

.seasonality-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.seasonality-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin: 2rem 0;
}

.month-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.month-name {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
}

.month-indicator {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  background: #dfe6e9;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.month-box.peak .month-indicator {
  background: var(--accent);
  transform: scaleY(1.3);
  box-shadow: 0 4px 10px rgba(238, 155, 0, 0.3);
}

.month-box.active .month-indicator {
  background: var(--primary-light);
}

.month-box.off .month-indicator {
  opacity: 0.3;
}

.seasonality-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.peak {
  background: var(--accent);
}

.dot.active {
  background: var(--primary-light);
}

.dot.off {
  background: #dfe6e9;
}

/* Giant Specs Infographic */
.giant-specs {
  background: var(--dark);
  color: var(--white);
  padding: 4rem;
  border-radius: 30px;
  margin: 5rem 0;
  position: relative;
  overflow: hidden;
}

.giant-specs::before {
  content: "DATA";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.03;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.spec-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.spec-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px var(--secondary));
}

.spec-info .spec-label {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-info .spec-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  margin: 4px 0;
}

.spec-info .spec-comparison {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

/* Ethical Scorecard */
.ethical-scorecard {
  background: var(--white);
  border: 3px solid var(--secondary);
  padding: 3rem;
  border-radius: 25px;
  margin: 5rem 0;
  box-shadow: 0 20px 40px rgba(148, 210, 189, 0.15);
}

.scorecard-header {
  margin-bottom: 2rem;
  text-align: center;
}

.trust-badge {
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.scorecard-list {
  list-style: none;
  padding: 0;
}

.scorecard-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.check-icon {
  width: 35px;
  height: 35px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(148, 210, 189, 0.4);
}

.check-content strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.scorecard-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .seasonality-grid {
    grid-template-columns: repeat(6, 2fr);
  }

  .giant-specs {
    padding: 2rem;
  }

  .specs-grid {
    gap: 2rem;
  }
}

/* Finder Interface */
.finder-interface {
  margin: 3rem 0;
}

.finder-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 0.8rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:hover {
  border-color: var(--primary);
}

.loading-state,
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.2rem;
  color: var(--text-light);
  background: var(--white);
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.5rem 0 1rem;
}