
/* =========================
   RESET
========================= */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0f172a;

  min-height: 100vh;

  display: flex;
  flex-direction: column;

  overflow-x: hidden;

  background:
    radial-gradient(circle at top left, #e0f2fe 0%, transparent 40%),
    radial-gradient(circle at bottom right, #ede9fe 0%, transparent 45%),
    #f8fafc;
}

/* =========================
   BACKGROUND WATERMARK
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("/images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 650px;

  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* keep content above watermark */
header, main, footer {
  position: relative;
  z-index: 2;
}

/* =========================
   LAYOUT
========================= */

main {
  flex: 1;
}

.container {
  width: 100%;
  padding: 56px 24px;

  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* center content system */
.hero,
.grid,
.page-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HEADER
========================= */

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

  padding: 18px 28px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* =========================
   BRAND
========================= */

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* =========================
   NAV (DASHBOARD STYLE)
========================= */

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  color: #64748b;

  padding: 6px 10px;
  border-radius: 10px;

  transition: all 0.2s ease;
}

.nav a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

/* =========================
   PAGE TITLE
========================= */

.page-header h1 {
  font-size: 28px;
  margin: 0;
}

.section-title {
  max-width: 1200px;
  margin: 0 auto 18px auto;

  text-align: center;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;

  color: #1e293b;
}

/* =========================
   GRID
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* =========================
   CARD BASE (PREMIUM DASHBOARD STYLE)
========================= */

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;

  min-height: 170px;

  padding: 22px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);

  color: #0f172a;
  text-decoration: none;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.04),
    0 25px 50px rgba(0,0,0,0.08);

  transition: all 0.25s ease;

  position: relative;
  overflow: hidden;

  cursor: pointer;
}

/* hover lift */
.card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.12),
    0 40px 80px rgba(0,0,0,0.15);
}

/* click feel */
.card:active {
  transform: translateY(-2px);
}

/* arrow indicator */
.card::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 16px;

  font-size: 16px;
  color: rgba(100,116,139,0.5);

  transition: 0.2s;
}

.card:hover::after {
  transform: translateX(4px);
  color: rgba(37,99,235,0.7);
}

/* =========================
   TEXT
========================= */

.card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* =========================
   TAG PILL
========================= */

.topic-pill {
  display: inline-block;

  padding: 4px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;

  background: rgba(0,0,0,0.05);
}

/* =========================
   CATEGORY COLORS
========================= */

/* CLOUD */
.card.cloud { border-left: 5px solid #3b82f6; }

/* AI */
.card.ai { border-left: 5px solid #8b5cf6; }

/* DEVOPS */
.card.devops { border-left: 5px solid #f97316; }

/* FINOPS */
.card.finops { border-left: 5px solid #10b981; }

/* SECOPS */
.card.secops { border-left: 5px solid #ef4444; }

/* AI GUARDRAILS */
.card.guardrails { border-left: 5px solid #f59e0b; }

/* CLOUD PROVIDERS */
.card.aws { border-left: 5px solid #ff9900; }
.card.azure { border-left: 5px solid #0078d4; }
.card.gcp { border-left: 5px solid #34a853; }

/* AI PROVIDERS */
.card.openai { border-left: 5px solid #10a37f; }
.card.anthropic { border-left: 5px solid #8b5cf6; }
.card.huggingface { border-left: 5px solid #f59e0b; }

.card.kubernetes { border-left: 5px solid #326ce5; }

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 50px 24px;

  color: #64748b;

  border-top: 1px solid rgba(15, 23, 42, 0.08);

  background: rgba(255, 255, 255, 0.5);
}

.footer-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.footer-text {
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    padding: 30px 16px;
  }
}
