:root {
  --bg-1: #071422;
  --bg-2: #0a1f36;
  --bg-3: #0d3b4f;
  --teal: #2dd4bf;
  --cyan: #06b6d4;
  --ink: #eaf6f6;
  --ink-dim: #a8c5d6;
  --ink-dimmer: #6f93a8;
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(45, 212, 191, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- animated background ---------- */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.blob-a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), transparent 70%);
  animation: drift-a 22s ease-in-out infinite;
}

.blob-b {
  width: 620px;
  height: 620px;
  top: 20%;
  right: -180px;
  background: radial-gradient(circle at 60% 40%, var(--teal), transparent 70%);
  animation: drift-b 26s ease-in-out infinite;
}

.blob-c {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: 30%;
  background: radial-gradient(circle at 50% 50%, #0ea5e9, transparent 70%);
  animation: drift-c 30s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 60px) scale(1.1); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.2); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(7, 20, 34, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(45, 212, 191, 0.15);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.5));
}

.brand-text {
  font-size: 16px;
  letter-spacing: 0.2px;
}

.brand-text strong {
  color: var(--teal);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
  position: relative;
}

.site-nav a:hover {
  color: var(--teal);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.06);
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--teal), var(--cyan) 60%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 0 36px;
}

.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  color: #062a2a;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.scroll-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(45, 212, 191, 0.5);
}

.scroll-cta .chevron {
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- apps section ---------- */

.apps {
  position: relative;
  z-index: 1;
  padding: 40px 0 140px;
}

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 0;
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.app-card:hover {
  border-color: rgba(45, 212, 191, 0.6);
  box-shadow: 0 24px 60px rgba(6, 20, 35, 0.55), 0 0 0 1px rgba(45, 212, 191, 0.15) inset;
}

.app-card.featured {
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(45, 212, 191, 0.4);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 212, 191, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.app-card:hover .card-glow {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.year-badge {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-dimmer);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.status-pill.status-active {
  color: #073b33;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-color: transparent;
}

.app-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 10px;
}

.app-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 26px;
  flex-grow: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.card-cta svg {
  transition: transform 0.3s var(--ease);
}

.app-card:hover .card-cta svg {
  transform: translate(3px, -3px);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  padding: 44px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.footer-logo {
  width: 30px;
  height: 30px;
  opacity: 0.85;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-dimmer);
}

.footer-note,
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dimmer);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 60px;
  }

  .apps {
    padding: 20px 0 90px;
  }
}

/* ---------- reduced motion ---------- */

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

  .blob {
    animation: none;
  }

  .scroll-cta .chevron {
    animation: none;
  }

  .reveal {
    transition-duration: 0.01s;
  }

  .app-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
}
