/* ── SCALR SHARED STYLESHEET ─────────────────────────────────────
   Used by all pages. Page-specific CSS goes in a <style> block
   within that page's <head>. Do not add page-specific rules here.
───────────────────────────────────────────────────────────────── */

/* ── CSS CUSTOM PROPERTIES ───────────────────────────────────── */
:root {
  --bg-dark:        #0a0a0a;
  --bg-mid:         #111111;
  --bg-card:        #141414;
  --text-primary:   #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent:         #68ccd1;
  --accent-hover:   #7dd8dd;
  --white:          #ffffff;
  --divider:        rgba(255,255,255,0.10);
  --danger:         #e26d6d;
  --font-serif:     'DM Serif Display', Georgia, serif;
  --font-sans:      'DM Sans', system-ui, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2em);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
}
h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.9em);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}
h2 .teal-line { display: block; width: 48px; height: 3px; border-radius: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--accent), transparent); }
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
p { color: var(--text-secondary); line-height: 1.65; }

/* ── LAYOUT HELPERS ──────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-mid); }
.section--card { background: var(--bg-card); }

/* ── FADE-UP ANIMATION ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #0a0a0a; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: rgba(104,204,209,0.1); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: padding 0.3s;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.nav__logo { display: flex; align-items: center; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text-primary); }
.nav__cta { font-size: 0.85rem !important; padding: 0.6rem 1.2rem !important; color: #000 !important; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: all 0.3s; border-radius: 2px; }

/* ── NAV DROPDOWN ────────────────────────────────────────────── */
.nav__item { position: relative; }
.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav__dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav__item--dropdown:hover .nav__dropdown-toggle::after,
.nav__item--dropdown.open .nav__dropdown-toggle::after { transform: rotate(-135deg) translateY(-2px); }

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  list-style: none;
}
/* invisible bridge fills the gap between toggle and dropdown so hover doesn't break */
.nav__item--dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 16px;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.open .nav__dropdown { display: block; }
.nav__dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav__dropdown li a:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nav__dropdown li a .dd-arrow { color: var(--accent); opacity: 0; font-size: 0.75rem; transition: opacity 0.15s; }
.nav__dropdown li a:hover .dd-arrow { opacity: 1; }

@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); padding: 1.5rem; flex-direction: column; align-items: flex-start; gap: 1.25rem; border-bottom: 1px solid var(--divider); }
  .nav__links.open { display: flex; }
  .nav__burger { display: block !important; }
  .nav__dropdown { position: static; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 1rem; margin-top: 0.5rem; }
  .nav__dropdown::before { display: none; }
  .nav__item--dropdown .nav__dropdown { display: none; }
  .nav__item--dropdown.open .nav__dropdown { display: block; }
  .nav__dropdown li a { padding: 0.4rem 0; border-radius: 0; }
}

/* ── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ── PAGE HEADER (inner pages only) ──────────────────────────── */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(104,204,209,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: 0.4; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--divider);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.footer__left { display: flex; flex-direction: column; gap: 0.35rem; }
.footer__copy { font-size: 0.8rem; color: var(--text-secondary); }
.footer__right { display: flex; align-items: center; gap: 1.5rem; }
.footer__email { font-size: 0.88rem; color: var(--accent); transition: color 0.2s; }
.footer__email:hover { color: var(--accent-hover); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: 0.8rem; color: var(--text-secondary); transition: color 0.2s; }
.footer__links a:hover { color: var(--text-primary); }

/* ── FLOATING CTA ─────────────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 90;
}
.floating-cta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.25rem;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(104,204,209,0.35);
  transition: background 0.2s, transform 0.2s;
}
.floating-cta a:hover { background: var(--accent-hover); transform: translateY(-2px); }
.floating-cta svg { width: 18px; height: 18px; }
