/* Midnight Sun - static site styles */

:root {
  --bg: #0f172a;
  --card: #16203a;
  --card-edge: #233150;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #7c5ff0;
  --link: #c7d2e5;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.2px;
}

.brand img { width: 38px; height: 38px; }

.site-nav { display: flex; gap: 28px; }

.site-nav a { color: var(--link); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .footer-links a:hover { color: #ffffff; }

/* Hero */

.hero { position: relative; overflow: hidden; padding: 96px 0 64px; text-align: center; }

.hero::before {
  content: "";
  position: absolute; left: 50%; top: -30%;
  width: 1200px; height: 620px;
  transform: translateX(-50%) rotate(-18deg);
  background: linear-gradient(90deg, transparent 0%, rgba(56, 116, 222, 0.28) 45%, rgba(124, 95, 240, 0.22) 55%, transparent 100%);
  filter: blur(70px);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 800; line-height: 1.12;
  max-width: 21ch; margin: 0 auto 20px;
}

.hero p.sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 60ch; margin: 0 auto;
}

/* Inner page hero */

.page-hero { padding: 72px 0 8px; text-align: center; }

.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }

.page-hero p.sub { color: var(--muted); max-width: 62ch; margin: 14px auto 0; font-size: 1.1rem; }

/* Founder cards */

.founders { padding: 24px 0 96px; display: grid; gap: 28px; }

.person {
  display: grid; grid-template-columns: 1.25fr 360px; gap: 40px;
  background: linear-gradient(180deg, var(--card), #131c33);
  border: 1px solid var(--card-edge);
  border-radius: 16px; padding: 40px;
}

.person .chip {
  display: inline-block;
  background: var(--accent); color: #ffffff;
  font-weight: 600; font-size: 0.95rem;
  padding: 8px 18px; border-radius: 999px;
  margin-bottom: 22px;
}

.person h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; line-height: 1.25;
  margin-bottom: 14px;
}

.person p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

.person figure { margin: 0; border-radius: 10px; overflow: hidden; }

.person img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }

/* About page */

.about-body { max-width: 780px; margin: 0 auto; padding: 24px 24px 96px; }
.about-body p { color: var(--muted); font-size: 1.08rem; margin: 0 0 20px; }
.about-body p.cta { margin-top: 32px; }
.about-body a { color: #a5b4fc; }

/* Contact page */

.contact-card {
  max-width: 640px; margin: 40px auto 96px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 16px; padding: 40px;
}

.contact-card dt { font-weight: 700; color: var(--text); margin-top: 22px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { color: var(--muted); margin: 4px 0 0; }
.contact-card a { color: #a5b4fc; }
.contact-card .note { margin-top: 28px; color: var(--faint); font-size: 0.95rem; }

/* Legal pages */

.legal { max-width: 820px; margin: 0 auto; padding: 24px 24px 96px; }

.legal .updated { color: var(--faint); margin-bottom: 4px; }

.legal h2 {
  font-size: 1.35rem; font-weight: 700;
  margin: 44px 0 12px; padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.legal section:first-of-type h2 { border-top: none; padding-top: 0; margin-top: 24px; }

.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; color: #dbe4f0; }

.legal p { color: var(--muted); margin: 10px 0; }

.legal ul, .legal ol { color: var(--muted); margin: 10px 0 10px 22px; }
.legal li { margin: 6px 0; }

.legal strong { color: #e2e8f0; }
.legal a { color: #a5b4fc; }

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 56px 0 40px; text-align: center;
}

.site-footer .brand { margin-bottom: 26px; }

.footer-links { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

.footer-links a { color: var(--link); text-decoration: none; }

.footer-links .sep { color: var(--faint); }

.copyright { color: var(--faint); font-size: 0.95rem; }

/* Responsive */

@media (max-width: 880px) {
  .person { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .person img { min-height: 0; }
  .hero { padding: 72px 0 48px; }
  .contact-card { padding: 28px; }
}
