:root {
  --bg-gradient: linear-gradient(135deg, #05060a, #0f172a);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --accent: #00ffd5;
  --accent-soft: rgba(0,255,213,0.15);
  --border: rgba(255,255,255,0.12);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto;
}

body {
  background: var(--bg-gradient);
  color: var(--text);
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================
   HEADER
========================= */
header {
  padding: 12px 24px;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 32px;
  width: auto;
  display: block;
}

nav a {
  color: var(--muted);
  margin-left: 12px;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent);
}

nav a[aria-current="page"] {
  color: var(--accent);
}

nav a:focus-visible {
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================
   MAIN LAYOUT
========================= */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

main.main--top {
  align-items: flex-start;
  padding-bottom: 40px;
}

/* =========================
   CARD
========================= */
.card {
  max-width: 700px;
  width: 100%;
  padding: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-align: center;
}

.card h1 {
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card--prose {
  text-align: left;
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.card--prose h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.card--prose p {
  color: var(--muted);
  line-height: 1.7;
}

.card--prose p + p {
  margin-top: 1rem;
}

/* =========================
   HOME
========================= */
.container {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding: 40px;
}

.left {
  max-width: 420px;
}

.left h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.left p {
  color: var(--muted);
  line-height: 1.5;
}

/* =========================
   LOGIN BOX (GLASS)
========================= */
.glass {
  width: 320px;
  padding: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* =========================
   TABS
========================= */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
  border-radius: 10px;
}

.tab {
  flex: 1;
  border: none;
  padding: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* =========================
   FORMS
========================= */
.forms-wrapper {
  position: relative;
  min-height: 190px;
}

form {
  display: flex;
  flex-direction: column;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

form.active {
  visibility: visible;
  pointer-events: auto;
}

.form-message {
  display: block;
  font-size: 0.8rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--accent);
  margin-top: 6px;
}

.noscript-msg {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* =========================
   INPUTS
========================= */
input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
  color: var(--muted);
}

input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,213,0.15);
}

/* =========================
   BUTTONS
========================= */
button.submit {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #002b27;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

button.submit:hover {
  background: #00e8c0;
  box-shadow: 0 4px 16px rgba(0,255,213,0.3);
}

button.submit:active {
  transform: scale(0.98);
}

button.submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button.link {
  width: 100%;
  background: transparent;
  border: none;
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

button.link:hover {
  color: var(--accent);
}

button.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================
   EXPLORE / PROJECTS
========================= */
.project-list__intro {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
}

.project-description {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.project-link:hover {
  opacity: 0.75;
}

.project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .glass {
    width: 100%;
  }
}