/* Tecknowlogist — dark slate + teal HUD accents */

:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-card: #151f33;
  --border: #243049;
  --text: #e8eef7;
  --text-muted: #9aabc4;
  --accent: #2dd4bf;
  --accent-soft: #14b8a6;
  --accent-dim: rgba(45, 212, 191, 0.14);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --danger-soft: #fb7185;
  --focus: #67e8f9;
  --radius: 12px;
  --max: 1080px;
  --nav-h: 3.5rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 184, 166, 0.06), transparent 50%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #5eead4;
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: #042f2e;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 55%, #0e7490 100%);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35);
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem 1rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-dim);
  color: var(--accent);
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
  }
}

/* Hero */
.hero {
  padding: 2.75rem 0 2.25rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-powered {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-tagline {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #2dd4bf, #14b8a6);
  color: #042f2e;
}

.btn-primary:hover {
  color: #042f2e;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.hero-mascot {
  justify-self: center;
  width: min(100%, 320px);
}

.hero-mascot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #05080f;
  box-shadow: var(--shadow);
}

.mascot-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}

@media (min-width: 800px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }

  .hero-mascot {
    width: min(100%, 380px);
    justify-self: end;
  }
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Project cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  position: relative;
  display: block;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-active:hover {
  border-color: var(--accent);
  background: #17233a;
  transform: translateY(-2px);
  color: inherit;
}

.card-active:hover h3 {
  color: var(--accent);
}

.card-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.badge-soon {
  background: rgba(154, 171, 196, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(154, 171, 196, 0.25);
}

/* About */
.about-blurb {
  max-width: 42rem;
  color: var(--text-muted);
  margin: 0;
}

/* Page chrome */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.page-hero .lede {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.content-block {
  padding: 0 0 2.5rem;
}

.content-block h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
}

.content-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.content-block li + li {
  margin-top: 0.4rem;
}

.disclaimer {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--warn-bg);
}

.disclaimer strong {
  color: var(--warn);
  display: block;
  margin-bottom: 0.35rem;
}

.disclaimer p {
  margin: 0;
  color: #fde68a;
}

.policy-text {
  max-width: 48rem;
}

.policy-text p + p {
  margin-top: 1rem;
}

.meta-line {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.coming-soon {
  padding: 3rem 0 4rem;
  text-align: center;
}

.coming-soon h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.coming-soon p {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #080e18;
  padding: 2rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  margin-top: 0.35rem !important;
  font-size: 0.88rem !important;
  max-width: 40rem;
}

.email-obf {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

.email-obf:hover {
  color: #5eead4;
  text-decoration: underline;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr auto;
    align-items: start;
  }
}
