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

:root {
  --bg:       #f4f6f2;
  --surface:  #ffffff;
  --border:   #e2e6de;
  --border-h: #c8d0c2;
  --accent:   #041f00;
  --accent-h: #0a3800;
  --text:     #0d0d0d;
  --muted:    #5a6356;
  --font:     'DM Sans', sans-serif;
  --mono:     'DM Mono', monospace;
  --radius:   16px;
  --nav-h:    80px;
  --shadow:   0 1px 3px rgba(4,31,0,0.06), 0 4px 16px rgba(4,31,0,0.03);
  --shadow-h: 0 6px 20px rgba(4,31,0,0.09), 0 12px 32px rgba(4,31,0,0.05);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 48px;
  width: auto;
}

/* HERO */
.hero {
  padding: 2.2rem 2.5rem 1.2rem;
  margin: 0;
  width: 100%;
}

.hero h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
  text-align: left;
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 300;
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 600px;
  line-height: 1.5;
}

/* DIVIDER */
.divider {
  margin: 0;
  padding: 0 2.5rem;
  width: 100%;
}

.divider-line {
  height: 1px;
  background: var(--border);
}

/* SECTION */
.section {
  margin: 1.8rem 0 0;
  padding: 0 2.5rem 5rem;
  width: 100%;
  flex: 1;
}

/* GRID */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}

/* CARD */
.app-card {
  width: 340px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.16s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.app-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-stripe, var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}

/* Active Card Hover */
.active-card {
  cursor: pointer;
}

.active-card:hover {
  box-shadow: var(--shadow-h);
  transform: translateY(-4px);
  border-color: var(--border-h);
}

.active-card:hover::after {
  opacity: 1;
}

/* Coming Soon Card */
.coming-soon-card {
  cursor: default;
  background: #fbfdfa;
}

.coming-soon-card:hover {
  border-color: #d6ded2;
  box-shadow: 0 3px 10px rgba(4,31,0,0.04);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #f4f6f2;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.card-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-logo-wrap.icon-wrap {
  color: var(--accent);
  background: #edf2eb;
  border-color: #d8e2d4;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.status-active {
  background: #e8f5e5;
  color: #1b6314;
  border: 1px solid #c4e5bf;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a016;
}

.status-soon {
  background: #eee8d8;
  color: #725712;
  border: 1px solid #e2d7ba;
}

/* Card Body */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

/* Card Footer & Action */
.card-action {
  margin-top: 1.5rem;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  width: fit-content;
  transition: background 0.18s;
}

.active-card:hover .card-btn {
  background: var(--accent-h);
}

.card-btn svg {
  transition: transform 0.18s;
  flex-shrink: 0;
}

.active-card:hover .card-btn svg {
  transform: translate(2px, -2px);
}

/* Coming Soon Button */
.card-btn.btn-soon {
  background: #eaeee7;
  color: var(--muted);
  cursor: default;
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Stripes */
.stripe-blue {
  --card-stripe: #3b82f6;
}

.stripe-teal {
  --card-stripe: #0d9488;
}

.stripe-amber {
  --card-stripe: #d97706;
}