﻿:root {
  --bg: #07111f;
  --bg-soft: #0c1b31;
  --panel: rgba(155, 197, 255, 0.08);
  --panel-strong: rgba(155, 197, 255, 0.14);
  --line: rgba(155, 197, 255, 0.16);
  --text: #edf4ff;
  --muted: #9eb0ca;
  --accent: #77b4ff;
  --accent-strong: #4d97ff;
  --success: #77d6a0;
  --danger: #ff7c7c;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 20px 60px rgba(2, 10, 25, 0.38);
  --max-width: 1100px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(77, 151, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(119, 180, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #09172a 45%, #081321 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
textarea,
input {
  font: inherit;
}
.page-shell {
  position: relative;
  isolation: isolate;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
}
.site-header,
.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #06111f;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  box-shadow: 0 12px 28px rgba(77, 151, 255, 0.24);
}
.brand-copy {
  display: grid;
}
.brand-copy strong,
.site-nav a,
.btn,
.hero h1,
.section-heading h2,
.product-card h3,
.about-card h3,
.cta-section h2,
.modal-card h2,
.bio-link strong {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-copy small,
.site-nav a,
.eyebrow,
.card-kicker,
.bio-role,
.mini-label {
  text-transform: uppercase;
}
.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-size: 1rem;
}
.site-nav a:hover {
  color: var(--text);
}
.section {
  padding: 3.25rem 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  padding-top: 4rem;
}
.hero-copy,
.hero-panel,
.product-card,
.about-card,
.cta-section,
.modal-card,
.app-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(155, 197, 255, 0.08), rgba(155, 197, 255, 0.04));
  box-shadow: var(--shadow);
}
.hero-copy,
.hero-panel,
.cta-section,
.modal-card,
.app-panel {
  border-radius: var(--radius-xl);
}
.hero-copy,
.hero-panel,
.product-card,
.about-card,
.cta-section,
.modal-card,
.bio-link {
  position: relative;
  overflow: hidden;
}
.hero-copy,
.hero-panel {
  padding: 1.6rem;
}
.hero-copy::before,
.hero-panel::before,
.product-card::before,
.about-card::before,
.cta-section::before,
.modal-card::before,
.bio-link::before,
.app-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 42%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.hero h1,
.section-heading h2,
.cta-section h2,
.modal-card h2 {
  margin: 0;
  line-height: 0.98;
}
.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.7rem, 10vw, 6.6rem);
}
.lede,
.product-card p,
.about-card p,
.cta-section p,
.bio-link small,
.brand-copy small,
.site-nav a,
.mini-label,
.form-help,
.status-panel {
  color: var(--muted);
}
.lede {
  max-width: 50ch;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}
.hero-actions,
.cta-actions,
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  background: var(--accent-strong);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent);
}
.btn-hero {
  min-height: 4.5rem;
  padding: 0 1.75rem;
  font-size: 1.12rem;
  border-radius: 28px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  box-shadow: 0 28px 60px rgba(77, 151, 255, 0.22);
}
.btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 36px 80px rgba(77, 151, 255, 0.28);
}
.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.section-heading {
  margin-bottom: 1.8rem;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.product-grid,
.about-grid,
.dashboard-grid,
.app-grid,
.admin-log-grid {
  display: grid;
  gap: 1rem;
}
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-panel.hero-stats {
  display: grid;
  gap: 1rem;
}
.mini-stat,
.dashboard-card,
.app-panel,
.about-card,
.product-card,
.cta-section,
.modal-card,
.output-panel {
  padding: 1.6rem;
}
.mini-stat {
  border-radius: var(--radius-lg);
}
.mini-stat strong,
.dashboard-card strong {
  display: block;
  font-size: 2.35rem;
  margin-top: 0.75rem;
}
.output-header,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.output-panel {
  display: grid;
  gap: 1rem;
}
.code-output {
  min-height: 16rem;
  border-radius: var(--radius-md);
  background: rgba(5, 16, 32, 0.92);
  padding: 1rem;
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(158, 176, 202, 0.16);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}
.form-label,
.select-field span {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.textarea,
.select-field select,
input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1rem;
  color: var(--text);
  outline: none;
  min-height: 10rem;
}
.input-field {
  min-height: auto;
}
.textarea {
  min-height: 14rem;
}
.select-field {
  flex: 1;
  min-width: 220px;
}
.field-row {
  align-items: flex-end;
}
.status-panel {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(48, 72, 112, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.form-help {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-card {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
}
.bio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bio-link {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bio-link:hover {
  transform: translateY(-2px);
}
.product-card {
  border-radius: var(--radius-xl);
}
.about-card {
  border-radius: var(--radius-xl);
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 20;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 24, 0.78);
}
.modal-card {
  position: relative;
  width: min(720px, 100%);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}
.admin-panel {
  border-radius: var(--radius-xl);
}
.admin-log-grid {
  grid-template-columns: 1fr 1fr;
}
.admin-list {
  display: grid;
  gap: 0.85rem;
  max-height: 32rem;
  overflow: auto;
}
.admin-list-item {
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-list-item strong {
  display: block;
  margin-bottom: 0.35rem;
}
.admin-list-item p {
  margin: 0.35rem 0;
  color: var(--muted);
}
.admin-list-item small {
  color: rgba(158, 176, 202, 0.85);
}
.hidden {
  display: none !important;
}

/* ── Auth Buttons ────────────────────────────────── */
.auth-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 200ms ease;
  border: none;
  text-decoration: none;
}

.btn-nav-signin {
  border: 1.5px solid rgba(119, 180, 255, 0.32);
  background: transparent;
  color: var(--text);
}

.btn-nav-signin:hover {
  background: rgba(119, 180, 255, 0.1);
  border-color: var(--accent-strong);
  color: var(--accent);
}

.btn-nav-signup {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #06111f;
  box-shadow: 0 8px 20px rgba(77, 151, 255, 0.22);
}

.btn-nav-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(77, 151, 255, 0.28);
}

/* ── Dashboard Navigation ────────────────────────────────── */
.nav-dashboard {
  color: var(--text);
  font-weight: 600;
  transition: color 200ms ease;
}

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

.btn-nav-signout {
  padding: 0.65rem 1.5rem;
  border: 1.5px solid rgba(168, 85, 247, 0.24);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-nav-signout:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 700px) {
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .btn-nav-auth {
    width: 100%;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .about-grid,
  .dashboard-grid,
  .app-grid,
  .admin-log-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .page-shell,
  .site-header,
  .section {
    width: calc(100% - 1.5rem);
  }
  .hero-actions,
  .cta-actions,
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }
  .output-header,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
