/* ===================================
   DEPTHATLAS — Deep Ocean Theme
   =================================== */

:root {
  --bg-primary: #060f1c;
  --bg-secondary: #091624;
  --bg-card: #0d1f35;
  --bg-card-hover: #122843;
  --accent-teal: #0891b2;
  --accent-teal-dim: #067a96;
  --accent-amber: #f59e0b;
  --accent-amber-dim: #d97706;
  --text-primary: #e8f4f8;
  --text-secondary: #94a8b8;
  --text-muted: #4d6a7e;
  --border: rgba(8, 145, 178, 0.15);
  --border-bright: rgba(8, 145, 178, 0.35);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-teal-dim); border-radius: 3px; }

/* ——— NAV ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 32px;
  overflow: hidden;
}

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

.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-layer-1 {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0c2d4a 0%, transparent 70%);
}

.hero-layer-2 {
  background: radial-gradient(ellipse 50% 40% at 80% 60%, rgba(8, 145, 178, 0.08) 0%, transparent 60%);
}

.hero-layer-3 {
  background: radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-teal);
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #0ba8cc;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.btn-ghost:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* Hero Visual — Depth Monitor */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depth-monitor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.monitor-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.monitor-graph {
  margin-bottom: 24px;
}

.graph-line {
  height: 120px;
  margin-bottom: 8px;
}

.graph-line svg {
  width: 100%;
  height: 100%;
}

.graph-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.monitor-markers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.marker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.marker-dot.amber { background: var(--accent-amber); }
.marker-dot.teal { background: var(--accent-teal); }

.marker-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.marker-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.marker-depth {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ——— FEATURES ——— */
.features {
  padding: 120px 32px;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0.2;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 64px;
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-amber));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-card--map { }
.feature-card--gear { }
.feature-card--reports { }

.feature-icon {
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.feature-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--accent-teal);
  font-weight: 500;
}

/* ——— MISSION ——— */
.mission {
  padding: 120px 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mission-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mission-quote {
  max-width: 720px;
  margin-bottom: 80px;
}

.quote-mark {
  margin-bottom: 24px;
  color: var(--accent-teal);
}

.mission-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quote-attribution {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.mission-card--light {
  background: rgba(8, 145, 178, 0.04);
  border-color: rgba(8, 145, 178, 0.2);
}

.mission-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.mission-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.mission-card p:last-child { margin-bottom: 0; }

/* ——— REPORTS ——— */
.reports {
  padding: 120px 32px;
}

.reports-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reports-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.reports-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.report-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  background: var(--bg-card);
}

.report-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.report-card--featured {
  grid-row: span 1;
}

.report-card-bg {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.report-gradient {
  position: absolute;
  inset: 0;
}

.report-gradient--redsea {
  background: linear-gradient(135deg, #0a3d62 0%, #0c5a8a 40%, #0891b2 100%);
}

.report-gradient--raja {
  background: linear-gradient(135deg, #0d3b2e 0%, #0f6b4a 40%, #1a9e6e 100%);
}

.report-gradient--fakarava {
  background: linear-gradient(135deg, #0d2a5e 0%, #1248a0 40%, #2d7dd2 100%);
}

.report-card-content {
  padding: 28px;
}

.report-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.report-region {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-read {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.report-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.report-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-tags span {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  color: var(--accent-amber);
  font-weight: 500;
}

/* ——— CLOSING ——— */
.closing {
  padding: 140px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 48px;
}

.closing-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.closing-pulse {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-teal);
  opacity: 0;
  animation: ring-expand 3s ease-out infinite;
}

.pulse-ring-1 { width: 64px; height: 64px; animation-delay: 0s; }
.pulse-ring-2 { width: 64px; height: 64px; animation-delay: 1s; }
.pulse-ring-3 { width: 64px; height: 64px; animation-delay: 2s; }

@keyframes ring-expand {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.pulse-core {
  position: relative;
  z-index: 1;
}

.closing-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ——— FOOTER ——— */
.footer {
  padding: 80px 32px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mission-split {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-card--featured {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 80px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .features, .mission, .reports, .closing { padding: 80px 20px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}