/* --------- Base / Tokens --------- */
:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --ring: rgba(59,130,246,0.35);
  --br: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --border: 1px solid #e5e7eb;

  /* brand */
  --google: #4285f4;
  --github: #24292f;
  --linkedin: #0077b5;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #141821;
    --text: #e5e7eb;
    --muted: #9aa3b2;
    --shadow: 0 10px 25px rgba(0,0,0,0.45);
    --border: 1px solid #232936;
  }
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(59,130,246,0.07), transparent 50%),
              radial-gradient(1000px 700px at 120% 10%, rgba(16,185,129,0.08), transparent 50%),
              var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
  /* room for fixed footer */
  padding-bottom: 80px;
}

/* --------- Card / Tiered Layout --------- */
.container {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--br);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stack { padding: 24px; }
.stack + .stack { border-top: var(--border); }

/* Header tier */
.header {
  padding: 28px 24px 20px 24px;
  background:
    radial-gradient(600px 140px at 20% 0%, rgba(99,102,241,0.08), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.02), transparent 50%);
}
.title {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Divider tier */
.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 4px 0 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(107,114,128,0.4));
}
.divider::after {
  background: linear-gradient(to left, transparent, rgba(107,114,128,0.4));
}

/* Button tier */
.actions { display: grid; gap: 12px; }

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #111827;
  cursor: pointer;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
}
button:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 4px var(--ring), 0 6px 16px rgba(0,0,0,0.12);
}
button:hover { filter: brightness(1.02); transform: translateY(-1px); }
button:active { transform: translateY(0); }

.btn-google { background: var(--google); }
.btn-github { background: var(--github); }
.btn-linkedin { background: var(--linkedin); }

/* Optional icon circle */
.btn-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-block;
}

/* Small print / info tier */
.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Hello page centering */
.hello-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 80px);
  text-align: center;
}
.hello-wrap h1 {
  font-size: 40px;
  margin: 0 0 8px 0;
}
.hello-wrap p {
  margin: 0; color: var(--muted);
}

/* Back button */
.btn-back {
  margin-top: 24px;
  padding: 12px 20px;
  border: var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: #d1d5db;
}
.btn-back:active {
  transform: translateY(0);
}
.btn-back:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 4px var(--ring), var(--shadow);
}
.btn-back::before {
  content: "←";
  font-size: 18px;
  font-weight: 700;
}

/* --------- Footer (net1io) --------- */
#siteFooter {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  border-top: var(--border);
  font-size: 12px;
  color: var(--muted);
  z-index: 50;
}
@media (prefers-color-scheme: dark) {
  #siteFooter { background: rgba(20,24,33,0.75); }
}
#siteFooter a { color: inherit; text-underline-offset: 2px; }
#siteFooter span { white-space: nowrap; }