/* Planetbind — site styles. No external requests: fonts are self-hosted, nothing loads from a CDN. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05060d;
  --bg-2: #0a0c1a;
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6ff;
  --text-2: #b4bad6;
  --text-3: #8a91b4;
  --cyan: #7fe3f0;
  --blue: #5b8cff;
  --violet: #a78bfa;
  --rose: #f0a6ca;
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(127, 227, 240, 0.3); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Background ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(91, 140, 255, 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 10%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(127, 227, 240, 0.08), transparent 70%),
    var(--bg);
}
.sky canvas { width: 100%; height: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(5, 6, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--card-strong); }
.nav-links .nav-cta { color: var(--text); border: 1px solid var(--border-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
  cursor: pointer; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--text); color: #070814; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(127, 227, 240, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { background: var(--card-strong); transform: translateY(-2px); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-2); font-size: 14px; font-weight: 500;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(127, 227, 240, 0.15);
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 600; margin: 24px 0 22px; }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Orbit illustration */
.orbit-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-left: auto; }
.orbit-art svg { width: 100%; height: 100%; overflow: visible; }
.orbit-ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.orbit-ring.dashed { stroke-dasharray: 2 8; stroke: rgba(255, 255, 255, 0.18); }
.spin { transform-origin: 230px 230px; animation: spin 60s linear infinite; }
.spin.slow { animation-duration: 110s; animation-direction: reverse; }
.spin.fast { animation-duration: 34s; }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 14px;
}
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; margin-bottom: 16px; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 0; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.card:hover { border-color: var(--border-strong); background: var(--card-strong); }
.card h3 { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-2); margin: 0; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: #8ff0c0; border-color: rgba(143, 240, 192, 0.35); }
.status.soon { color: #ffd38a; border-color: rgba(255, 211, 138, 0.35); }

/* Nuralis feature card */
.app-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; }
.app-card::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(127, 227, 240, 0.18), transparent); pointer-events: none;
}
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-icon {
  width: 76px; height: 76px; border-radius: 18px; flex: none;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-head h3 { font-size: 36px; margin: 0; }
.app-head .sub { color: var(--text-3); font-size: 15px; margin-top: 4px; }
.app-card .desc { font-size: 18px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li {
  font-size: 14px; font-weight: 500; color: var(--text); padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
}
.app-links { display: flex; flex-wrap: wrap; gap: 10px; }
.text-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 18px; font-size: 15px; }
.text-links a { color: var(--text-3); text-decoration: none; }
.text-links a:hover { color: var(--text); text-decoration: underline; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-4deg); }
.mosaic img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mosaic img:nth-child(2) { transform: translateY(28px); }
.mosaic img:nth-child(4) { transform: translateY(28px); }

/* Coming soon cards */
.soon-card { min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.soon-card .glyph {
  position: absolute; top: 28px; right: 28px; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.soon-card .glyph svg { width: 30px; height: 30px; color: var(--text); }
.soon-card .status { align-self: flex-start; }

/* Principles */
.principle .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(127, 227, 240, 0.08); border: 1px solid rgba(127, 227, 240, 0.2); color: var(--cyan);
}
.principle .icon svg { width: 24px; height: 24px; }
.principle h3 { font-size: 21px; }

/* Socials */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 28px 0 0; }
.social {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text-2); font-weight: 500; font-size: 15px; text-decoration: none;
}
.social svg { width: 18px; height: 18px; }
.social small { color: var(--text-3); font-size: 12px; font-weight: 500; }

/* Contact */
.contact {
  text-align: center; padding: 72px 32px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(91, 140, 255, 0.16), transparent 70%),
    var(--card);
}
.contact h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; }
.contact p { max-width: 520px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; margin-top: 40px; color: var(--text-3); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text-3); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Document pages (privacy / terms / support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; }
.doc .crumb { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.doc .crumb a { color: var(--text-3); text-decoration: none; }
.doc .crumb a:hover { color: var(--text); }
.doc h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; margin: 0 0 12px; }
.doc .updated { color: var(--text-3); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc a { color: var(--cyan); text-underline-offset: 3px; }
.doc ul { padding-left: 22px; }
.doc details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px; margin: 12px 0; transition: border-color 0.2s;
}
.doc details[open] { border-color: var(--border-strong); }
.doc summary {
  cursor: pointer; font-weight: 600; color: var(--text); min-height: 52px; display: flex; align-items: center;
  list-style: none;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--text-3); transition: transform 0.25s; }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin-top: 0; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.not-found h1 { font-size: clamp(64px, 12vw, 140px); }
.not-found p { color: var(--text-2); margin: 10px 0 28px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .orbit-art { max-width: 340px; margin: 8px auto 0; }
  .app-card { grid-template-columns: 1fr; padding: 32px; }
  .mosaic { max-width: 420px; margin: 0 auto 24px; }
  .span-4, .span-3, .span-2 { grid-column: span 6; }
  .principles .span-2 { grid-column: span 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-links .hide-sm { display: none; }
  .nav-links a { padding: 0 10px; }
  .section { padding: 72px 0; }
  .card { padding: 24px; }
  .app-card { padding: 24px; }
  .app-head h3 { font-size: 30px; }
  .principles .span-2 { grid-column: span 6; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact { padding: 56px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#contact-actions { justify-content: center; }
@media (max-width: 960px) {
  .mosaic { transform: none; }
  .mosaic img:nth-child(2), .mosaic img:nth-child(4) { transform: none; }
}
