/*
 * Global styles for Conspira AI
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0b102b, #020616 55%);
  color: var(--color-text);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
}

/* Header / nav */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 130deg,
    var(--color-ice-pink),
    var(--color-ice-blue),
    var(--color-ice-yellow),
    var(--color-solar-coral),
    var(--color-ice-pink)
  );
  box-shadow: 0 0 18px rgba(127, 219, 255, 0.35);
}

.brand-text-main {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.brand-text-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-text-soft);
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease-out;
}

.nav a:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text);
}

.nav a.nav-active {
  background: linear-gradient(
    135deg,
    rgba(255, 138, 214, 0.2),
    rgba(127, 219, 255, 0.15)
  );
  border-color: rgba(255, 138, 214, 0.5);
  color: #f9fafb;
}

/* Main layout */

.main {
  flex: 1;
  padding-bottom: 3rem;
}

.section {
  margin-top: 2.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.section-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  max-width: 560px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  margin-top: 2.2rem;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin: 0 0 0.75rem;
}

.hero-tag {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-ice-yellow);
}

/* Cards / grids */

.card {
  background: radial-gradient(circle at top, #0f172a 0, #020617 60%);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.card p {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card links */

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-cta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-ice-blue);
}

/* AII card */

.aii-card {
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.aii-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.aii-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

.pill {
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.pill-live {
  color: #bbf7d0;
  border-color: rgba(22, 163, 74, 0.65);
  background: rgba(22, 163, 74, 0.16);
}

.aii-value {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  background: linear-gradient(
    135deg,
    var(--color-ice-pink),
    var(--color-ice-blue),
    var(--color-ice-yellow)
  );
  -webkit-background-clip: text;
  color: transparent;
}

.aii-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-soft);
  margin-bottom: 0.6rem;
}

.aii-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.7rem;
  row-gap: 0.35rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
}

.aii-meta dt {
  color: var(--color-text-soft);
}

.aii-meta dd {
  margin: 0.06rem 0 0;
}

.aii-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

/* Inline AII for signals page */

.aii-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aii-inline-value {
  font-size: 2.4rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--color-ice-pink),
    var(--color-ice-blue),
    var(--color-ice-yellow)
  );
  -webkit-background-clip: text;
  color: transparent;
}

.aii-inline-meta {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Lunar meta */

.lunar-meta {
  margin: 0 0 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  font-size: 0.85rem;
}

.lunar-meta dt {
  color: var(--color-text-soft);
}

.lunar-meta dd {
  margin: 0.03rem 0 0;
}

/* Network grid */

.network-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.network-card {
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  padding: 1rem 1.1rem;
}

.network-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
  margin-bottom: 0.3rem;
}

.network-link a {
  color: var(--color-ice-blue);
  font-size: 0.9rem;
}

.network-card .section-sub {
  margin-top: 0.55rem;
}

/* Lists */

.bullet-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.bullet-list li + li {
  margin-top: 0.25rem;
}

/* Footer */

.site-footer {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  border-top: 1px solid rgba(15, 23, 42, 0.8);
  margin-top: auto;
  padding-bottom: 1.75rem;
}

/* Responsive */

@media (max-width: 840px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2,
  .grid-3,
  .network-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
