/* OCEASTRA — marine acoustics portal */
:root {
  --navy: #071525;
  --navy-mid: #0c2340;
  --ocean: #0e4d6e;
  --teal: #0ea5c9;
  --cyan: #22d3ee;
  --foam: #e0f7fa;
  --white: #ffffff;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

/* ---- Nav ---- */
.ov-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 21, 37, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.ov-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.65rem 1.25rem;
}
.ov-brand {
  display: flex; align-items: center;
  color: var(--white); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ov-brand img {
  width: 170px;
  max-width: 34vw;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}
.ov-menu {
  display: flex; align-items: center; gap: 0.25rem;
  flex: 1; flex-wrap: wrap;
}
.ov-menu > a, .ov-drop > button {
  color: var(--text); background: none; border: none;
  font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ov-menu > a:hover, .ov-drop > button:hover,
.ov-menu > a.active { background: var(--card); color: var(--white); }
.ov-drop { position: relative; }
.ov-drop-panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.4rem; box-shadow: var(--shadow);
}
.ov-drop:hover .ov-drop-panel, .ov-drop:focus-within .ov-drop-panel { display: block; }
.ov-drop-panel a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 8px;
  color: var(--text); font-size: 0.88rem;
}
.ov-drop-panel a:hover { background: var(--card); color: var(--white); }
.ov-nav-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; }
.ov-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600;
  font-size: 0.88rem; border: none; cursor: pointer; transition: all 0.2s;
}
.ov-btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  color: var(--white); box-shadow: 0 4px 20px rgba(14, 165, 201, 0.35);
}
.ov-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ov-btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.ov-btn-ghost:hover { border-color: var(--teal); color: var(--white); }
.ov-user-pill {
  font-size: 0.8rem; color: var(--muted);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
}

/* ---- Hero ---- */
.ov-hero {
  position: relative; overflow: hidden;
  padding: 5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14, 165, 201, 0.25), transparent),
    linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}
.ov-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322d3ee' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ov-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.ov-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.15; margin: 0 0 1rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--white) 30%, var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ov-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-bottom: 2rem; }
.ov-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Layout ---- */
.ov-wrap { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem; }
.ov-section-title {
  font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem;
  color: var(--white);
}
.ov-section-sub { color: var(--muted); margin: 0 0 2rem; max-width: 600px; }

/* ---- Cards ---- */
.ov-grid { display: grid; gap: 1.25rem; }
.ov-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ov-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ov-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow);
}
.ov-card h3 { margin: 0 0 0.5rem; color: var(--white); font-size: 1.1rem; }
.ov-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.ov-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--ocean));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}

/* ---- Content pages ---- */
.ov-prose { max-width: 760px; }
.ov-prose h2 { color: var(--white); margin-top: 2rem; }
.ov-prose p, .ov-prose li { color: #cbd5e1; }
.ov-prose ul { padding-left: 1.25rem; }

/* ---- Forms (register) ---- */
.ov-auth {
  max-width: 440px; margin: 2rem auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.ov-auth h1 { margin: 0 0 0.25rem; font-size: 1.5rem; color: var(--white); }
.ov-auth .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.ov-field { margin-bottom: 1rem; }
.ov-field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.ov-field input {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.25);
  color: var(--white); font: inherit;
}
.ov-field input:focus { outline: none; border-color: var(--teal); }
.ov-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
  color: var(--muted); font-size: 0.8rem;
}
.ov-divider::before, .ov-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.ov-oauth { display: flex; flex-direction: column; gap: 0.5rem; }
.ov-oauth button {
  width: 100%; padding: 0.6rem; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); font: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.ov-oauth button:hover { border-color: var(--teal); }
.ov-oauth button.disabled { opacity: 0.45; cursor: not-allowed; }
.ov-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}
.ov-err { color: #f87171; font-size: 0.85rem; margin-top: 0.5rem; }

/* ---- Service iframe shell ---- */
.ov-service-frame {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  border: none; width: 100%; background: #0f172a;
}
.ov-service-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 56px; display: flex; align-items: center; gap: 1rem;
  padding: 0 1rem; background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
}
.ov-service-bar a { color: var(--muted); font-size: 0.85rem; }
.ov-service-bar .title { color: var(--white); font-weight: 600; flex: 1; }
.ov-service-unavailable {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ov-service-unavailable h1 {
  margin: 0 0 1rem;
  color: var(--white);
}
.ov-service-unavailable p {
  color: var(--muted);
}

/* ---- Footer ---- */
.ov-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem; margin-top: 3rem;
  background: rgba(0,0,0,0.2);
}
.ov-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
}
.ov-footer small { color: var(--muted); display: block; margin-top: 1rem; }
.ov-footer-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .ov-nav-inner { flex-wrap: wrap; }
  .ov-menu { order: 3; width: 100%; }
  .ov-brand img { width: 145px; height: 44px; }
}
