:root {
  --bg: #020617;
  --panel: rgba(14, 18, 33, 0.8);
  --text: #eef2ff;
  --muted: #b8c2df;
  --card: rgba(10, 14, 30, 0.72);
  --stroke: rgba(120, 140, 196, 0.33);
  --accent: #67f0ff;
  --accent-2: #8d7dff;
  --shadow: 0 24px 80px rgba(5, 15, 40, 0.55);
  --radius: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 15% 10%, #1a1f47 0%, #060817 40%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

body {
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(103, 240, 255, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.top-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 6.5rem 0 5rem;
}

.hero .container {
  position: relative;
  padding: 2.3rem;
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(140deg, rgba(20, 28, 60, 0.72), rgba(5, 9, 26, 0.76));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero h1 {
  margin: 0.5rem 0 1.1rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.section {
  padding: 4.8rem 0 3rem;
}

.section-muted {
  padding: 4rem 0 5rem;
}

h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0.5rem 0 1rem;
}

h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
}

.section-copy {
  color: var(--muted);
  max-width: 76ch;
  margin: 0 0 1.7rem;
  line-height: 1.7;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  box-shadow: 0 14px 36px rgba(3, 8, 26, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(125, 239, 255, 0.45);
}

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

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

.app-placeholder {
  border: 1px dashed rgba(154, 197, 255, 0.4);
  background: linear-gradient(180deg, rgba(103, 240, 255, 0.12), rgba(15, 20, 45, 0.28));
  position: relative;
}

.app-placeholder .label {
  display: inline-flex;
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #08111b;
  background: linear-gradient(90deg, var(--accent), #c1f);
  margin-bottom: 0.8rem;
}

.app-placeholder h3 {
  margin-top: 0.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, #57f0ff, #9d89ff);
  color: #07101f;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
}

.section-muted {
  margin-top: 2rem;
  border-top: 1px solid rgba(120, 140, 196, 0.3);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-left {
  top: 80px;
  left: -180px;
  background: #2b8dff;
}

.bg-glow-right {
  right: -170px;
  bottom: 120px;
  background: #b15dff;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible {
  animation: revealIn 0.85s cubic-bezier(0.21, 1, 0.38, 1) forwards;
}

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

.policy-wrap article {
  border-top: 1px solid rgba(120, 140, 196, 0.22);
  padding: 1.3rem 0;
}

.policy-wrap h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.policy-wrap p,
.policy-wrap li {
  color: var(--muted);
  line-height: 1.75;
}

.policy-wrap ul {
  padding-left: 1.2rem;
  margin: 0;
}

.policy-wrap li + li {
  margin-top: 0.4rem;
}

@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .services-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero .container {
    padding: 1.8rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible,
  .btn,
  .card,
  .btn:hover,
  .btn:focus-visible,
  .card:hover,
  .card:focus-within {
    animation: none;
    transition: none;
    transform: none;
  }
}
