/* ================================================================
   NEXURA OBSIDIAN — Shared Stylesheet
   Design system: Apple × Stripe × Linear aesthetic
================================================================ */

:root {
  --bg:           #020d1a;
  --surface-low:  #071524;
  --surface:      #0c1c2f;
  --surface-high: #162436;
  --surface-top:  #1f3044;
  --bright:       #273649;
  --teal:         #7dd8cd;
  --teal-light:   #9ef9ee;
  --teal-dim:     rgba(125,216,205,0.12);
  --gold:         #E8B931;
  --text:         #e8f4fd;
  --text-muted:   #8da4b8;
  --outline:      rgba(125,216,205,0.1);
  --outline-soft: rgba(62,73,71,0.3);
  --radius-sm:    0.75rem;
  --radius-md:    1.25rem;
  --radius-lg:    2rem;
  --radius-xl:    3rem;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; }

/* ── Ambient mesh orbs ── */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient::before {
  content: ''; position: absolute;
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(125,216,205,0.09) 0%, rgba(125,216,205,0.03) 40%, transparent 70%);
  top: -300px; left: -300px;
  animation: float1 22s ease-in-out infinite;
  will-change: transform;
}
.ambient::after {
  content: ''; position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(232,185,49,0.06) 0%, rgba(232,185,49,0.02) 40%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: float2 28s ease-in-out infinite;
  will-change: transform;
}
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(70px,90px) scale(1.05)} 66%{transform:translate(-40px,50px) scale(0.97)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-60px,-70px) scale(1.04)} 66%{transform:translate(40px,-30px) scale(0.98)} }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.125rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(2,13,26,0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(125,216,205,0.08);
  transition: padding 0.4s var(--ease-out), background 0.4s;
}
nav.scrolled {
  padding: 0.75rem 2.5rem;
  background: rgba(2,13,26,0.95);
  border-bottom-color: rgba(125,216,205,0.12);
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
}
.nav-logo img {
  height: 36px; width: auto; display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.85; }
/* Keep these for any pages that still use the old markup */
.nav-logo-mark { display: none; }
.nav-logo-text { display: none; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--teal); }
.nav-cta {
  background: #82DCD2 !important;
  color: #001e1c !important; padding: 0.5rem 1.375rem;
  border-radius: 50px; font-weight: 800 !important;
  font-size: 0.8125rem !important; letter-spacing: 0.01em !important;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, background 0.2s !important;
  box-shadow: 0 3px 14px rgba(130,220,210,0.3), 0 0 0 1px rgba(255,255,255,0.15) inset !important;
}
.nav-cta:hover {
  background: #9ef9ee !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(130,220,210,0.45) !important;
  color: #001e1c !important;
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(2,13,26,0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--outline); z-index: 99;
  }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9375rem 2.25rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #002e2a; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 1rem; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 4px 16px rgba(125,216,205,0.15);
  white-space: nowrap; position: relative; overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(125,216,205,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9375rem 2.25rem;
  background: rgba(39,54,73,0.5); color: var(--text);
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1rem;
  border-radius: 50px; text-decoration: none;
  border: 1px solid var(--outline-soft); cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap; letter-spacing: 0.01em;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(39,54,73,0.85);
  border-color: rgba(125,216,205,0.3);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Apply Now — THE primary CTA. Solid teal, white text, unmissable ── */
.btn-apply {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.125rem 3rem;            /* ~18px 48px */
  background: #82DCD2;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 1.0625rem;
  border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.2s;
  box-shadow: 0 6px 30px rgba(130,220,210,0.45);
  white-space: nowrap; letter-spacing: 0.015em;
  position: relative; overflow: hidden;
}
.btn-apply::after {
  content: ''; position: absolute; inset: 0; border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 55%);
  pointer-events: none;
}
.btn-apply:hover {
  background: #6dcfc5;
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(130,220,210,0.65);
}
.btn-apply:active { transform: translateY(-1px); }

/* ── Chat on WhatsApp — secondary, outline only, no icon, clearly smaller ── */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.125rem 1.875rem;
  background: transparent;
  color: rgba(232,244,253,0.55);
  font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 0.9375rem;
  border-radius: 50px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18); cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn-whatsapp:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  display: inline-block;
  margin-top: 1.25rem;
  color: rgba(232,244,253,0.4);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-scroll-hint:hover { color: rgba(232,244,253,0.7); }

/* ── Section shared ── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1320px; margin: 0 auto; padding: 0 2.5rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--teal); margin-bottom: 1.25rem;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--teal); opacity: 0.7; }

.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--text); margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1.125rem; color: var(--text-muted); line-height: 1.75; max-width: 540px;
}

/* Reveal animations — cinematic entrance */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.08s; }
.fade-delay-2 { transition-delay: 0.16s; }
.fade-delay-3 { transition-delay: 0.24s; }
.fade-delay-4 { transition-delay: 0.32s; }
.fade-delay-5 { transition-delay: 0.40s; }
.fade-delay-6 { transition-delay: 0.48s; }
.fade-delay-7 { transition-delay: 0.56s; }
.fade-delay-8 { transition-delay: 0.64s; }

/* Dot pattern overlay utility */
.dot-pattern::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(125,216,205,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
}

/* ── Platform bar ── */
.platform-bar {
  position: relative; z-index: 1;
  background: var(--surface-low);
  border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline);
  padding: 1.5rem 2.5rem; overflow: hidden;
}
.platform-bar-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.platform-label {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap;
}
.platform-icons { display: flex; align-items: center; gap: 2.5rem; }
.platform-icon {
  display: flex; align-items: center; gap: 0.5rem; opacity: 0.45;
  transition: opacity 0.25s, color 0.25s; color: var(--text-muted);
  font-size: 0.775rem; font-weight: 600; cursor: default;
}
.platform-icon:hover { opacity: 1; color: var(--teal); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 9rem 2.5rem 5rem;
  background: var(--surface-low);
  background-image: url('images/hero.jpg');
  background-size: cover; background-position: center 30%;
  border-bottom: 1px solid var(--outline);
  position: relative; z-index: 1; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,13,26,0.9) 0%, rgba(2,13,26,0.95) 100%);
  pointer-events: none; z-index: 0;
}
.page-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 1.375rem;
}
.page-hero h1 span { color: var(--teal); }
.page-hero p {
  font-size: 1.1875rem; color: var(--text-muted); line-height: 1.75;
  max-width: 540px; margin: 0 auto;
}

/* ── Apply CTA section ── */
#apply {
  padding: 9rem 2.5rem;
  background: var(--surface-low);
  background-image: url('images/bg-cta.jpg');
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
#apply::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,13,26,0.85) 0%, rgba(2,13,26,0.94) 100%);
  pointer-events: none; z-index: 0;
}
.apply-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  position: relative; z-index: 2;
}
.apply-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(232,185,49,0.07); border: 1px solid rgba(232,185,49,0.2);
  border-radius: 50px; font-size: 0.7rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 2rem;
}
.apply-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.035em; color: var(--text); margin-bottom: 1.5rem;
}
.apply-title span { color: var(--teal); }
.apply-desc {
  font-size: 1.125rem; color: var(--text-muted); line-height: 1.8;
  max-width: 540px; margin: 0 auto 3rem;
}
.apply-actions {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: nowrap; margin-bottom: 2.25rem;
}
.apply-note {
  font-size: 0.8125rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  gap: 1.75rem; flex-wrap: wrap;
}
.apply-note-item { display: flex; align-items: center; gap: 0.375rem; }
.apply-note-item svg { color: var(--teal); }

/* ── Footer ── */
footer {
  background: var(--bg); border-top: 1px solid var(--outline);
  padding: 5rem 2.5rem 2.5rem; position: relative; z-index: 1;
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2.25fr 1fr 1fr 1fr;
  gap: 3.5rem; margin-bottom: 3.5rem;
}
.footer-brand p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.75;
  margin-top: 1.125rem; max-width: 280px;
}
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 1.375rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  font-size: 0.875rem; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--outline); padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ── Shared keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── CTA button pair: row on desktop, stacked on mobile ── */
@media (max-width: 600px) {
  .apply-actions {
    flex-direction: column; align-items: stretch;
    max-width: 360px; margin-left: auto; margin-right: auto;
  }
  .apply-actions .btn-apply,
  .apply-actions .btn-whatsapp { width: 100%; text-align: center; }
}
