:root {
  color-scheme: light;
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --focus: rgba(255, 255, 255, 0.28);
  --accent: #7c5cff;
  --accent-2: #34d399;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7fb;
  --panel: rgba(0, 0, 0, 0.05);
  --panel-2: rgba(0, 0, 0, 0.07);
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.62);
  --border: rgba(0, 0, 0, 0.12);
  --focus: rgba(0, 0, 0, 0.22);
  --accent: #4f46e5;
  --accent-2: #059669;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(52, 211, 153, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
  outline: 3px solid var(--focus);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .site-header {
  background: rgba(247, 247, 251, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), rgba(124, 92, 255, 0.35));
  box-shadow: var(--shadow);
  font-weight: 700;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--panel);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--panel-2);
}

.hero {
  padding: 60px 0 18px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section {
  padding: 44px 0;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

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

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(400px 200px at 50% 0%, rgba(124, 92, 255, 0.22), transparent 60%);
  pointer-events: none;
}

.card-title {
  margin: 0 0 10px;
  font-size: 16px;
}

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

.list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), rgba(124, 92, 255, 0.5));
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  filter: brightness(1.06);
}

.button-secondary {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.pill:hover {
  color: var(--text);
  background: var(--panel-2);
}

.note {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .note {
  background: rgba(255, 255, 255, 0.7);
}

.project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 4px 10px;
  border-radius: 999px;
}

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

.chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 999px;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
}

:root[data-theme="light"] .text-link {
  border-bottom-color: rgba(0, 0, 0, 0.25);
}

.text-link:hover {
  border-bottom-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--accent), rgba(124, 92, 255, 0.45));
  padding: 2px 6px;
  border-radius: 8px;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
  color: var(--text);
  outline: none;
  font-family: var(--font);
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus,
.icon-button:focus,
.nav-link:focus,
.button:focus,
.pill:focus,
.text-link:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

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

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

  .grid.three {
    grid-template-columns: 1fr;
  }
}

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