*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-body: #050816;
  --bg-main: #020617;
  --bg-panel: #0b1120;
  --border-soft: #1e293b;
  --accent-main: #38bdf8;
  --accent-soft: #0ea5e9;
  --accent-warm: #f97316;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #0b1120 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  line-height: 1.7;
}

/* Layout with left sidebar */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.1rem;
  gap: 1.6rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--accent-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.sidebar-logo-mark a {
  color: var(--text-main);
  text-decoration: none;
}

.sidebar-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-title-main {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sidebar-title-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.sidebar-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  flex-shrink: 0;
}

.sidebar-nav a:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  transform: translateX(2px);
}

.sidebar-nav a:hover::before {
  background: var(--accent-main);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.sidebar-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sidebar-footer .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-main);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  margin-right: 0.4rem;
}

/* Main area */
.main-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(56,189,248,0.18) 0, transparent 40%);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.8rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(16px);
  background: linear-gradient(to right, rgba(15,23,42,0.94), rgba(15,23,42,0.9));
}

.top-bar-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.site-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.top-bar-right {
  text-align: right;
  font-size: 0.8rem;
}

.top-bar-right span {
  display: block;
  color: var(--text-muted);
}

.top-bar-right a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.top-bar-right a:hover {
  text-decoration: underline;
}

/* Generic wrapper */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.8rem 2.4rem;
}

/* Hero full-screen */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/hero-xeno.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.4), transparent 60%),
    radial-gradient(circle at bottom right, rgba(249,115,22,0.45), transparent 55%),
    linear-gradient(to bottom, rgba(15,23,42,0.93), rgba(15,23,42,0.97));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.8rem 2.6rem;
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.5fr);
  gap: 2.1rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.85);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hero-kicker span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-main);
  box-shadow: 0 0 10px rgba(56,189,248,0.9);
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.15;
  max-width: 26rem;
  margin-bottom: 0.7rem;
}

.hero-title strong {
  color: var(--accent-main);
  font-weight: 600;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 30rem;
  margin-bottom: 0.7rem;
}

.hero-highlight {
  color: #e5e7eb;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.hero-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.8);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 30rem;
}

.hero-stat {
  border-top: 1px solid rgba(148,163,184,0.6);
  padding-top: 0.5rem;
  font-size: 0.8rem;
}

.hero-stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Hero card (form) */
.hero-card {
  align-self: center;
  border-radius: 18px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.8),
    0 22px 60px rgba(15,23,42,0.9);
  padding: 1.2rem 1.3rem 1.1rem;
  display: grid;
  gap: 0.7rem;
  max-width: 420px;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.hero-card h2 {
  font-size: 1rem;
}

.hero-card small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-card-badges {
  display: flex;
  gap: 0.3rem;
}

.hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.hero-badge-dot:nth-child(1) { background: var(--accent-main); }
.hero-badge-dot:nth-child(2) { background: var(--accent-warm); }
.hero-badge-dot:nth-child(3) { background: #22c55e; }

.hero-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-card label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card input,
.hero-card textarea,
.hero-card select {
  width: 100%;
  margin-top: 0.18rem;
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #020617;
  color: var(--text-main);
  font: inherit;
  font-size: 0.86rem;
}

.hero-card textarea {
  min-height: 64px;
  resize: vertical;
}

.hero-card input::placeholder,
.hero-card textarea::placeholder {
  color: #6b7280;
}

/* Sections */
.section {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-main);
}

.section h1,
.section h2 {
  font-size: 1.35rem;
}

.section p {
  color: var(--text-muted);
  max-width: 42rem;
}

/* cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.5);
  padding: 1rem 1rem 0.9rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-tag {
  display: inline-flex;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

/* content layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.1fr);
  gap: 2rem;
}

.content-layout aside {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.content-box {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.98);
  padding: 1rem 1.1rem;
}

.content-box h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.content-box ul {
  list-style: none;
  padding-left: 0;
}

.content-box li::before {
  content: "•";
  color: var(--accent-main);
  margin-right: 0.45rem;
}

.content-box li {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

/* illustrations */
.content-illustration {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.5);
  margin-bottom: 0.9rem;
}

/* lists & typography */
ul, ol {
  margin-left: 1.3rem;
  margin-bottom: 0.7rem;
}

li {
  margin-bottom: 0.25rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

strong {
  color: #e5e7eb;
}

/* generic forms */
form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #020617;
  color: var(--text-main);
  font: inherit;
  font-size: 0.9rem;
}

textarea {
  resize: vertical;
}

/* buttons */
button {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent-main);
  background: radial-gradient(circle at top left, var(--accent-soft), var(--accent-main));
  color: #0f172a;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

/* footer */
footer {
  border-top: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at bottom, #020617, #020617 60%);
  color: var(--text-muted);
  padding: 1.4rem 1.8rem 1.6rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.8rem;
}

.footer-inner a {
  color: var(--accent-main);
}

/* cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #020617;
  color: var(--text-muted);
  border-top: 1px solid rgba(148,163,184,0.4);
  padding: 0.85rem 1.8rem;
  font-size: 0.8rem;
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cookie-banner a {
  color: var(--accent-main);
  text-decoration: underline;
}

.cookie-banner button {
  background: var(--accent-main);
  color: #020617;
  border-color: var(--accent-main);
}

/* responsive */
@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 100%;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 1.1rem;
    border-right: none;
    border-bottom: 1px solid rgba(148,163,184,0.28);
    gap: 1rem;
  }
  .sidebar-header {
    flex: 1;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .sidebar-nav a {
    font-size: 0.65rem;
    padding-inline: 0.65rem;
  }
  .sidebar-footer {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .hero-card {
    max-width: none;
  }
  .hero {
    min-height: 720px;
  }
  .shell {
    padding: 1.6rem 1.3rem 2.3rem;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-bar {
    padding-inline: 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .shell {
    padding-inline: 1.1rem;
  }
  .hero-inner {
    padding-inline: 1.1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    align-items: flex-start;
  }
}

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