:root {
  --bg: #0b1220;
  --panel: #172033;
  --panel2: #202c42;
  --text: #f1f5f9;
  --muted: #9caac0;
  --blue: #3b82f6;
  --cyan: #38bdf8;
  --violet: #8b5cf6;
  --border: #34435d;
  --shadow: 0 24px 70px #02061780;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  min-width: 320px;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, #253a67 0, transparent 36rem), var(--bg);
  color: var(--text);
  font:
    15px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}
.skip-to-content {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  max-width: calc(100vw - 1.5rem);
  padding: 0.7rem 1rem;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  background: #080f1d;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.12s ease;
}
.skip-to-content:focus-visible {
  transform: translateY(0);
}
.topbar {
  height: 74px;
  max-width: 1180px;
  margin: auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff10;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.topbar a:not(.brand) {
  text-decoration: none;
  color: var(--muted);
}
.topbar a:hover {
  color: var(--text) !important;
}
.brand {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand span,
.hero h1 span {
  background: linear-gradient(100deg, var(--cyan), #8295ff, var(--violet));
  background-clip: text;
  color: transparent;
}
.topbar a.language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}
.topbar a.language:hover {
  background: var(--panel2);
}
/* A compact language chip stays legible beside the expanded product menu. */
.topbar a.language,
footer a.language {
  gap: 0.4rem;
  border-color: #75bfff66;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f626, #8b5cf61f);
  color: #d9ecff;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.topbar a.language::before,
footer a.language::before {
  content: "◌";
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
}
.topbar a.language:hover,
footer a.language:hover {
  border-color: #8ed1ff;
  background: linear-gradient(135deg, #3b82f640, #8b5cf633);
  color: var(--text);
  transform: translateY(-1px);
}
footer a.language {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.62rem;
}
.hero {
  max-width: 1020px;
  margin: auto;
  padding: 8.5rem 1.5rem 7rem;
  text-align: center;
}
.hero-mark {
  display: block;
  width: clamp(180px, 28vw, 280px);
  height: auto;
  margin: -3.7rem auto 1.25rem;
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: #82c8ff;
  letter-spacing: 0.17em;
  font-size: 0.75rem;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0.7rem 0 1.5rem;
}
.hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem 0;
}
.button {
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s ease;
}
.button:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}
.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: #6d70ec;
  font-weight: 700;
}
.services {
  max-width: 1180px;
  margin: auto;
  padding: 1rem 1.5rem 7rem;
}
.section-heading {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}
.section-heading h2,
.principles h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0.3rem 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.feature-strip span {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101a2bdd;
  color: var(--muted);
}
.feature-strip b {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.card {
  min-height: 340px;
  padding: 2rem;
  background: linear-gradient(145deg, #1b263cdd, #111a2bdd);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 50px #02061735;
}
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #3b82f622;
  color: #82c8ff;
  font-size: 1.35rem;
}
.product {
  margin: 1.5rem 0 0.4rem;
  color: #82c8ff;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}
.card h3 {
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
}
.card > p:not(.product) {
  margin: 0;
  color: var(--muted);
}
.faq-section {
  padding-top: 0;
}
.faq-grid .card {
  min-height: 0;
}
.text-link {
  display: inline-flex;
  gap: 0.55rem;
  margin-top: 1.6rem;
  color: #a9d7ff;
  text-decoration: none;
  font-weight: 700;
}
.text-link:hover span {
  transform: translateX(3px);
}
.text-link span {
  transition: 0.18s ease;
}
.principles {
  max-width: 1050px;
  margin: 0 auto 7rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: linear-gradient(135deg, #172033, #131c31);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.principles p:not(.eyebrow) {
  color: var(--muted);
}
.principle-list {
  display: grid;
  gap: 0.7rem;
}
.principle-list span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  background: #0b122080;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
}
.principle-list b {
  color: var(--text);
  font-size: 1.05rem;
}
footer {
  max-width: 1180px;
  margin: auto;
  padding: 2rem 1.5rem 6rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  color: var(--muted);
}
footer span {
  flex: 0 0 100%;
  min-width: 0;
  margin-right: auto;
}
footer a {
  flex: 0 0 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}
footer .project-link {
  padding: 0.2rem 0.65rem;
  border: 1px solid #75bfff55;
  border-radius: 999px;
  background: #3b82f61c;
  color: #baddff;
  font-weight: 700;
}
footer .project-link:hover,
footer .project-link:focus-visible {
  border-color: #8ed1ff;
  background: #3b82f638;
  color: #fff;
}
@media (max-width: 850px) {
  .topbar {
    padding: 0 1rem;
  }
  .hero {
    padding: 6rem 1rem 5rem;
  }
  .service-grid,
  .feature-strip,
  .principles {
    grid-template-columns: 1fr;
  }
  .services {
    padding: 1rem 1rem 4rem;
  }
  .principles {
    margin: 0 1rem 4rem;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .card {
    min-height: 0;
  }
  footer {
    flex-wrap: wrap;
  }
  footer span {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .topbar > div a:not(.language):not([href$="/guides/"]) {
    display: none;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-actions {
    flex-direction: column;
  }
}

/* Keep the expanded product navigation usable from desktop to mobile. */
.topbar > div {
  min-width: 0;
}
.topbar > div a {
  white-space: nowrap;
}
.card {
  display: flex;
  flex-direction: column;
}
.card .text-link {
  margin-top: auto;
  padding-top: 1.6rem;
}
@media (max-width: 1000px) {
  .topbar > div {
    gap: 0.8rem;
  }
  .topbar a:not(.brand) {
    font-size: 0.92rem;
  }
  .topbar > div a[href="#services"] {
    display: none;
  }
}
@media (max-width: 720px) {
  .topbar > div a:not(.language):not([href$="/guides/"]) {
    display: none;
  }
  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }
}

.topbar a.account-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #75bfff55;
  border-radius: 999px;
  background: #3b82f61c;
  color: #d9ecff;
  padding: 0.42rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}
.topbar a.account-link:hover {
  border-color: #8ed1ff;
  background: #3b82f638;
}
@media (max-width: 720px) {
  .topbar > div a.account-link {
    display: inline-flex;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding: 0 1rem;
  }
  .topbar > div a[href$="/guides/"],
  .topbar > div a.language {
    display: none;
  }
  .topbar > div a.account-link:not(.language):not([href$="/guides/"]) {
    display: inline-flex;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
