:root {
  --bg: #0f1720;
  --panel: #161f2b;
  --panel-2: #1d2836;
  --text: #f4f7fb;
  --muted: #a8b3c2;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f48120;
  --accent-2: #ff9d4d;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(244, 129, 32, 0.15), transparent 35%),
    linear-gradient(180deg, #0b1118 0%, #101722 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  padding: 28px;
  background: rgba(22, 31, 43, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-brand {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.hero-logo {
  width: clamp(120px, 14vw, 170px);
  height: clamp(120px, 14vw, 170px);
  border-radius: 28px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.hero-copy {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
}

.search {
  width: min(560px, 100%);
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid rgba(244, 129, 32, 0.45);
  outline: none;
  background: #0f1720;
  color: var(--text);
  font-size: 1rem;
}

.search::placeholder {
  color: #8f9bae;
}

.section {
  margin-top: 22px;
}

.section-secondary {
  margin-top: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(29, 40, 54, 0.96), rgba(18, 25, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 129, 32, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
}

.card-tag {
  display: inline-flex;
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  color: #1d1409;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  min-height: 3.1em;
}

.card-url {
  margin-top: 14px;
  color: #d3dbe6;
  font-size: 0.9rem;
  word-break: break-word;
  opacity: 0.9;
}

.compact .card-desc {
  min-height: auto;
}

.empty-state {
  color: var(--muted);
  padding: 18px 0;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero {
    padding: 20px;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .hero-logo {
    width: 60px;
    height: 60px;
  }
}