/* Phanes Labs — phaneslabs.com. Static, dependency-free, dark brand theme. */

:root {
  --bg: #0a0a0a;
  --surface: #1e2231;
  --surface-elevated: #252a3c;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6b7280;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --max-width: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: url("/bg-texture.svg"),
    radial-gradient(
      ellipse at center,
      rgba(30, 34, 49, 0.55) 0%,
      rgba(10, 10, 10, 0.95) 55%,
      rgba(0, 0, 0, 1) 100%
    );
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */

header.site {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f4f6fa;
  padding: 2px;
  display: block;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
}

nav.site a:hover {
  color: var(--text);
}

nav.site a.pill {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

nav.site a.pill:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Main / hero ---- */

main {
  flex: 1;
}

.legal main {
  padding: 3rem 0 4rem;
}

.hero-section {
  display: flex;
  align-items: center;
  min-height: calc(88vh - 4rem);
  padding: 4rem 0;
}

.below {
  padding: 1rem 0 6rem;
}

.section-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 1.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(30, 34, 49, 0.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .mark {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #f4f6fa;
  padding: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.07);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  background: linear-gradient(180deg, #ffffff 30%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin: 2.4rem 0 0.6rem;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.6rem 0 0.4rem;
}

p {
  margin: 0.7rem 0;
  color: var(--text-secondary);
}

.lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 auto;
}

.muted {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 500;
}

a {
  color: #d7dbe6;
}

a:hover {
  color: #ffffff;
}

/* ---- Buttons ---- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid #ffffff;
}

.btn.primary:hover {
  background: #e4e4e4;
  color: #0a0a0a;
}

.btn.outline {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.btn.outline:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.btn .arrow {
  font-size: 1.05em;
  line-height: 1;
}

/* ---- Legal / prose pages ---- */

.legal .updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: -0.4rem 0 2.2rem;
}

ul,
ol {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

li {
  margin: 0.35rem 0;
}

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: space-between;
}

footer.site a {
  color: var(--text-muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--text-secondary);
}

/* ---- Fade-in ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: fadeUp 0.7s ease-out both;
}

.hero > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero > *:nth-child(3) {
  animation-delay: 0.24s;
}

.hero > *:nth-child(4) {
  animation-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .hero > * {
    animation: none;
  }
}
