:root {
  --bg: #060d1e;
  --bg-2: #050a18;
  --navy: #08204f;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.07);
  --card-border: rgba(120, 170, 255, 0.18);
  --card-border-hover: rgba(120, 175, 255, 0.55);
  --text: #f3f6fc;
  --muted: #c6d2e8;
  --accent: #2f80ff;
  --accent-text: #6aa6ff;
  --accent-2: #16b5e8;
  --accent-3: #18c9a6;
  --white: #ffffff;
  --glow: rgba(47, 128, 255, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Arial, sans-serif;
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated aurora glow field (fixed, behind everything) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 40% at 12% -8%, rgba(47, 128, 255, 0.30), transparent 60%),
    radial-gradient(ellipse 55% 38% at 88% 4%, rgba(22, 181, 232, 0.22), transparent 60%),
    radial-gradient(ellipse 65% 50% at 50% 110%, rgba(24, 201, 166, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  animation: aurora 18s ease-in-out infinite alternate;
}

/* Subtle technical grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, transparent 80%);
}

@keyframes aurora {
  0%   { filter: hue-rotate(0deg)  saturate(1);   transform: translate3d(0, 0, 0); }
  100% { filter: hue-rotate(-12deg) saturate(1.15); transform: translate3d(0, -1.5%, 0); }
}

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

::selection {
  background: rgba(47, 128, 255, 0.35);
  color: #fff;
}

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

/* ── Sticky header / Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 30, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(120, 170, 255, 0.12);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
  padding: 6px 14px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(8, 32, 79, 0.45);
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(120, 170, 255, 0.08);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
}

/* Floating glow orbs behind the hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.6;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: 2%;
  left: -6%;
  background: radial-gradient(circle, rgba(47, 128, 255, 0.55), transparent 70%);
  animation: float-a 12s ease-in-out infinite alternate;
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -4%;
  right: -4%;
  background: radial-gradient(circle, rgba(22, 181, 232, 0.45), transparent 70%);
  animation: float-b 14s ease-in-out infinite alternate;
}

@keyframes float-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 30px); }
}

@keyframes float-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-36px, -28px); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(79, 140, 255, 0.08);
  margin-bottom: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 201, 166, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(24, 201, 166, 0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.03;
  margin: 0 0 24px;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h1 .gradient-text {
  background: linear-gradient(110deg, #6aa6ff 0%, #16b5e8 45%, #18c9a6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer-text 6s linear infinite;
}

@keyframes shimmer-text {
  to { background-position: 200% center; }
}

.hero p {
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Staggered hero entrance */
.hero > * {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero > .badge     { animation-delay: 0.15s; }
.hero > h1         { animation-delay: 0.25s; }
.hero > p          { animation-delay: 0.35s; }
.hero > .buttons   { animation-delay: 0.45s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s;
  cursor: pointer;
  letter-spacing: 0.01em;
  overflow: hidden;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(47, 128, 255, 0.35);
}

.primary:hover {
  box-shadow: 0 12px 40px rgba(47, 128, 255, 0.5);
}

/* Shimmer sweep across primary buttons on hover */
.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}

.primary:hover::after {
  left: 130%;
}

.secondary {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.secondary:hover {
  border-color: var(--card-border-hover);
  background: rgba(120, 170, 255, 0.12);
  box-shadow: 0 8px 30px rgba(47, 128, 255, 0.18);
}

/* ── Sections ── */
.section {
  padding: 78px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 0 0 14px;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1.06rem;
}

/* ── Cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
}

/* Glow sheen that fades in on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at 50% 0%, rgba(47, 128, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  background: var(--card-strong);
  box-shadow: 0 18px 50px rgba(5, 12, 30, 0.6), 0 0 0 1px rgba(120, 170, 255, 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  font-size: 1.55rem;
  margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.22), rgba(22, 181, 232, 0.14));
  border: 1px solid rgba(120, 170, 255, 0.25);
  box-shadow: inset 0 0 18px rgba(47, 128, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .card-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: inset 0 0 18px rgba(47, 128, 255, 0.2), 0 6px 20px rgba(47, 128, 255, 0.28);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ── App showcase card ── */
.app-showcase {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(47, 128, 255, 0.14), transparent 55%),
    var(--card-strong);
  border-radius: 26px;
  padding: 38px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.app-showcase:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 22px 60px rgba(5, 12, 30, 0.6);
}

/* Big glowing app icon plate on the left */
.app-icon-plate {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(47, 128, 255, 0.18), rgba(22, 181, 232, 0.10));
  border: 1px solid rgba(120, 170, 255, 0.3);
  box-shadow: 0 18px 50px rgba(8, 32, 79, 0.55);
  flex-shrink: 0;
}

.app-icon-plate img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(8, 32, 79, 0.6);
}

.app-icon-plate::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, rgba(47, 128, 255, 0.5), transparent 40%);
  z-index: -1;
  animation: spin 7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.app-body {
  min-width: 0;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.app-title h2 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

/* Inline icon variant (kept for compatibility / smaller layouts) */
.app-name-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(8, 32, 79, 0.55);
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(24, 201, 166, 0.12);
  border: 1px solid rgba(24, 201, 166, 0.3);
  border-radius: 999px;
  padding: 5px 13px;
}

.app-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}

.app-desc {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 22px;
}

/* Feature chips inside the app showcase */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(120, 170, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.chip:hover {
  border-color: var(--card-border-hover);
  background: rgba(120, 170, 255, 0.16);
  transform: translateY(-2px);
}

/* ── Divider ── */
.divider {
  border: none;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(120, 170, 255, 0.35), transparent);
}

/* ── Page header ── */
.page-header {
  position: relative;
  padding: 92px 0 40px;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -40px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 255, 0.28), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.page-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 14px;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.page-header p {
  color: var(--muted);
  max-width: 680px;
  font-size: 1.08rem;
}

/* ── Content cards ── */
.content-card {
  position: relative;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
  border-color: rgba(120, 175, 255, 0.4);
  box-shadow: 0 16px 44px rgba(5, 12, 30, 0.5);
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 1rem;
}

.content-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.content-card a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-card a:hover {
  color: #9cc4ff;
}

.notice {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
}

/* ── Footer ── */
.footer {
  position: relative;
  border-top: 1px solid var(--card-border);
  margin-top: 70px;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 128, 255, 0.7), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

/* ── Scroll-reveal (progressive enhancement, CSS-only) ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section .card,
    .grid-2 .card,
    .content-card,
    .app-showcase,
    .section > .section-label,
    .section > h2,
    .section > .section-intro {
      animation: reveal-up both linear;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    gap: 4px;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 7px 11px;
  }

  .hero {
    padding: 72px 0 60px;
    text-align: left;
  }

  .buttons {
    justify-content: flex-start;
  }

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

  .logo img {
    height: 44px;
  }

  .app-showcase {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px;
    text-align: left;
  }

  .app-icon-plate {
    width: 104px;
    height: 104px;
    border-radius: 26px;
  }

  .app-icon-plate img {
    width: 76px;
    height: 76px;
  }

  .app-title h2 {
    font-size: 1.7rem;
  }

  .app-name-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
