:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #09111f;
  --bg-accent: #10213d;
  --card: rgba(13, 24, 44, 0.9);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --primary: #7dd3fc;
  --primary-strong: #38bdf8;
  --shadow: 0 24px 60px rgba(8, 15, 28, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #050b16 100%);
  color: var(--text);
}

body,
button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(720px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.hero-card,
.links-card {
  backdrop-filter: blur(20px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px 28px;
}

.eyebrow,
.section-kicker,
.meta-pill {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  margin: 0 0 8px;
}

.hero-card h1,
.section-heading h2 {
  margin: 0;
}

.hero-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.hero-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(15, 23, 42, 0.75);
}

.links-card {
  margin-top: 16px;
  padding: 20px 22px 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.status-text {
  margin: 0;
  color: var(--subtle);
  text-align: right;
}

.links-grid {
  display: grid;
  gap: 12px;
}

.link-card {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(16, 33, 61, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 18px 40px rgba(8, 15, 28, 0.35);
}

.link-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.link-card h3 {
  margin: 0;
  font-size: 1rem;
}

.link-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  max-height: calc(1.4em * 2);
  overflow: hidden;
}

@supports (-webkit-line-clamp: 2) {
  .link-card p {
    display: -webkit-box;
    max-height: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.link-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.link-url {
  color: var(--primary);
  font-size: 0.88rem;
  word-break: break-word;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--primary);
}

.empty-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  color: var(--muted);
  text-align: center;
}

@media (min-width: 680px) {
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 720px);
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .hero-card,
  .links-card {
    padding: 22px;
    border-radius: 20px;
  }

  .section-heading {
    flex-direction: column;
  }

  .status-text {
    text-align: left;
  }
}
