:root {
  --bg: #0e1220;
  --bg-soft: #151b2f;
  --card: rgba(255, 255, 255, 0.06);
  --text: #eef2ff;
  --muted: #b9c1dd;
  --primary: #7c8cff;
  --accent: #3dd9c2;
  --ring: rgba(124, 140, 255, 0.35);
  --max-width: 1080px;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #0e1220;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 20% 0%, #1c2440 0%, var(--bg) 35%, #0a0d18 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 20% 0%, #1c2440 0%, var(--bg) 35%, #0a0d18 100%);
}

/* Visual detail: animated glow gives personality without heavy complexity. */
.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

.page::before {
  background: #7c8cff;
  top: -140px;
  left: -140px;
}

.page::after {
  background: #3dd9c2;
  right: -180px;
  top: 220px;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(10, 13, 24, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

/* Mobile safe-mode: avoids washed-out rendering on iOS Safari/GPU composition. */
@media (hover: none) and (pointer: coarse) {
  body,
  .page {
    background-color: #0e1220;
    background-image: none;
  }

  .site-header {
    background: rgba(10, 13, 24, 0.95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page::before,
  .page::after {
    display: none;
  }

  .card,
  .text-page article,
  input,
  textarea {
    background: rgba(21, 27, 47, 0.92);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(124, 140, 255, 0.2);
}

.hero {
  padding: 5.5rem 0 3.7rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(61, 217, 194, 0.15);
  color: #9df3e6;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.lead {
  color: var(--muted);
  max-width: 58ch;
}

.hero-card {
  background: linear-gradient(170deg, rgba(124, 140, 255, 0.28), rgba(61, 217, 194, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section {
  padding: 1.3rem 0 3.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card, rgba(17, 24, 43, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 2.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #08101d;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
}

.cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.68rem 1.1rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--primary), #95a2ff);
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 140, 255, 0.35);
}

.cta:hover {
  transform: translateY(-1px);
}

.text-page {
  padding: 3rem 0 4rem;
}

.text-page article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.text-page article > h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
}

.text-page article > h2:first-child {
  margin-top: 0;
}

.text-page article > p:last-child {
  margin-bottom: 0;
}

.text-page article > p {
  margin: 0 0 0.85rem;
}

.text-page article > ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.text-page article li {
  margin: 0.35rem 0;
}

.text-page article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-page article a:hover {
  color: #b8fff2;
}

.text-page article hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 1.75rem 0 1.25rem;
}

.text-page .legal-note {
  margin: 0;
  font-size: 0.88rem;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4.2rem;
  }

  .cards-3,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }
}
