/* MyPlin Dive Works — landing page theme (matches app palette) */
:root {
  --deep-abyss: #051426;
  --depth-teal: #0d4a6e;
  --ocean-steel: #1a3b5c;
  --sonar-cyan: #00d4ab;
  --signal-amber: #ffb021;
  --foam-white: #e8f2fa;
  --hull-silver: #b8c4d6;
  --danger-coral: #ff4757;
  --panel-border: rgba(0, 212, 171, 0.18);
  --glass: rgba(26, 59, 92, 0.55);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--hull-silver);
  background: var(--deep-abyss);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sonar-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--signal-amber); }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; }

/* Sonar ambient animation */
.sonar-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sonar-ring {
  position: absolute;
  top: 18%;
  right: -8%;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 212, 171, 0.08);
  border-radius: 50%;
  animation: sonar-pulse 8s var(--ease) infinite;
}

.sonar-ring:nth-child(2) { animation-delay: 2.6s; top: 55%; right: 60%; width: min(50vw, 360px); }
.sonar-ring:nth-child(3) { animation-delay: 5.2s; top: 72%; right: 10%; width: min(40vw, 280px); }

@keyframes sonar-pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 20, 38, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foam-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-brand img { border-radius: 10px; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--hull-silver);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foam-white);
  background: rgba(0, 212, 171, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foam-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 20, 38, 0.3) 0%, var(--deep-abyss) 85%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 212, 171, 0.08), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sonar-cyan);
  background: rgba(0, 212, 171, 0.1);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--foam-white);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  max-width: 52ch;
  color: var(--hull-silver);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--deep-abyss);
  background: linear-gradient(135deg, var(--sonar-cyan), #00b894);
  box-shadow: 0 8px 24px rgba(0, 212, 171, 0.25);
}

.btn-primary:hover { color: var(--deep-abyss); box-shadow: 0 12px 32px rgba(0, 212, 171, 0.35); }

.btn-ghost {
  color: var(--foam-white);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--panel-border);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin: 0;
}

.hero-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hull-silver);
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--signal-amber);
}

/* Depth panel visual */
.depth-panel {
  background: var(--glass);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.depth-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hull-silver);
  background: rgba(5, 20, 38, 0.6);
  border-bottom: 1px solid var(--panel-border);
}

.depth-panel-header .mono { margin-left: auto; color: var(--sonar-cyan); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sonar-cyan);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 171, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 212, 171, 0); }
}

.depth-panel-body {
  position: relative;
  aspect-ratio: 4/3;
}

.depth-panel-body > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-asset {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.floating-asset img {
  width: 72px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.asset-rov { bottom: 12%; left: 8%; animation-delay: 0s; }
.asset-auv { top: 14%; right: 10%; animation-delay: 1.5s; }
.asset-auv img { width: 56px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hull-silver);
  opacity: 0.6;
  animation: bob 3s ease infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(13, 74, 110, 0.15) 0%, transparent 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sonar-cyan);
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foam-white);
  letter-spacing: -0.02em;
}

.section-header p { margin: 0; }

/* Feature cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 171, 0.35);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.feature-card-body {
  padding: 22px 24px 28px;
}

.feature-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--foam-white);
}

.feature-card-body p { margin: 0; font-size: 0.92rem; }

/* Operations grid */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ops-block {
  background: rgba(5, 20, 38, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ops-block h3 {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--signal-amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.icon-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--hull-silver);
}

.icon-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 212, 171, 0.06);
  padding: 6px;
}

.fleet-row,
.crew-row,
.facility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.fleet-row figure,
.crew-row figure,
.facility-row figure {
  margin: 0;
  text-align: center;
  flex: 1 1 80px;
  max-width: 120px;
}

.fleet-row img,
.crew-row img,
.facility-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 6px;
}

.fleet-row figcaption,
.crew-row figcaption,
.facility-row figcaption {
  font-size: 0.72rem;
  color: var(--hull-silver);
}

/* CTA band */
.cta-band {
  padding: 64px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(13, 74, 110, 0.5), rgba(0, 212, 171, 0.08));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}

.cta-icon {
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cta-inner h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: var(--foam-white);
}

.cta-inner p { margin: 0; }

.cta-inner .btn { margin-left: auto; }

/* Legal / Privacy / Support */
.legal-updated {
  font-size: 0.85rem;
  color: var(--hull-silver);
  opacity: 0.8;
}

.legal-body h3 {
  margin: 32px 0 10px;
  font-size: 1.1rem;
  color: var(--foam-white);
}

.legal-body p,
.legal-body li {
  font-size: 0.95rem;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li { margin-bottom: 6px; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.support-card {
  background: rgba(5, 20, 38, 0.55);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
}

.support-card h3 {
  margin: 0 0 10px;
  color: var(--foam-white);
  font-size: 1.05rem;
}

.support-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.95rem;
  margin: 8px 0;
}

.support-note {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 12px;
}

.support-meta {
  margin: 0;
}

.support-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.support-meta dt {
  color: var(--hull-silver);
  font-weight: 500;
}

.support-meta dd {
  margin: 0;
  color: var(--foam-white);
  text-align: right;
}

.faq h3 {
  margin: 0 0 16px;
  color: var(--foam-white);
}

.faq-item {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: rgba(5, 20, 38, 0.4);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--foam-white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--sonar-cyan);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 40px;
  border-top: 1px solid var(--panel-border);
  background: rgba(5, 20, 38, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foam-white);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-brand img { border-radius: 8px; }

.footer-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--hull-silver);
}

.footer-copy {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .feature-cards { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .cta-inner .btn { margin-left: 0; width: 100%; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 20, 38, 0.97);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--panel-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

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

  .nav-links a { padding: 12px 16px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { gap: 20px; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sonar-ring, .pulse-dot, .floating-asset, .scroll-hint { animation: none; }
}
