/* ============================================================
   PulsarVida — global stylesheet
   Static site for Cloudflare Pages
   ============================================================ */

:root {
  --ink:        #0a0f1f;
  --ink-2:      #0f1730;
  --panel:      #121b38;
  --panel-2:    #18234a;
  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.16);
  --text:       #e8ecf6;
  --muted:      #9aa6c4;
  --muted-2:    #6f7da3;
  --white:      #ffffff;

  --accent:     #5ad1ff;
  --accent-2:   #8b7bff;
  --accent-3:   #38f0c0;
  --grad:       linear-gradient(120deg, #5ad1ff 0%, #8b7bff 55%, #38f0c0 120%);
  --grad-soft:  linear-gradient(120deg, rgba(90,209,255,.16), rgba(139,123,255,.14));

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 24px 60px -28px rgba(0, 0, 0, 0.65);
  --maxw:       1160px;
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--white); }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.32rem; }
p  { margin: 0 0 1.1em; color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--grad);
}

.lead { font-size: 1.16rem; color: var(--muted); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #06122a; box-shadow: 0 14px 34px -14px rgba(90, 209, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); color: #06122a; box-shadow: 0 20px 44px -16px rgba(90, 209, 255, .7); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 31, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.18rem; color: var(--white); letter-spacing: -0.02em; }
.brand:hover { color: var(--white); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 800; }
/* PNG wordmark (dark ink) recoloured to white for the dark theme */
.brand-logo { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }
.site-footer .brand-logo { height: 24px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  width: 44px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
}

/* mobile nav via :target */
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(90,209,255,.20), transparent 70%),
              radial-gradient(50% 55% at 80% 10%, rgba(139,123,255,.20), transparent 70%);
  filter: blur(4px); z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; font-size: 1.22rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(160deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .35; pointer-events: none;
}
.hero-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { padding: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; }
.stat .num span { font-size: 1.2rem; }
.stat .lbl { font-size: .82rem; color: var(--muted-2); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { color: var(--white); }

.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.card h3 { color: var(--white); }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 18px;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
}
.card .ico svg { width: 23px; height: 23px; color: var(--accent); }

/* feature list */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--grad);
}

/* logo / asset strip */
.strip { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); color: var(--muted); font-size: .92rem; font-weight: 500;
}

/* metrics band */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metrics .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; }
.metrics .num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metrics .lbl { color: var(--muted); font-size: .95rem; }

/* team */
.team-card { text-align: left; }
.team-card .avatar {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-sm); margin-bottom: 18px;
  object-fit: cover; object-position: center 18%; display: block;
  filter: grayscale(1) contrast(1.03) brightness(1.02);
  border: 1px solid var(--line-2); background: var(--panel-2);
}

/* full-width imagery */
.banner-img {
  width: 100%; height: clamp(220px, 38vw, 440px); object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.offices-band {
  position: relative;
  background:
    linear-gradient(rgba(10, 15, 31, .86), rgba(10, 15, 31, .93)),
    url('/assets/pulsarvida-image.jpeg') center / cover no-repeat;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.team-card .role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.team-card h3 { margin-bottom: 8px; }
.team-card .loc { font-size: .85rem; color: var(--muted-2); margin-top: 4px; }

/* office cards */
.office { display: flex; flex-direction: column; gap: 6px; }
.office .city { color: var(--white); font-weight: 700; font-size: 1.25rem; }
.office .tag { color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* timeline */
.timeline { border-left: 2px solid var(--line-2); padding-left: 28px; margin: 0; list-style: none; }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--grad); border: 3px solid var(--ink);
}
.timeline .yr { color: var(--white); font-weight: 700; font-size: 1.05rem; }

/* CTA band */
.cta-band {
  position: relative; border-radius: 24px; padding: 56px; overflow: hidden;
  background: linear-gradient(150deg, var(--panel-2), var(--ink-2));
  border: 1px solid var(--line-2); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(90,209,255,.22), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 13px 15px; font-family: inherit; font-size: .98rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,209,255,.15);
}
.field .hint { font-size: .78rem; color: var(--muted-2); }

/* form success state */
.form-success { text-align: center; padding: 18px 6px 6px; }
.form-success .success-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #06122a;
  background: var(--grad); box-shadow: 0 14px 34px -14px rgba(90, 209, 255, .55);
}

.contact-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-block { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.info-block h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.info-block p { margin: 0; }
.info-block a { font-weight: 600; }

/* ---------- article / legal ---------- */
.prose { max-width: 760px; }
.prose h2 { color: var(--white); margin-top: 1.6em; }
.prose h3 { color: var(--white); margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }

.page-hero { padding: 72px 0 40px; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 320px;
  background: radial-gradient(50% 100% at 20% 0%, rgba(139,123,255,.16), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: .85rem; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--white); }
.footer-about p { font-size: .95rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 26px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted-2);
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-cta .btn-ghost { display: none; }

  .mobile-nav {
    display: block; position: fixed; inset: 74px 0 auto 0; z-index: 49;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .25s ease; padding: 12px 0 18px;
  }
  .mobile-nav:target { transform: translateY(0); }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav a { display: block; padding: 13px 24px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 24px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}
