/* ===========================
   Home page base (index.html)
   Scoped to .page-home so it won’t mess up other pages
   =========================== */

.page-home {
  --bg: #050815;
  --bg-alt: #070b1e;
  --accent: #36c2ff;
  --accent-2: #7af2c9;
  --text: #e7ecff;
  --muted: #a4b0d7;
  --border-subtle: rgba(255,255,255,0.08);
  --radius-pill: 999px;
  --radius-lg: 18px;
  --max-width: 1120px;
}

.page-home * { box-sizing: border-box; }

.page-home body,
body.page-home {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0c1638 0, #050815 55%, #02030a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page-home a { color: inherit; text-decoration: none; }

.page-home .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.page-home header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,8,21,0.9), rgba(5,8,21,0.05));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-home .nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-home .brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.page-home .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 40%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.page-home .brand-name {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-home .brand-sub { font-size: .75rem; color: var(--muted); }

.page-home .nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
}

.page-home .nav-links span { cursor: pointer; position: relative; padding-bottom: 2px; }
.page-home .nav-links span::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  transition: width .16s ease-out;
}
.page-home .nav-links span:hover { color: var(--text); }
.page-home .nav-links span:hover::after { width: 100%; }

/* Breadcrumb */
.page-home .breadcrumb-bar {
  background: rgba(5, 8, 21, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  font-size: .78rem;
}

.page-home .breadcrumb-inner {
  padding: .45rem 1.5rem .5rem;
  display: flex;
  align-items: center;
  color: rgba(156, 163, 175, 1);
}

.page-home .crumb-current { color: #e5e7eb; font-weight: 500; }

/* Main / hero */
.page-home main { padding: 3.3rem 0 3rem; }

.page-home .hero {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1.1fr);
  gap: 2.6rem;
  align-items: center;
}

@media (max-width: 880px) {
  .page-home .hero { grid-template-columns: minmax(0,1fr); }
}

.page-home .kicker {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(164,176,215,0.9);
  margin-bottom: .6rem;
}

.page-home h1 {
  font-size: clamp(2.3rem, 3vw + 1rem, 3.2rem);
  margin: 0 0 .75rem;
  letter-spacing: -0.03em;
}

.page-home h1 span {
  background: linear-gradient(90deg,#7af2c9,#36c2ff,#9f7aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-text {
  font-size: .96rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.4rem;
}

.page-home .hero-meta { font-size: .8rem; color: var(--muted); }

/* Buttons */
.page-home .btn {
  border-radius: var(--radius-pill);
  padding: .4rem 1.1rem;
  font-size: .8rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: radial-gradient(circle at 0 0, rgba(122,242,201,0.16), rgba(54,194,255,0.08), transparent);
  color: var(--text);
  cursor: pointer;
}

.page-home .btn-primary {
  border-color: rgba(37, 99, 235, 0.7);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 40%, #020617 100%);
  color: #e5f0ff;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

/* Right card */
.page-home .hero-card {
  background: rgba(6,12,40,0.96);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(0,0,0,0.8);
  font-size: .86rem;
}

.page-home .hero-card h2 { margin: 0 0 .4rem; font-size: 1.05rem; }

.page-home .hero-card ul {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .84rem;
}

/* Sections / grid / cards */
.page-home section { padding: 2.8rem 0 0; }

.page-home .section-title { font-size: 1.4rem; margin-bottom: .2rem; }

.page-home .section-body {
  font-size: .9rem;
  color: var(--muted);
  max-width: 40rem;
}

.page-home .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.page-home .card {
  background: rgba(7,12,40,0.96);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  font-size: .86rem;
  color: var(--muted);
}

.page-home .card h3 {
  margin-top: 0;
  margin-bottom: .2rem;
  font-size: .95rem;
  color: var(--text);
}

/* Footer */
.page-home footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.4rem;
  font-size: .78rem;
  color: var(--muted);
  background: #040614;
  margin-top: 3rem;
}



/* =========================================================
   Calypso Base (OPT-IN)
   Add: <body class="cl"> to enable these styles on a page.
   This prevents breaking Integrity Suite while we migrate.
   ========================================================= */

.cl {
  /* Theme tokens */
  --bg: #050815;
  --bg-alt: #070b1e;
  --accent: #36c2ff;
  --accent-2: #7af2c9;
  --text: #e7ecff;
  --muted: #a4b0d7;
  --border-subtle: rgba(255,255,255,0.08);
  --radius-pill: 999px;
  --radius-lg: 18px;
  --max-width: 1120px;

  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0c1638 0, #050815 55%, #02030a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.cl *,
.cl *::before,
.cl *::after { box-sizing: border-box; }

.cl a { color: inherit; text-decoration: none; }

/* Layout container */
.cl .container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.cl header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,8,21,0.9), rgba(5,8,21,0.05));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cl .nav-inner{
  height: 70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.cl .brand{
  display:flex;
  align-items:center;
  gap: .75rem;
}

.cl .brand-logo{
  width: 34px;
  height: 34px;
  border-radius: 40%;
  background: radial-gradient(circle at 30% 20%, #7af2c9, #36c2ff 45%, #151932 100%);
  border: 1px solid rgba(122,242,201,0.5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.cl .brand-name{
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cl .brand-sub{
  font-size: .75rem;
  color: var(--muted);
}

.cl .nav-links{
  display:flex;
  gap: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cl .nav-links span{
  cursor:pointer;
  position:relative;
  padding-bottom:2px;
  white-space: nowrap;
}

.cl .nav-links span::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  border-radius:999px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  transition: width .16s ease-out;
}

.cl .nav-links span:hover{ color: var(--text); }
.cl .nav-links span:hover::after{ width:100%; }

/* Breadcrumbs (works for pages that include it) */
.cl .breadcrumb-bar{
  background: rgba(5, 8, 21, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  font-size: .78rem;
}

.cl .breadcrumb-inner{
  padding: .45rem 1.5rem .5rem;
  display:flex;
  align-items:center;
  color: rgba(156, 163, 175, 1);
}

.cl .back-link{
  color: rgba(209, 213, 219, 1);
  text-decoration:none;
  margin-right: 1.75rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(55, 65, 81, 0.6);
}

.cl .back-link:hover{ color: #e5e7eb; }

.cl .breadcrumb-inner > a:not(.back-link){
  color: rgba(199, 210, 254, 1);
  text-decoration:none;
}

.cl .breadcrumb-inner > a:not(.back-link):hover{ text-decoration: underline; }

.cl .crumb-sep{ margin: 0 .35rem; opacity: 0.6; }
.cl .crumb-current{ color: #e5e7eb; font-weight: 500; }

/* Buttons */
.cl .btn{
  border-radius: var(--radius-pill);
  padding: .4rem 1.1rem;
  font-size: .8rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: radial-gradient(circle at 0 0, rgba(122,242,201,0.16), rgba(54,194,255,0.08), transparent);
  color: var(--text);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.cl .btn-primary{
  border-color: rgba(37, 99, 235, 0.7);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 40%, #020617 100%);
  color: #e5f0ff;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

/* Generic section + card helpers (only if the page uses these classnames) */
.cl main{ padding: 3.3rem 0 3rem; }

.cl section{ padding: 2.8rem 0 0; }

.cl .section-title{
  font-size: 1.4rem;
  margin-bottom: .2rem;
}

.cl .section-body{
  font-size: .9rem;
  color: var(--muted);
  max-width: 40rem;
}

.cl .grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.cl .card{
  background: rgba(7,12,40,0.96);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  font-size: .86rem;
  color: var(--muted);
}

.cl .card h3{
  margin-top: 0;
  margin-bottom: .2rem;
  font-size: .95rem;
  color: var(--text);
}

/* Footer */
.cl footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.4rem;
  font-size: .78rem;
  color: var(--muted);
  background: #040614;
  margin-top: 3rem;
}


/* ===========================
   Calypso Labs shared styles
   Stage 1: Floating social bar
   =========================== */

:root {
  --sf-bg: rgba(10, 10, 10, 0.62);
  --sf-border: rgba(255, 255, 255, 0.12);
  --sf-tile-bg: rgba(0, 0, 0, 0.35);
  --sf-tile-border: rgba(255, 255, 255, 0.10);
  --sf-tile-hover-bg: rgba(255, 255, 255, 0.06);
  --sf-tile-hover-border: rgba(255, 255, 255, 0.22);
  --sf-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.social-float {
  position: fixed;
  top: 42%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 10px;
  border-radius: 999px;

  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  box-shadow: var(--sf-shadow);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-float a {
  width: 42px;
  height: 42px;

  border-radius: 14px;
  display: grid;
  place-items: center;

  text-decoration: none;
  color: #f2f2f2;

  background: var(--sf-tile-bg);
  border: 1px solid var(--sf-tile-border);

  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.social-float a:hover {
  transform: translateX(-2px) scale(1.04);
  background: var(--sf-tile-hover-bg);
  border-color: var(--sf-tile-hover-border);
}

.social-float svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Tooltip label */
.social-float a[data-label] {
  position: relative;
}

.social-float a[data-label]::after {
  content: attr(data-label);
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);

  padding: 7px 10px;
  border-radius: 10px;

  font: 600 12px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.1px;

  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);

  opacity: 0;
  pointer-events: none;
  white-space: nowrap;

  transition: opacity 140ms ease, transform 140ms ease;
}

.social-float a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

/* Keyboard focus */
.social-float a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
}

/* Mobile: hide */
@media (max-width: 720px) {
  .social-float { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .social-float a { transition: none; }
  .social-float a[data-label]::after { transition: none; }
}
