:root {
  --bg: #eef3ff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: #ffffff;
  --panel-muted: #f8fafc;
  --text: #0f172a;
  --text-soft: #475569;
  --text-faint: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --shadow: rgba(15, 23, 42, 0.10);
  --blue: #2563eb;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.12);
}

html.dark {
  --bg: #020817;
  --bg-elevated: rgba(15, 23, 42, 0.78);
  --panel: rgba(15, 23, 42, 0.8);
  --panel-strong: #0f172a;
  --panel-muted: #111827;
  --text: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-faint: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: rgba(2, 6, 23, 0.42);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.10);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.10);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.10);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 24%),
    var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  height: 3rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
}

html.dark .brand-mark {
  background: rgba(15, 23, 42, 0.8);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  height: 100%;
  line-height: 1;
}

.brand-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.1;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.15rem, 1.2vw + 0.9rem, 2rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.theme-toggle {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: 0 10px 25px var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

html.dark .theme-toggle {
  background: rgba(15, 23, 42, 0.82);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--shadow);
}

.theme-icon {
  position: absolute;
  inset: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-icon--moon {
  opacity: 0;
  transform: scale(0.8) rotate(-25deg);
}

html.dark .theme-icon--sun {
  opacity: 0;
  transform: scale(0.8) rotate(25deg);
}

html.dark .theme-icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hub {
  padding-top: clamp(2.5rem, 3vw, 4rem);
}

.hero {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
}

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

.app-card {
  position: relative;
  display: block;
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), transparent 40%, rgba(168, 85, 247, 0.10));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

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

.app-card > * {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.status--amber {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.status--emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.card-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--panel-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--text);
}

.card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.3rem;
  min-height: 4rem;
}

.card-main > div:last-child {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.product-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.product-mark--amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.product-mark--violet {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.meta {
  margin: 0;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.app-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 1.7vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.desc {
  margin: 1.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 0.98rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.card-footer span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease;
}

.app-card:hover .card-footer span:last-child {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1.1rem, 1180px);
  }

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

  .hero {
    margin-bottom: 1.5rem;
  }

  .card-main {
    align-items: flex-start;
  }
}
