/* =========================================================
   Pelagic Platforms
   Light, calm, editorial. Dark hero with a purple aurora.
   Inspired by Anthropic / Canopy Labs / Egra — lots of air,
   restrained type, one accent.
   ========================================================= */

:root {
  --bg:          #f6f3ec;   /* warm cream */
  --bg-2:        #efe9df;   /* slightly deeper cream for panels */
  --fg:          #1a1714;   /* near-black ink */
  --fg-muted:    #6c655c;   /* warm gray */
  --fg-dim:      #9b948a;
  --line:        rgba(26,23,20,0.12);
  --line-soft:   rgba(26,23,20,0.07);
  --accent:      #5a2fd0;   /* logo purple */
  --accent-2:    #7c4dff;
  --dark:        #0a0712;   /* hero black */

  --col:         1120px;
  --col-narrow:  680px;
  --nav-h:       68px;

  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif:       'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:        'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }
::selection { background: rgba(90,47,208,0.18); }

/* legacy atmospheric layers — off */
.starfield, .grid-bg, .ambient-glow { display: none !important; }

/* ── Entrance ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
body:not(.ready) .navbar,
body:not(.ready) .hero-inner,
body:not(.ready) .page-col > *,
body:not(.ready) .site-footer { opacity: 0; }

body.ready .navbar     { animation: fadeInUp 0.8s ease-out both; }
body.ready .hero-inner { animation: fadeInUp 0.9s ease-out 0.08s both; }
body.ready .site-footer{ animation: fadeInUp 0.8s ease-out 0.16s both; }

/* ── Column wrapper ───────────────────────────────────── */
.page-col {
  position: relative;
  z-index: 1;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 40px;
}

/* ═════════════════════════════════════════════════════
   NAVBAR
   ═════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(246,243,236,0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}

/* navbar sits over the dark hero on the home page */
.navbar--on-dark {
  background: rgba(10,7,18,0.35);
  border-bottom-color: rgba(255,255,255,0.08);
}

.navbar__inner {
  max-width: var(--col);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--fg);
}
.nav-brand img {
  width: 30px; height: 30px;
  object-fit: contain;
}
.navbar--on-dark .nav-brand { color: #fff; }

.nav-brand span {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }

.navbar--on-dark .nav-links a { color: rgba(255,255,255,0.65); }
.navbar--on-dark .nav-links a:hover,
.navbar--on-dark .nav-links a.active { color: #fff; }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: #4a23b8; transform: translateY(-1px); }
.navbar--on-dark .nav-cta { background: #fff; color: var(--dark) !important; }
.navbar--on-dark .nav-cta:hover { background: rgba(255,255,255,0.85); }

@media (max-width: 560px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ═════════════════════════════════════════════════════
   DARK HERO + AURORA
   ═════════════════════════════════════════════════════ */
.hero-dark {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* improved aurora: layered radial blobs that track the cursor */
.aurora {
  --mx: 0.5; --my: 0.4;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora .blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  will-change: transform;
  mix-blend-mode: screen;
}
.aurora .blob-one {
  width: 760px; height: 760px;
  left: 50%; top: -180px;
  background: radial-gradient(circle, rgba(124,77,255,0.85), rgba(90,47,208,0) 68%);
  transform: translate3d(calc(-50% + (var(--mx) - 0.5) * 160px), calc((var(--my) - 0.5) * 110px), 0);
}
.aurora .blob-two {
  width: 640px; height: 640px;
  left: 12%; top: 40px;
  background: radial-gradient(circle, rgba(90,47,208,0.7), rgba(40,18,90,0) 70%);
  transform: translate3d(calc((0.5 - var(--mx)) * 130px), calc((0.5 - var(--my)) * 90px), 0);
}
.aurora .blob-three {
  width: 720px; height: 520px;
  right: 6%; top: 120px;
  background: radial-gradient(circle, rgba(170,130,255,0.55), rgba(60,30,130,0) 72%);
  transform: translate3d(calc((var(--mx) - 0.5) * -110px), calc((var(--my) - 0.5) * -90px), 0);
}
/* fade the aurora into the black at the bottom so it melts away */
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--dark) 96%);
}
.aurora .grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .aurora .blob { transition: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
}
.eyebrow-bracket { display: none; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 16ch;
  margin-bottom: 26px;
  color: #fff;
}

.hero-sub {
  font-size: 1.18rem;
  font-weight: 350;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ═════════════════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* on dark hero */
.btn-primary { background: #fff; color: var(--dark); }
.btn-primary:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-secondary:hover { border-color: #fff; transform: translateY(-1px); }

/* on light surfaces */
.btn--light.btn-primary { background: var(--accent); color: #fff; }
.btn--light.btn-primary:hover { background: #4a23b8; }
.btn--light.btn-secondary { color: var(--fg); border-color: var(--line); }
.btn--light.btn-secondary:hover { border-color: var(--fg); }

/* ═════════════════════════════════════════════════════
   SECTIONS (light)
   ═════════════════════════════════════════════════════ */
.section { padding-top: 72px; padding-bottom: 72px; }
.section--tight { padding-top: 120px; }

.eyebrow--ink {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-head { max-width: 720px; margin-bottom: 32px; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-lede {
  font-size: 1.12rem;
  font-weight: 350;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 640px;
}

/* ── Feature / focus area grid ───────────────────────── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
}
.area-card {
  background: var(--bg);
  padding: 32px 30px;
  transition: background 0.2s ease;
}
.area-card:hover { background: var(--bg-2); }
.area-card .area-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.area-card h3 {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.area-card p {
  font-size: 0.98rem;
  font-weight: 350;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ── Philosophy / pull statement ─────────────────────── */
.philosophy {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.philosophy p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 880px;
}
.philosophy p + p { margin-top: 22px; }
.philosophy em { font-style: italic; color: var(--accent); }

/* ── Blog card ───────────────────────────────────────── */
.blog-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 32px 36px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -20px rgba(90,47,208,0.15);
}
.blog-card__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.blog-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--fg);
}
.blog-card__excerpt {
  font-size: 0.98rem;
  font-weight: 350;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.blog-card__arrow {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.blog-card:hover .blog-card__arrow { transform: translateX(4px); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-section {
  border-top: 1px solid var(--line);
}
.faq-list {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item {
  background: var(--bg);
  padding: 30px 32px;
}
.faq-item h2 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.faq-item p {
  max-width: 780px;
  font-size: 0.98rem;
  font-weight: 350;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* ═════════════════════════════════════════════════════
   BLOG
   ═════════════════════════════════════════════════════ */
.post-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.22s ease, background 0.22s ease;
}
.post-item:hover { padding-left: 16px; background: var(--bg-2); }
.post-item__main { max-width: 78%; }
.post-item__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.post-item__excerpt { font-size: 0.98rem; font-weight: 350; color: var(--fg-muted); }
.post-item__date {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}

/* ── Article ─────────────────────────────────────────── */
.article { max-width: var(--col-narrow); margin: 0 auto; }
.article__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.article__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.article__byline {
  font-size: 0.95rem;
  font-weight: 350;
  color: var(--fg-muted);
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.article__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 16px;
}
.article__body p {
  font-size: 1.12rem;
  font-weight: 350;
  line-height: 1.8;
  color: #2e2a25;
  margin-bottom: 24px;
}
.article__body em { font-style: italic; }
.article__body strong { font-weight: 600; color: var(--fg); }

/* ── About prose ─────────────────────────────────────── */
.prose { max-width: var(--col-narrow); }
.prose p {
  font-size: 1.14rem;
  font-weight: 350;
  line-height: 1.8;
  color: #2e2a25;
  margin-bottom: 24px;
}
.prose p strong { color: var(--fg); font-weight: 600; }

/* ── Team ────────────────────────────────────────────── */
.team { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); max-width: var(--col-narrow); }
.team-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}
.team-name { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.team-role {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin: 4px 0 12px;
}
.team-bio { font-size: 0.98rem; font-weight: 350; line-height: 1.65; color: var(--fg-muted); }

/* ── Big logo strip (light) ──────────────────────────── */
.logo-strip {
  display: flex;
  justify-content: center;
  padding: 60px 0 20px;
}
.logo-strip img {
  width: min(70vw, 360px);
  height: auto;
  opacity: 0.95;
}

/* ═════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 40px 40px;
  max-width: var(--col);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.footer-brand img { width: 24px; height: 24px; object-fit: contain; }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--fg); }

/* ═════════════════════════════════════════════════════
   WAITLIST
   ═════════════════════════════════════════════════════ */
.demo-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.back-link {
  display: inline-block;
  margin-top: calc(var(--nav-h) + 48px);
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.back-link:hover { color: var(--accent); }
.demo-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.demo-sub { font-size: 1.05rem; font-weight: 350; color: var(--fg-muted); }
.glass-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  margin-top: 32px;
  margin-bottom: 80px;
  box-shadow: 0 24px 60px -30px rgba(26,23,20,0.25);
}
.glass-panel iframe { border-radius: 10px; display: block; background: #fff; width: 100%; }

/* ── Scroll reveal ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page-col, .navbar__inner, .hero-inner, .demo-wrap { padding-left: 24px; padding-right: 24px; }
  .site-footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .post-item { flex-direction: column; gap: 8px; }
  .post-item__main { max-width: 100%; }
  .post-item:hover { padding-left: 4px; }
}
