:root {
  --bg: #050816;
  --bg-soft: #0f1733;
  --text: #eef2ff;
  --muted: #b8c2ff;
  --primary: #4f8cff;
  --accent: #7b5cff;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #1b2a63 0%, var(--bg) 38%, #03040a 100%);
  scroll-behavior: smooth;
}

a {
  color: #d7e3ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(3, 8, 27, 0.72);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.2;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.22);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
}

.brand-text span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.nav a {
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.nav a.active,
.nav a:hover {
  background: rgba(79, 140, 255, 0.18);
  border: 1px solid rgba(115, 158, 255, 0.35);
}

.hero,
.section {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.hero-grid,
.split {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  background: linear-gradient(100deg, #ffffff 0%, #b9cfff 45%, #84c3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.lead,
.section-text,
p,
li {
  color: #dce4ff;
  line-height: 1.7;
}

.pill {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.9rem;
}

.btn-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  border: 0;
  box-shadow: 0 12px 34px rgba(79, 140, 255, 0.4);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
}

.glass-card,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  backdrop-filter: blur(7px);
}

.card-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  padding: 0;
  overflow: hidden;
}

.card img,
.rounded-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.card img {
  height: 210px;
}

.hero-showcase {
  display: grid;
  gap: 0.7rem;
}

.hero-showcase img {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.image-row img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.rounded-img {
  border-radius: 16px;
  min-height: 280px;
}

.card-content {
  padding: 1rem;
}

.inline-link {
  color: #a8c8ff;
  font-weight: 600;
}

.section-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(8, 11, 28, 0.65) 100%);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline div {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.policy-list {
  display: grid;
  gap: 1rem;
}

.sitemap-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.keyword-cloud span {
  border: 1px solid var(--border);
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.83rem;
  color: #d6e6ff;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: rgba(1, 2, 11, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.3rem 0 0.7rem;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0 1.3rem;
}

.lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lift:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 18px 35px rgba(30, 79, 186, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 197, 255, 0.45);
  background: linear-gradient(120deg, #427eff, #6d63ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(32, 83, 196, 0.42);
}

.floating-cta:hover {
  color: #fff;
  transform: translateY(-2px);
}

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

.stats-grid h3 {
  margin-bottom: 0.4rem;
}

.page-main {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163, 194, 255, 0.25), transparent);
  margin-top: -2rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .card-grid,
  .card-grid.two,
  .footer-grid,
  .stats-grid,
  .image-row {
    grid-template-columns: 1fr;
  }
}
