:root {
  --primary: #2563eb;
  --accent: #38bdf8;
  --bg: #f1f5f9;
  --card: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #e8efff, #f8fafc);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  padding: 24px 32px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

header p {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.95;
}

main {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.hero p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 700px;
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.connect {
  margin: 40px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #e0f2fe);
  color: #1e40af;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

footer {
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  z-index: 50;
}

.modal-box {
  background: white;
  border-radius: 18px;
  width: 340px;
  padding: 24px;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  text-align: center;
}

.modal-box strong {
  font-size: 17px;
}

.modal-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}

.modal-box input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  font-size: 14px;
}

.modal-box button {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Workspace */
#workspace {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: none;
  z-index: 100;
}

#workspace embed {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}
