/* ============================================================
   Zero Gravity HR — site styles
   Theme: deep-space purple, gold accent. "HR made weightless."
   ============================================================ */

:root {
  --bg-deep:  #08040f;
  --bg:       #0e0720;
  --bg-soft:  #150c2b;
  --panel:    rgba(255, 255, 255, 0.045);
  --panel-brd:rgba(183, 155, 230, 0.18);

  --purple:      #7a4fd0;
  --purple-light:#c3abf0;
  --magenta:     #b45bd8;

  --gold:      #d4af5f;
  --gold-soft: #e9c877;

  --text:  #ece7f7;
  --muted: #a99fc4;
  --dim:   #7d7398;

  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);

  --font-brand: 'Poiret One', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Starfield + nebula background (fixed, behind all) ---------- */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(180, 91, 216, .28), transparent 60%),
    radial-gradient(900px 600px at 12% 8%, rgba(122, 79, 208, .30), transparent 60%),
    radial-gradient(1200px 900px at 50% 120%, rgba(58, 29, 110, .45), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.space-bg::before,
.space-bg::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 200px 160px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 300px 40px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 380px 220px, rgba(255,255,255,.85), transparent);
  background-repeat: repeat;
  background-size: 420px 300px;
  opacity: .5;
}
.space-bg::after { background-size: 260px 200px; opacity: .3; animation: drift 140s linear infinite; }
@keyframes drift { to { transform: translateY(-200px); } }

/* ---------- Layout helpers ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold);
}
h1, h2, h3 { line-height: 1.15; font-weight: 600; }
h2.title {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: .06em;
  margin: 10px 0 14px;
}
h3 { font-size: 1.25rem; margin-bottom: 6px; }

.accent { color: var(--gold); }
.text-purple { color: var(--purple-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-ui); font-weight: 600; font-size: .96rem;
  padding: .8em 1.5em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c05; box-shadow: 0 8px 24px rgba(212,175,95,.28);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(212,175,95,.4); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text);
  border-color: var(--panel-brd);
}
.btn-ghost:hover { border-color: var(--purple-light); background: rgba(195,171,240,.08); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(8,4,15,.6);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--font-brand); font-size: 1.2rem; letter-spacing: .08em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; text-align: center; padding: 60px 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-art {
  display: block; width: min(900px, 100%); height: auto; margin: 0 auto;
  border-radius: 16px;
  /* near-black artwork blends into the page — soft glow instead of a framed card */
  filter: drop-shadow(0 18px 55px rgba(90, 60, 170, .32));
}
.hero-glow {
  position: absolute; z-index: 1; inset: 0;
  background: radial-gradient(600px 420px at 50% 30%, rgba(122,79,208,.35), transparent 70%);
  pointer-events: none;
}
.hero-logo { width: clamp(120px, 20vw, 180px); height: auto; filter: drop-shadow(0 10px 30px rgba(122,79,208,.5)); }
.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: .12em;
  margin: 10px 0 4px;
  background: linear-gradient(180deg, #fff 0%, #d9cef4 55%, var(--purple-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 40px rgba(122,79,208,.5);
}
.hero .subhead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 58ch; margin: 28px auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 64px; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  overflow: hidden; white-space: nowrap;
}
.marquee > div { display: inline-block; animation: scroll 26s linear infinite; }
.marquee span {
  font-family: var(--font-brand); letter-spacing: .3em; font-size: 1rem;
  color: var(--purple-light); opacity: .8; padding: 0 26px;
}
.marquee span::after { content: "✦"; color: var(--gold); margin-left: 52px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--purple-light); box-shadow: var(--shadow); }
.card .plan-name { font-family: var(--font-brand); font-size: 1.35rem; letter-spacing: .05em; }
.card .plan-sub { color: var(--purple-light); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.card .price { color: var(--gold); font-weight: 600; font-size: 1.15rem; margin: 14px 0 10px; }
.card .desc { color: var(--muted); font-size: .95rem; }
.card--service { background: linear-gradient(180deg, rgba(122,79,208,.16), rgba(122,79,208,.05)); }

.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c05; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.card--featured { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,175,95,.35), var(--shadow); }

/* feature lists inside plan detail */
.feature-list { list-style: none; margin-top: 12px; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--muted); font-size: .95rem; }
.feature-list li::before { content: "◦"; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }
.feature-list.check li::before { content: "✓"; color: var(--gold); }
.excl { color: var(--dim); font-size: .88rem; font-style: italic; margin-top: 12px; }

/* full-width plan detail rows (services page) */
.plan-detail {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start;
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
}
.plan-detail .head .price { color: var(--gold); font-weight: 600; font-size: 1.4rem; margin-top: 8px; }
.plan-detail .tagline { color: var(--purple-light); font-style: italic; margin-top: 4px; }
.plan-detail .best { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* pricing chips (project services) */
.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tier { background: rgba(212,175,95,.1); border: 1px solid rgba(212,175,95,.3); color: var(--gold-soft);
        padding: 8px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-brd); background: var(--bg-soft);
  display: grid; place-items: center; text-align: center; color: var(--dim); padding: 20px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.prose p { margin-bottom: 16px; color: #d8d1ea; }
.prose h3 { color: var(--gold); margin-top: 30px; font-family: var(--font-brand); letter-spacing: .04em; font-size: 1.5rem; }
.creds { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.creds li { padding-left: 28px; position: relative; color: var(--text); }
.creds li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Belief / values ---------- */
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.value { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 22px; }
.value h3 { color: var(--gold-soft); }
.value p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--panel-brd);
  color: var(--text); font-family: inherit; font-size: .96rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-light); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--dim); margin-top: 8px; }
.contact-detail { color: var(--muted); }
.contact-detail a { color: var(--gold-soft); text-decoration: none; }
.form-status { margin-top: 12px; font-weight: 500; }
.form-status.ok { color: #7fe3a4; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; border-radius: 22px; padding: 54px 24px;
  background: linear-gradient(135deg, rgba(122,79,208,.28), rgba(180,91,216,.16));
  border: 1px solid var(--panel-brd);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,.07); margin-top: 40px; padding: 54px 0 24px; background: rgba(8,4,15,.5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 38ch; margin-top: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06);
  color: var(--dim); font-size: .86rem;
}
.footer-bottom a { display: inline; color: var(--gold-soft); }
.atlas-credit { color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.atlas-credit a { font-weight: 600; display: inline-flex; align-items: center; }
.atlas-logo { height: 15px; width: auto; opacity: .85; transition: opacity .15s ease; }
.atlas-credit a:hover .atlas-logo { opacity: 1; }

/* ---------- Chat widget ---------- */
.chat-launch {
  position: fixed; right: 22px; bottom: 46px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c05; font-size: 1.5rem; box-shadow: 0 10px 30px rgba(212,175,95,.4);
  display: grid; place-items: center; transition: transform .15s ease;
}
.chat-launch:hover { transform: scale(1.06); }
.chat-panel {
  position: fixed; right: 22px; bottom: 116px; z-index: 60;
  width: min(360px, 92vw); max-height: 70vh;
  background: var(--bg-soft); border: 1px solid var(--panel-brd);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  display: none; flex-direction: column;
}
.chat-panel.open { display: flex; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(122,79,208,.4), rgba(180,91,216,.2)); border-bottom: 1px solid var(--panel-brd); }
.chat-head img { width: 30px; height: 30px; }
.chat-head b { font-family: var(--font-brand); letter-spacing: .06em; }
.chat-head small { color: var(--muted); display: block; font-size: .74rem; }
.chat-head .close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.chat-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.msg.bot { background: rgba(255,255,255,.06); border: 1px solid var(--panel-brd); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #2a1c05; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.chat-replies button {
  background: rgba(195,171,240,.1); border: 1px solid var(--panel-brd); color: var(--purple-light);
  padding: 8px 12px; border-radius: 999px; font-size: .85rem; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.chat-replies button:hover { background: rgba(195,171,240,.2); border-color: var(--purple-light); }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--panel-brd); }
.chat-input input { flex: 1; padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.05);
  border: 1px solid var(--panel-brd); color: var(--text); font-family: inherit; }
.chat-input input:focus { outline: none; border-color: var(--purple-light); }
.chat-input button { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); border: 0; color: #2a1c05;
  border-radius: 999px; padding: 0 16px; font-weight: 600; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; margin-inline: auto; }
  .contact-grid, .values, .plan-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 64px; right: 4vw; flex-direction: column; align-items: stretch;
    background: var(--bg-soft); border: 1px solid var(--panel-brd); border-radius: 14px;
    padding: 10px; min-width: 200px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 6px 0 0; }
}
@media (max-width: 560px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
