:root {
  --bg: #0b0817;
  --bg-panel: #150f28;
  --bg-elevated: #1b1433;
  --border: #2c2350;
  --border-soft: #221a3d;
  --text: #f2eefc;
  --text-muted: #b6acd6;
  --text-dim: #8b81ac;
  --accent: #7c3aed;
  --accent-bright: #a78bfa;
  --accent-cyan: #57d9ff;
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --warning: #f5b942;
  --warning-bg: rgba(245, 185, 66, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 8, 23, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  position: relative;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent-cyan);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border-soft);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .main-nav a[aria-current="page"]::after {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border-soft);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
}

.hero-media img {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #6c2fdb;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--border-soft);
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.eyebrow {
  display: block;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Audience grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 780px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.audience-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-panel);
}

.audience-card .index {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.audience-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.audience-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Project cards */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .project-list {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-live {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.35);
}

.status-dev {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: rgba(245, 185, 66, 0.35);
}

.project-card p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
}

.tag-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-card .card-footer {
  margin-top: auto;
}

.project-card-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}

/* Preview teaser on home */

.project-teaser {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.project-teaser:last-of-type {
  margin-bottom: 0;
}

.project-teaser-text h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.project-teaser-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .project-teaser {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-copy {
  max-width: 68ch;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-copy p:first-of-type {
  color: var(--text);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 28px;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.contact-line:last-child {
  margin-bottom: 0;
}

.contact-line .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.contact-line a,
.contact-line span {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-line a {
  color: var(--accent-bright);
}

.signup-card {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: transparent;
}

.signup-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.signup-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup-form input {
  flex: 1 1 220px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.signup-form button {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-weight: 600;
  cursor: not-allowed;
}

.signup-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 10px 0 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-copy {
  width: 100%;
  color: var(--text-dim);
  font-size: 0.82rem;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* Simple page header used on interior pages */

.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-head p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}
