/* ── Observra — Shared Stylesheet ──────────────────────────────────── */

:root {
  --navy:       #0A1628;
  --navy-mid:   #142840;
  --navy-soft:  #1A2F4A;
  --off-white:  #F5F7FA;
  --slate:      #64748B;
  --slate-faint:#334155;
  --teal:       #14B8A6;
  --amber:      #F59E0B;
  --red:        #E24B4A;
  --border:     rgba(245, 247, 250, 0.08);
  --border-soft:rgba(245, 247, 250, 0.05);
  --radius:     4px;
  --serif:      "Fraunces", "Times New Roman", serif;
  --sans:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Background effects ────────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 25% 25%, rgba(20,184,166,0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(245,158,11,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* ── Layout ────────────────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ── Navigation ────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.mark {
  width: 30px;
  height: 30px;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.72} }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--off-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--off-white); background: rgba(245,247,250,0.06); }
.nav-links a.active { color: var(--off-white); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--off-white); border-color: rgba(245,247,250,0.2); }

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover { background: #FBBF24; }
.btn-primary:active { transform: scale(0.98); }

.btn-teal {
  background: var(--teal);
  color: var(--navy);
}
.btn-teal:hover { background: #2DD4BF; }

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(245,247,250,0.2);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

/* ── Hamburger (mobile) ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--off-white); }
.mobile-menu .btn { margin-top: 0.75rem; width: 100%; }
.mobile-menu.open { display: flex; }

/* ── Section styles ────────────────────────────────────────────────── */
section { padding: 5rem 0; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: italic;
  color: var(--amber);
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(245,247,250,0.7);
  max-width: 580px;
  font-weight: 300;
}

.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(20,184,166,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.card-icon.teal { background: rgba(20,184,166,0.12); color: var(--teal); }
.card-icon.amber { background: rgba(245,158,11,0.12); color: var(--amber); }
.card-icon.red { background: rgba(226,75,74,0.12); color: var(--red); }

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--off-white);
}

.card-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(245,247,250,0.6);
  font-weight: 300;
}

/* ── Divider ────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--off-white);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 260px;
  font-weight: 300;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--slate);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-bottom a { color: var(--slate); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* ── Dot / Status ───────────────────────────────────────────────────── */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  display: inline-block;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── Badge / Tag ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-teal { background: rgba(20,184,166,0.12); color: var(--teal); border: 1px solid rgba(20,184,166,0.3); }
.badge-amber { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.badge-red { background: rgba(226,75,74,0.12); color: var(--red); border: 1px solid rgba(226,75,74,0.3); }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.25s; opacity: 0; }
.delay-3 { animation-delay: 0.4s; opacity: 0; }
.delay-4 { animation-delay: 0.55s; opacity: 0; }
.delay-5 { animation-delay: 0.7s; opacity: 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .delay-1, .delay-2, .delay-3, .delay-4, .delay-5 { opacity: 1; }
}
