:root {
  --bg: #07101d;
  --surface: rgba(18, 27, 45, 0.62);
  --surface-2: rgba(23, 35, 58, 0.78);
  --text: #ecf1f9;
  --muted: #aeb8ca;
  --line: rgba(255, 255, 255, 0.10);
  --brand: #7de2ff;
  --brand-2: #7ef0b3;
  --danger: #ff7f7f;
  --success: #8ef0b4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);

  /* Change only this path when you want a different shared background image */
  --page-bg-image: url("/static/images/salla_bg.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 149, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(0, 255, 200, 0.10), transparent 25%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.88), rgba(6, 16, 29, 0.92)),
    var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body {
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.60), rgba(3, 8, 18, 0.78)),
    radial-gradient(circle at center, rgba(12, 80, 180, 0.10), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

main {
  min-height: calc(100vh - 140px);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 14, 26, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f3f7ff;
}

.brand span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #dce8f8;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
  opacity: 1;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #08111e !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 1 !important;
}

.contact-btn:hover {
  color: #08111e !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 12px;
}

/* Hero and layout */
.hero {
  padding: 88px 0 52px;
}

.hero-grid,
.two-col,
.architecture-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.25fr 0.95fr;
  align-items: start;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

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

.hero h1,
.hero-mini h1,
.section h1 {
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.96;
  margin: 0 0 18px;
  letter-spacing: -0.05em;
  animation: fadeUp 0.9s ease both;
}

.hero-mini {
  padding: 56px 0 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 62ch;
  line-height: 1.55;
  animation: fadeUp 1.1s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 700;
  border: 1px solid rgba(125, 226, 255, 0.24);
  background: rgba(125, 226, 255, 0.08);
  animation: fadeUp 0.7s ease both;
}

.gradient {
  background: linear-gradient(90deg, #f4f8ff 0%, #d8f5ff 52%, #b9ffe9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions,
.button-row,
.map-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Sections */
.section {
  padding: 28px 0 48px;
}

.section.alt,
.muted-bg {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  margin-bottom: 20px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

/* Glass panels and cards */
.card,
.hero-card,
.glass-card,
.panel {
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.62), rgba(10, 20, 36, 0.74));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.card:hover,
.hero-card:hover,
.glass-card:hover,
.panel:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.hero-card ul,
.feature-list {
  padding-left: 18px;
}

.feature-list li,
.hero-card li {
  margin-bottom: 10px;
  color: #deebf8;
}

.panel.warning {
  border-color: rgba(255, 140, 140, 0.32);
}

.note-panel {
  border-color: rgba(146, 255, 184, 0.25);
}

.callout,
.alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.96rem;
}

.callout {
  background: rgba(102, 226, 255, 0.08);
  border: 1px solid rgba(102, 226, 255, 0.18);
  color: #cff7ff;
}

.alert.success {
  background: rgba(151, 245, 194, 0.08);
  border: 1px solid rgba(151, 245, 194, 0.22);
  color: var(--success);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #08111e;
}

.btn.secondary,
.btn.ghost,
.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.btn.danger {
  background: linear-gradient(90deg, #ff9f9f, #ff7474);
  color: #1b0e0e;
}

.btn-small {
  padding: 9px 14px;
  border-radius: 12px;
}

/* Grids and cards */
.stats-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.stat-card,
.list-card,
.result-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.stat-card strong,
.list-card strong,
.result-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.stat-card span,
.list-card span,
.muted,
.section-head p,
.card p,
.logic-box,
.result-item small,
.result-item div,
.result-item p,
.footer-grid p,
.footer-grid li {
  color: var(--muted);
}

.compact p {
  min-height: 48px;
}

.tag,
.badge {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--brand);
  background: rgba(125, 226, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 226, 255, 0.15);
}

.meta-stack {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-item span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #062131;
  font-weight: 800;
}

/* Partner list */
.partner-list {
  display: grid;
  gap: 14px;
}

.partner-list.compact {
  gap: 10px;
}

.list-card.wide {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: start;
}

/* Forms */
.form-stack,
.stack-form {
  display: grid;
  gap: 14px;
}

.form-stack label,
.stack-form label,
.stack-form legend {
  display: grid;
  gap: 7px;
  color: #deebf8;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 14, 25, 0.88);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(102, 226, 255, 0.22);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.inline-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.inline-check input,
.chips input,
.checkbox input {
  width: auto;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chips label,
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dce8f8;
}

.two-inputs {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.narrow {
  width: min(760px, 92%);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* Map */
.map {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #d8e3ef;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.large-map {
  height: 560px;
}

.map-card {
  padding: 18px;
}

.route-info-card {
  margin-top: 18px;
}

.route-info-card:empty {
  display: none;
}

/* Helpers */
.logic-box {
  margin-top: 20px;
  border-left: 4px solid var(--brand);
  padding-left: 14px;
}

.result-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.code-block {
  white-space: pre-wrap;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.center {
  text-align: center;
}

.center-panel {
  text-align: center;
  padding: 48px 22px;
}

/* Flash */
.flash-stack {
  padding-top: 16px;
}

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.flash.success {
  background: rgba(142, 240, 180, 0.15);
  border: 1px solid rgba(142, 240, 180, 0.4);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.18);
  padding: 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  color: var(--muted);
}

.footer-grid h4 {
  margin-top: 0;
}

.footer-grid ul {
  padding-left: 18px;
}

.footer-bottom {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 980px) {

  .hero-grid,
  .two-col,
  .architecture-grid,
  .stats-grid,
  .simple-grid,
  .footer-grid,
  .list-card.wide,
  .card-grid.three,
  .two-inputs {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px;
    background: rgba(7, 17, 31, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .large-map {
    height: 420px;
  }
}