@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-elevated: #0f172a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgb(148 163 184 / 0.18);
  --glass: rgb(15 23 42 / 0.72);
  --mint: #5eead4;
  --mint-dim: #2dd4bf;
  --studio-glow: rgb(94 234 212 / 0.22);
  --studio-glow-2: rgb(129 140 248 / 0.18);
  --lexi-accent: #7c3aed;
  --lexi-glow: rgb(56 189 248 / 0.24);
  --city-accent: #ec4899;
  --city-glow: rgb(236 72 153 / 0.2);
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
  --shadow: 0 24px 60px rgb(2 6 23 / 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 12%, var(--studio-glow) 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, var(--studio-glow-2) 0%, transparent 38%),
    radial-gradient(circle at 50% 100%, rgb(49 46 129 / 0.35) 0%, transparent 50%);
}

.grid-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgb(148 163 184 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 72%);
}

.content {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  margin-bottom: 1rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--mint), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgb(2 6 23 / 0.35);
}

.nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--mint);
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgb(15 23 42 / 0.55);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--mint-dim), #818cf8);
  color: #020617;
  box-shadow: 0 12px 32px rgb(45 212 191 / 0.25);
}

.btn-secondary {
  background: rgb(15 23 42 / 0.65);
  border-color: var(--border);
  color: var(--text);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.apps-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .apps-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  background: linear-gradient(160deg, rgb(15 23 42 / 0.92), rgb(2 6 23 / 0.88));
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, border-color 200ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
}

.app-card.featured {
  border-color: rgb(124 58 237 / 0.45);
  box-shadow: var(--shadow), 0 0 0 1px rgb(124 58 237 / 0.12);
}

.app-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--lexi-glow) 0%, transparent 55%);
  pointer-events: none;
}

.app-card.secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--city-glow) 0%, transparent 55%);
  pointer-events: none;
}

.app-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.app-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-new {
  background: rgb(124 58 237 / 0.2);
  color: #c4b5fd;
  border: 1px solid rgb(124 58 237 / 0.35);
}

.badge-live {
  background: rgb(16 185 129 / 0.15);
  color: #6ee7b7;
  border: 1px solid rgb(16 185 129 / 0.35);
}

.badge-soon {
  background: rgb(56 189 248 / 0.12);
  color: #7dd3fc;
  border: 1px solid rgb(56 189 248 / 0.28);
}

.app-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgb(2 6 23 / 0.4);
}

.app-icon-fallback {
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: white;
}

.app-card.secondary .app-icon-fallback {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.app-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-card .tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.app-card .desc {
  font-size: 0.95rem;
  color: rgb(226 232 240 / 0.88);
  flex: 1;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-list li {
  padding-left: 1.1rem;
  position: relative;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--mint);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-lexi {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  color: white;
}

.btn-city {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
}

.studio-panel {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 1.75rem;
}

.studio-panel h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.studio-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pill-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .pill-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pill {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgb(2 6 23 / 0.45);
}

.pill strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.pill span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-header {
  padding: 1.5rem 0 2rem;
}

.page-header .back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.page-header .back:hover {
  color: var(--mint);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 42rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 1.35rem 1.5rem;
  margin-top: 1rem;
}

.panel h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.65rem;
}

.panel ul {
  margin-left: 1.15rem;
  color: rgb(226 232 240 / 0.9);
}

.panel li {
  margin: 0.35rem 0;
}

.panel p {
  color: rgb(226 232 240 / 0.88);
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
}

.site-footer a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .app-card:hover,
  .btn:hover {
    transform: none;
  }
}
