/* docs/style.css — OceanOS Premium Documentation */
:root {
  --bg: #03070f;
  --surface: #070d1a;
  --card: #0d1525;
  --card-hover: #111d30;
  --border: #1a2840;
  --border-bright: #1e3a5f;
  --text: #e8f4ff;
  --text-muted: #7a9bb8;
  --text-dim: #3a5270;
  --accent: #00c8ff;
  --accent-glow: rgba(0, 200, 255, 0.12);
  --accent-glow-strong: rgba(0, 200, 255, 0.25);
  --accent-dark: #0090bb;
  --accent-2: #0af5c8;
  --nav-bg: rgba(3, 7, 15, 0.88);
  --gradient-hero: linear-gradient(135deg, #03070f 0%, #071428 50%, #03070f 100%);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Fira Code', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
::selection { background: var(--accent-glow-strong); color: var(--accent); }

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: normal; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }
code {
  font-family: 'Fira Code', monospace;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 100;
  transition: background 0.3s;
}
nav.scrolled { background: rgba(3, 7, 15, 0.97); }
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px; color: var(--text); letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent); }
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 13px;
  font-family: 'Fira Code', monospace;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-gh {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 4px;
  transition: all 0.2s;
}
.nav-gh svg { width: 16px; height: 16px; fill: currentColor; }
.nav-gh:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 20px; flex-direction: column; justify-content: space-between;
}
.nav-hamburger span { display: block; height: 1.5px; width: 100%; background: var(--text); transition: 0.3s; }

.mobile-nav {
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(3, 7, 15, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 24px 5%; display: flex; flex-direction: column; gap: 20px;
  transform: translateY(-110%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99; backdrop-filter: blur(20px);
}
.mobile-nav.active { transform: translateY(0); }
.mobile-nav a { font-size: 16px; color: var(--text-muted); font-family: 'Fira Code', monospace; }
.mobile-nav a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
#ocean-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.7;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15; z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-orb {
  position: absolute; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(0,200,255,0.08) 0%, rgba(0,144,187,0.04) 40%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; pointer-events: none;
  animation: orb-breathe 6s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent);
  border: 1px solid rgba(0, 200, 255, 0.3);
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 32px;
  background: rgba(0, 200, 255, 0.05);
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  animation: blink 1.5s step-start infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-title {
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -1px;
}
.hero-title em { color: var(--accent); font-style: italic; position: relative; }
.hero-title em::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.hero-sub {
  color: var(--text-muted); font-size: 17px;
  max-width: 580px; margin: 0 auto 44px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-bottom: 72px; flex-wrap: wrap; }
.hero-cta, .hero-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 6px;
  font-size: 14px; font-family: 'Fira Code', monospace;
  transition: all 0.25s; font-weight: 500; white-space: nowrap;
}
.hero-cta {
  background: var(--accent); color: #000;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}
.hero-cta:hover {
  background: var(--accent-2); color: #000;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
  transform: translateY(-2px);
}
.hero-cta svg { width: 16px; height: 16px; }
.hero-cta-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-bright);
}
.hero-cta-secondary:hover {
  background: var(--card); border-color: var(--accent);
  color: var(--accent); transform: translateY(-2px);
}
.hero-cta-secondary svg { width: 16px; height: 16px; }
.hero-stats {
  display: flex; gap: 56px; flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-val {
  font-size: 36px; font-family: 'DM Serif Display', serif;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}
.stat-label {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; color: var(--text-dim); letter-spacing: 3px; z-index: 2;
  animation: scroll-fade 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════════ */
section { padding: 100px 5%; max-width: 1240px; margin: 0 auto; }
.section-label {
  font-size: 12px; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1; margin-bottom: 24px;
  color: var(--text);
}
.section-sub {
  color: var(--text-muted); font-size: 16px;
  max-width: 560px; margin-bottom: 56px;
  line-height: 1.7;
}

/* DIVIDER */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ═══════════════════════════════════════════
   OVERVIEW
═══════════════════════════════════════════ */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.origin-text p { margin-bottom: 24px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.origin-text strong { color: var(--text); font-weight: 600; }
.origin-text code { font-size: 13px; }

.flow-step {
  display: flex; gap: 20px; margin-bottom: 28px;
  padding: 20px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  transition: all 0.3s;
}
.flow-step:hover { border-color: rgba(0, 200, 255, 0.3); background: var(--card-hover); }
.flow-num {
  font-family: 'DM Serif Display', serif; font-size: 28px;
  color: var(--accent); line-height: 1;
  min-width: 36px; text-align: center;
}
.flow-content h4 { font-size: 16px; margin-bottom: 6px; color: var(--text); font-family: 'Fira Code', monospace; font-weight: 500; }
.flow-content p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   TECH STACK
═══════════════════════════════════════════ */
.tech-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.tech-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.tech-inner { padding: 100px 5%; max-width: 1240px; margin: 0 auto; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tech-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 32px; border-radius: 10px;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.tech-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.tech-card:hover { transform: translateY(-6px); border-color: var(--border-bright); background: var(--card-hover); }
.tech-card:hover::before { opacity: 1; }
.tech-icon {
  width: 48px; height: 48px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(0, 200, 255, 0.25);
  background: rgba(0, 200, 255, 0.06);
  color: var(--accent);
}
.tech-icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tech-card h4 {
  font-family: 'Fira Code', monospace;
  font-size: 16px; margin-bottom: 12px; font-weight: 500;
  color: var(--text);
}
.tech-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════
   SIMULATIONS
═══════════════════════════════════════════ */
.future-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.future-card {
  display: flex; gap: 20px; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.future-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,200,255,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.future-card:hover { border-color: rgba(0,200,255,0.2); transform: translateY(-4px); }
.future-card:hover::after { opacity: 1; }
.future-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  color: var(--accent);
  padding: 8px; background: var(--accent-glow);
  border-radius: 8px; border: 1px solid rgba(0, 200, 255, 0.2);
}
.future-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.future-card h4 { font-size: 16px; margin-bottom: 8px; font-family: 'Fira Code', monospace; font-weight: 500; }
.future-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery-section { background: var(--surface); border-top: 1px solid var(--border); }
.gallery-inner { padding: 100px 5%; max-width: 1240px; margin: 0 auto; }
.gallery-tabs { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.gallery-tab {
  padding: 8px 20px; border-radius: 4px; font-size: 12px;
  font-family: 'Fira Code', monospace; cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  transition: all 0.2s;
}
.gallery-tab:hover { color: var(--text); border-color: var(--border-bright); }
.gallery-tab.active { background: var(--accent-glow); border-color: rgba(0,200,255,0.4); color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 16/9; overflow: hidden;
  border-radius: 8px; cursor: zoom-in;
  border: 1px solid var(--border);
  background: var(--card); position: relative;
  transition: all 0.35s;
}
.gallery-item.gallery-wide { grid-column: span 2; }

.gallery-item:hover { border-color: var(--border-bright); transform: scale(1.02); z-index: 2; box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(0,200,255,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: brightness(0.9) saturate(0.9); }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.1); }
/* Crop Mac OS browser chrome (top ~16%) + dock (bottom ~10%) */
.gallery-item.crop-mac img { transform: scale(1.38) translateY(8%); transform-origin: center; }
.gallery-item.crop-mac:hover img { transform: scale(1.44) translateY(8%); }
.gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 24px 12px 12px;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-label { opacity: 1; }

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  background: rgba(0, 3, 10, 0.95);
  backdrop-filter: blur(16px);
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 88%; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.1);
}
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); width: 40px; height: 40px;
  border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.lightbox-close:hover { color: var(--accent); border-color: var(--accent); }
.lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  padding: 60px 5%;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 32px;
  background: var(--surface);
  position: relative; overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,200,255,0.3), transparent);
}
.footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; margin-bottom: 8px;
  color: var(--text);
}
.footer-sub { color: var(--text-dim); font-size: 13px; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 13px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 4px;
  transition: all 0.2s;
}
.footer-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-link:hover { color: var(--accent); border-color: rgba(0,200,255,0.4); background: var(--accent-glow); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .origin-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.gallery-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links, .nav-gh { display: none; }
  .nav-hamburger { display: flex; }
  .hero-ctas { flex-direction: column; align-items: center; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-cta-secondary { justify-content: center; width: 100%; }
  .hero-stats { gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 72px 5%; }
}
