@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0d1b2e;
  --navy-mid:   #112240;
  --navy-card:  #162a46;
  --navy-hover: #1c3357;
  --accent:     #4a90d9;
  --accent-glow:#4a90d940;
  --text:       #e8edf3;
  --text-muted: #8ba3bf;
  --border:     #1e3451;
  --radius:     14px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ─── Background subtle pattern ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, #1a3a6020 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, #0a2a5020 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─── */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
header {
  padding: 48px 0 40px;
  text-align: center;
}

.logo-wrap {
  display: inline-block;
  margin-bottom: 32px;
}

.logo-wrap img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 4px 20px #4a90d930);
}

header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 0 48px;
}

/* ─── Grid ─── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 64px;
}

/* ─── Card ─── */
.card {
  display: flex;
  flex-direction: column;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6eb5ff);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px #00000040, 0 0 0 1px var(--accent)30;
  border-color: var(--accent)60;
  background: var(--navy-hover);
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ─── Tags ─── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 99px;
  background: #4a90d918;
  color: var(--accent);
  border: 1px solid #4a90d930;
  text-transform: uppercase;
}

/* ─── Card link arrow ─── */
.card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--transition);
}

.card:hover .card-link {
  gap: 10px;
}

.card-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* ─── Badge (coming soon) ─── */
.card.coming-soon {
  opacity: 0.65;
  pointer-events: none;
  cursor: default;
}

.card.coming-soon::after {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  background: #8ba3bf18;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: auto;
}

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

footer a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  header {
    padding: 36px 0 28px;
  }
  .logo-wrap img {
    height: 44px;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
