@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;1,9..144,700;1,9..144,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   Sunlit Reef Theme — diyve Website
   ============================================================ */

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

:root {
  /* Ocean palette — calmer, less saturated */
  --ocean-deep:   #1a3f52;
  --ocean-mid:    #1a7fa0;
  --ocean-bright: #2398b5;
  --ocean-light:  #60b8cc;
  --sky-water:    #9dd0de;
  --surface:      #d4ecf4;

  /* Warmth */
  --coral:        #e8825a;
  --sand-warm:    #fafaf8;
  --sand-cool:    #f3f8fb;

  /* Text */
  --text-deep:    #1a3f52;
  --text-mid:     #2e6e87;
  --text-light:   #5896ad;
  --text-faint:   #8bbfcd;

  /* Cards */
  --card-bg:      rgba(255, 255, 255, 0.92);
  --card-border:  rgba(0, 180, 216, 0.2);
  --card-shadow:  0 4px 20px rgba(0, 150, 199, 0.1);

  --code-bg:      #012a3a;
  --radius:       12px;
  --radius-lg:    16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--sand-warm);
  color: var(--text-deep);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--ocean-mid);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--ocean-bright);
  text-decoration: underline;
}

/* ── NAV ───────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.15);
  box-shadow: 0 1px 16px rgba(0, 150, 199, 0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ocean-bright);
  display: inline-block;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(0,180,216,0.4); }
  50%       { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(0,180,216,0); }
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocean-deep);
  background: rgba(0, 180, 216, 0.1);
  text-decoration: none;
}

/* ── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 10rem;
  text-align: center;
  background: linear-gradient(
    170deg,
    #cde8f2 0%,
    #8bcad9 28%,
    #4aa8c2 55%,
    #2183a0 80%,
    #165e78 100%
  );
}

/* Caustic light shafts */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 22% 12%, rgba(255,255,255,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 78% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 50% 95%, rgba(0,40,70,0.28)     0%, transparent 70%);
  pointer-events: none;
  animation: caustic 9s ease-in-out infinite alternate;
}

@keyframes caustic {
  from { opacity: 1; }
  to   { opacity: 0.72; }
}

/* Bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  animation: bubble-rise linear infinite;
}

.bubbles span:nth-child(1)  { left:  4%; width: 16px; height: 16px; animation-duration:  9.0s; animation-delay:  0.0s; }
.bubbles span:nth-child(2)  { left: 11%; width:  9px; height:  9px; animation-duration: 12.5s; animation-delay:  1.6s; }
.bubbles span:nth-child(3)  { left: 20%; width: 22px; height: 22px; animation-duration:  8.2s; animation-delay:  3.1s; }
.bubbles span:nth-child(4)  { left: 32%; width:  7px; height:  7px; animation-duration: 14.0s; animation-delay:  0.7s; }
.bubbles span:nth-child(5)  { left: 43%; width: 14px; height: 14px; animation-duration:  7.6s; animation-delay:  2.0s; }
.bubbles span:nth-child(6)  { left: 54%; width: 11px; height: 11px; animation-duration: 11.3s; animation-delay:  4.4s; }
.bubbles span:nth-child(7)  { left: 65%; width: 18px; height: 18px; animation-duration:  9.8s; animation-delay:  1.1s; }
.bubbles span:nth-child(8)  { left: 75%; width:  8px; height:  8px; animation-duration: 13.2s; animation-delay:  3.7s; }
.bubbles span:nth-child(9)  { left: 84%; width: 13px; height: 13px; animation-duration: 10.4s; animation-delay:  0.3s; }
.bubbles span:nth-child(10) { left: 93%; width:  6px; height:  6px; animation-duration: 15.1s; animation-delay:  2.8s; }
.bubbles span:nth-child(11) { left: 27%; width: 10px; height: 10px; animation-duration: 11.8s; animation-delay:  5.6s; }
.bubbles span:nth-child(12) { left: 71%; width: 20px; height: 20px; animation-duration: 10.7s; animation-delay:  7.1s; }

@keyframes bubble-rise {
  0%   { transform: translateY(0)      translateX(0)    scale(1);   opacity: 0;   }
  6%   {                                                              opacity: 0.8; }
  85%  {                                                              opacity: 0.45;}
  100% { transform: translateY(-108vh) translateX(14px) scale(0.3); opacity: 0;   }
}

/* Hero content wrapper (above pseudo-element) */
.hero-content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.hero-content .btn {
  pointer-events: auto;
}

.hero-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

.coming-soon-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-style: italic;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 40, 70, 0.2);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.42em;
  display: block;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 0.4em;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.hero-stats {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.1rem 2.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat:last-child { border-right: none; }

.hero-stat .val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Wave bottom of hero */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 72px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #ffffff;
  color: var(--ocean-deep);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  background: #f0fbff;
  color: var(--ocean-deep);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
}

/* ── SECTIONS ──────────────────────────────────────────────── */

section {
  padding: 5.5rem 1.5rem;
  background: var(--sand-warm);
}

#hardware,
#divelogs {
  background: var(--sand-cool);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean-bright);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-mid);
  max-width: 580px;
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── FEATURES GRID ─────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ocean-bright), var(--sky-water));
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 150, 199, 0.16);
  border-color: rgba(0, 180, 216, 0.4);
}

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

.feature-icon {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.feature-card .tag {
  display: inline-block;
  background: rgba(0, 180, 216, 0.09);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--ocean-mid);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  margin-top: 1rem;
}

/* ── HARDWARE TABLE ────────────────────────────────────────── */

.hw-bom-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  margin-bottom: 2.5rem;
}

.bom-table td a {
  color: var(--ocean-mid);
  font-weight: 600;
}

.bom-table td a:hover {
  color: var(--ocean-bright);
  text-decoration: none;
}

.bom-num {
  color: var(--text-faint) !important;
  font-weight: 400 !important;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}

.bom-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700 !important;
  color: var(--ocean-deep) !important;
  white-space: nowrap;
}

.bom-tag {
  display: inline-block;
  background: rgba(0, 180, 216, 0.09);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--text-light);
  font-size: 0.62rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.bom-total-row td {
  font-weight: 700;
  color: var(--ocean-deep) !important;
  background: rgba(0, 180, 216, 0.06);
  border-top: 2px solid rgba(0, 180, 216, 0.2) !important;
}

.pin-section {
  margin-top: 0.5rem;
}

.hw-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--card-bg);
}

th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 180, 216, 0.07);
  border-bottom: 1px solid rgba(0, 180, 216, 0.15);
  color: var(--ocean-mid);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0, 180, 216, 0.08);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(0, 180, 216, 0.04); }

td:first-child {
  color: var(--ocean-deep);
  font-weight: 600;
  white-space: nowrap;
}

td:last-child { color: var(--text-mid); }

.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.pin-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 9px;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  box-shadow: 0 1px 5px rgba(0,150,199,0.07);
}

.pin-num {
  background: var(--ocean-bright);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  white-space: nowrap;
}

.pin-label { color: var(--text-mid); }

.pin-group-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean-bright);
  padding: 0.5rem 0 0.15rem;
}

/* ── SOFTWARE SECTION ──────────────────────────────────────── */

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.sw-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border-left: 3px solid var(--ocean-bright);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 150, 199, 0.13);
}

.sw-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 0.75rem;
}

.sw-card ul {
  list-style: none;
  padding: 0;
}

.sw-card ul li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.25rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.sw-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ocean-light);
  font-size: 0.68rem;
  top: 0.38rem;
}

/* ── SUBSURFACE SECTION ────────────────────────────────────── */

.subsurface-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .subsurface-layout { grid-template-columns: 1fr; }
}

.subsurface-screenshot img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 150, 199, 0.14);
  display: block;
}

.subsurface-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 1rem;
}

.subsurface-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
}

.subsurface-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  line-height: 1.55;
}

.subsurface-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ocean-light);
  font-size: 0.68rem;
  top: 0.42rem;
}

/* ── DIVE LOG VIEWER ───────────────────────────────────────── */

.dive-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.dive-tab {
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  box-shadow: 0 1px 5px rgba(0,150,199,0.07);
}

.dive-tab:hover {
  border-color: var(--ocean-bright);
  color: var(--ocean-deep);
}

.dive-tab.active {
  background: var(--ocean-bright);
  border-color: var(--ocean-bright);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 180, 216, 0.35);
}

.dive-viewer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0, 150, 199, 0.11);
}

.dive-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 180, 216, 0.12);
  background: rgba(0, 180, 216, 0.04);
}

.dive-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dive-meta-item .mlbl {
  font-size: 0.66rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.dive-meta-item .mval {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ocean-deep);
}

.chart-area {
  padding: 1.5rem 1.5rem 0.5rem;
  background: #ffffff;
}

.chart-container {
  position: relative;
  width: 100%;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-mid);
  background: #ffffff;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

/* ── DOCS ACCORDION ────────────────────────────────────────── */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acc-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.acc-header:hover {
  background: rgba(0, 180, 216, 0.05);
}

.acc-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.acc-chevron {
  color: var(--text-light);
  transition: transform 0.25s;
  font-size: 1.1rem;
}

.acc-item.open .acc-chevron {
  transform: rotate(180deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.acc-item.open .acc-body {
  max-height: 600px;
}

.acc-content {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.75;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
}

.acc-content a { color: var(--ocean-mid); }
.acc-content a:hover { color: var(--ocean-bright); }

.acc-content code, code {
  background: rgba(0, 180, 216, 0.09);
  border: 1px solid rgba(0, 180, 216, 0.22);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  color: var(--ocean-mid);
}

pre {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.83rem;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  color: #7dd8ef;
  margin-top: 0.75rem;
  line-height: 1.65;
  border: none;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* ── FOOTER ────────────────────────────────────────────────── */

footer {
  background: var(--ocean-deep);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ocean-bright), var(--sky-water), var(--ocean-bright));
}

footer a { color: rgba(255, 255, 255, 0.65); }
footer a:hover { color: var(--ocean-light); text-decoration: none; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ── FISH ──────────────────────────────────────────────────── */

#fish-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fish-el {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  user-select: none;
  touch-action: manipulation;
}

.fish-body {
  width: 100%;
  height: 100%;
  animation: fish-sway 2.4s ease-in-out infinite alternate;
  transform-origin: 78% 50%;
}

.fish-el:nth-child(2) .fish-body { animation-duration: 2.1s; animation-delay: -0.7s; }
.fish-el:nth-child(3) .fish-body { animation-duration: 2.8s; animation-delay: -1.5s; }
.fish-el:nth-child(4) .fish-body { animation-duration: 1.9s; animation-delay: -0.3s; }
.fish-el:nth-child(5) .fish-body { animation-duration: 2.6s; animation-delay: -2.0s; }
.fish-el:nth-child(6) .fish-body { animation-duration: 2.3s; animation-delay: -0.9s; }

@keyframes fish-sway {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg);  }
}

.fish-el:hover .fish-body {
  filter: brightness(1.25) drop-shadow(0 2px 10px rgba(0, 180, 216, 0.5));
}

.fish-el.fish-scared .fish-body {
  animation: fish-fright 0.55s ease-out forwards;
}

@keyframes fish-fright {
  0%   { transform: rotate(0deg)   scale(1);    filter: brightness(1.8); }
  18%  { transform: rotate(24deg)  scale(1.22); filter: brightness(1.5); }
  36%  { transform: rotate(-20deg) scale(1.16); }
  54%  { transform: rotate(13deg)  scale(1.08); }
  72%  { transform: rotate(-8deg)  scale(1.03); }
  88%  { transform: rotate(4deg)   scale(1.01); }
  100% { transform: rotate(0deg)   scale(1);    filter: brightness(1);   }
}

/* ── JELLYFISH ─────────────────────────────────────────────── */

.jelly-body {
  width: 100%;
  height: 100%;
  transform-origin: 50% 38%;
  animation: jelly-pulse 2.2s ease-in-out infinite;
}

@keyframes jelly-pulse {
  0%, 100% { transform: scaleY(1)    scaleX(1);    }
  45%       { transform: scaleY(0.80) scaleX(1.16); }
  50%       { transform: scaleY(0.78) scaleX(1.18); }
  55%       { transform: scaleY(0.80) scaleX(1.16); }
}

.jellyfish-el:hover .jelly-body {
  filter: brightness(1.35) drop-shadow(0 0 14px rgba(210, 160, 255, 0.7));
}

.jellyfish-el.jelly-scared .jelly-body {
  animation: jelly-fright 0.65s ease-out forwards;
}

@keyframes jelly-fright {
  0%   { transform: scale(1);             filter: brightness(2.5) saturate(2); }
  18%  { transform: scaleY(0.6) scaleX(1.5); }
  36%  { transform: scaleY(1.3) scaleX(0.85); }
  54%  { transform: scaleY(0.88) scaleX(1.1); }
  72%  { transform: scaleY(1.06) scaleX(0.97); }
  100% { transform: scale(1);             filter: brightness(1); }
}

/* ── SHARK ─────────────────────────────────────────────────── */

.fish-shark .fish-body {
  animation: fish-sway 4s ease-in-out infinite alternate;
  animation-delay: -1.2s;
  transform-origin: 85% 50%;
}

.fish-shark.shark-scared .fish-body {
  animation: shark-rage 0.5s ease-out forwards;
}

@keyframes shark-rage {
  0%   { filter: brightness(1)   saturate(1);                     transform: scale(1);    }
  20%  { filter: brightness(3)   saturate(4) hue-rotate(-25deg);  transform: scale(1.1);  }
  50%  { filter: brightness(2)   saturate(3) hue-rotate(-15deg);  transform: scale(1.05); }
  100% { filter: brightness(1)   saturate(1);                     transform: scale(1);    }
}

/* ── SCROLL REVEAL ─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── SONAR PING (feature icon hover) ──────────────────────── */

.feature-card::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--ocean-bright);
  opacity: 0;
  pointer-events: none;
}

.feature-card:hover::before {
  animation: sonar-ring 0.8s ease-out forwards;
}

@keyframes sonar-ring {
  0%   { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(3);   opacity: 0;   }
}

/* ── PROTOTYPE GALLERY ─────────────────────────────────────── */

.proto-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.proto-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.proto-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 150, 199, 0.18);
  text-decoration: none;
}

.proto-thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .proto-gallery { grid-template-columns: repeat(2, 1fr); }
  .proto-thumb img { height: 160px; }
}

@media (max-width: 480px) {
  .proto-gallery { grid-template-columns: 1fr; }
  .proto-thumb img { height: 220px; }
}

/* ── LIGHTBOX ──────────────────────────────────────────────── */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 25, 35, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

#lightbox.lb-open {
  display: flex;
}

.lb-img-wrap {
  width: min(88vw, 900px);
  height: min(80vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(0,0,0,0.6);
  display: block;
}

.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}

.lb-close:hover { color: #fff; }

.lb-arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 1rem;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  flex-shrink: 0;
}

.lb-arrow:hover {
  color: #fff;
  transform: scale(1.15);
}

.lb-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.35rem 0.55rem; font-size: 0.8rem; }

  .hero { padding: 5rem 1.25rem 8.5rem; }
  .hero-stat { padding: 0.85rem 1.3rem; }
  .hero-stat .val { font-size: 1.45rem; }
  .hero-stats { display: flex; }

  section { padding: 4rem 1.25rem; }

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