/* The style of the static network pages, once.
 *
 * These pages are plain HTML: no Angular, no framework, no third-party request
 * - they exist to be read by crawlers that do not run a framework, and by
 * people on a slow connection. What they are NOT allowed to be is a second
 * design: the header, the buttons and the footer below are the Angular site's
 * own, transcribed. The tokens come from tailwind.config.js and styles.scss,
 * so a page here and a page there look like the same product.
 *
 * Rewritten 2026-09-17: the first version invented its own violet (#8b5cf6
 * instead of the site's #7c3aed), set its headings in Outfit where the site
 * sets everything in Inter, gave the header a wordmark with no logo, and left
 * the two calls to action as underlined links in a paragraph.
 *
 * networks/robinhood-chain/index.html keeps its own inline copy: it is the
 * Locker product's page, not the wallet's, and it is live and proven.
 */

:root {
  --violet: #7c3aed;          /* tailwind locker-violet */
  --violet-hover: #6d28d9;
  --violet-soft: rgba(124, 58, 237, 0.06);
  --violet-line: rgba(124, 58, 237, 0.15);
  --text: #111827;            /* gray-900 */
  --text-soft: #4b5563;       /* gray-600 */
  --muted: #6b7280;           /* gray-500 */
  --faint: #9ca3af;           /* gray-400 */
  --line: #f3f4f6;            /* gray-100 */
  --line-2: #e5e7eb;          /* gray-200 */
  --surface: #f9fafb;         /* gray-50 */
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --header-h: 73px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #fff;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark { transform: scale(1.05); }

.logo-word {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text);
  white-space: nowrap;
}

.logo-word span { color: var(--violet); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 900;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.nav a:hover { color: var(--violet); }
.nav a[aria-current='page'] { color: var(--violet); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: inherit;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 0.625rem 1rem; font-size: 0.875rem; border-radius: 12px; }
.btn-md { padding: 1rem 1.75rem; font-size: 1rem; border-radius: 16px; }

.btn-primary { background-color: var(--violet); color: #fff; }
.btn-primary:hover { background-color: var(--violet-hover); box-shadow: var(--shadow); }

.btn-secondary {
  background-color: #fff;
  color: var(--text);
  border: 2px solid var(--line-2);
}

.btn-secondary:hover { border-color: var(--violet); color: var(--violet); }

.btn img, .btn svg { flex-shrink: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  max-width: 100%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

h1 {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 auto 1.5rem;
  max-width: 18ch;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ── Feature cards ──────────────────────────────────────────────────────── */

.features { padding: 3rem 0 5rem; }

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

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-line);
  box-shadow: 0 14px 34px -12px rgba(124, 58, 237, 0.18);
}

.card h2, .card h3 {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card p { color: var(--muted); font-size: 0.9375rem; }

/* The Locker page (robinhood-chain) opens its cards with an icon tile, and
   colours the second line of its title. */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--violet-soft);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

h1 span { color: var(--violet); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { padding: 5rem 0; border-top: 1px solid var(--line); }

.faq-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 3rem;
}

.faq-wrapper {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  background-color: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.faq-answer { color: var(--muted); font-size: 0.9375rem; }

/* ── Footer (the Angular site's, transcribed) ───────────────────────────── */

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 4rem 0;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.footer-brand img { opacity: 0.3; }

.footer-brand span {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a.muted { color: var(--faint); font-weight: 700; }
.footer-links a:hover { color: var(--violet); }

.footer-copy { color: var(--faint); font-size: 0.75rem; font-weight: 500; }

.footer-heart { display: inline-flex; align-items: center; gap: 0.25rem; }
.footer-heart svg { color: #ef4444; }

/* ── Vault install modal (components/qr-modal, transcribed) ─────────────── */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--faint);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
}

.modal-close:hover { background: #fef2f2; color: #ef4444; }

.modal-body { flex: 1; overflow-y: auto; padding: 2rem; text-align: center; }

.modal-body h2 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  margin-bottom: 2rem;
}

.modal-step { display: flex; gap: 1rem; align-items: flex-start; }

.modal-step b {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--violet-soft);
  color: var(--violet);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.modal-step p { color: var(--muted); font-weight: 700; line-height: 1.35; }

.modal-qr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.modal-qr img { width: 100%; max-width: 240px; border-radius: 16px; box-shadow: var(--shadow); }

.modal-warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.modal-warning svg { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.modal-warning p { color: #b45309; font-size: 0.75rem; font-weight: 700; line-height: 1.6; }

.modal-done {
  width: 100%;
  padding: 1rem;
  background: var(--text);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-done:hover { background: #000; }

body.modal-open { overflow: hidden; }

/* ── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .logo-word { font-size: 1rem; }
  /* The site hides its header install button below sm (app.component.html:
     `hidden sm:block`) and keeps it in the mobile sheet. These pages have no
     sheet, and they do not need one: the hero's own button is full width and
     one scroll away. */
  .header-content .btn { display: none; }
  h1 { font-size: 2.125rem; max-width: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-desc { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .faq-title { font-size: 1.75rem; }
  .modal-body { padding: 1.5rem; }
  .modal-body h2 { font-size: 1.375rem; }
}
