/* ── Fonts ─────────────────────────────────────────── */
@font-face {
  font-family: 'CircularStd';
  src: url('../fonts/CircularStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularStd';
  src: url('../fonts/CircularStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularStd';
  src: url('../fonts/CircularStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularStd';
  src: url('../fonts/CircularStd-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ────────────────────────────── */
:root {
  --color-headline: #E5E7F3;
  --color-gray-600: #494949;
  --color-footer-tag: #E6E6E6;
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'CircularStd', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
  background: #000;
  color: #fff;
}

/* ── Layout ───────────────────────────────────────── */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 64px;
}

/* ── Header ───────────────────────────────────────── */
.header {
  position: absolute;
  top: 4px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.header img {
  height: 90px;
  width: auto;
}

/* ── Hero (rotating headline + subcopy) ───────────── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
  text-align: center;
  gap: 20px;
  padding: 0 16px;
}
.headline {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-headline);
}
.subcopy {
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.05em;
}

/* ── Content Block (buttons + instructions) ───────── */
.content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Buttons ──────────────────────────────────────── */
.buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: var(--color-gray-600);
  color: #a3a3a3;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 8px;
  border: 1px solid #4b5563;
  cursor: pointer;
  transition: all 300ms;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.95);
}
.btn .icon {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn .icon svg {
  width: 100%;
  height: 100%;
}
.btn:hover .icon.copy-icon svg {
  color: #fff;
}
.btn-copy {
  min-width: 200px;
}
.icon.copy-icon svg   { color: #9ca3af; transition: color 300ms; }
.icon.check-icon svg  { color: #4ade80; }
.icon.eye-icon svg    { color: #9ca3af; }

/* ── Instructions ─────────────────────────────────── */
.instructions {
  color: #d4d4d4;
  font-size: 16.5px;
  font-weight: 700;
  text-align: center;
  padding: 0 48px;
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.footer-label {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
}
.footer img {
  height: 40px;
  width: auto;
}

/* ── Modal Backdrop (shared) ──────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}

/* ── Confirmation Modal ───────────────────────────── */
.modal-confirmation {
  background: rgba(0, 0, 0, 0.5);
  padding: 0 16px;
}
.modal-confirmation .modal-card {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 24px;
  max-width: 384px;
  width: 100%;
  text-align: center;
}
.modal-confirmation .modal-icon {
  width: 48px;
  height: 48px;
  color: #4ade80;
  margin: 0 auto 16px;
}
.modal-confirmation .modal-icon svg {
  width: 100%;
  height: 100%;
}
.modal-confirmation h3 {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.modal-confirmation p {
  color: #9ca3af;
  font-size: 14px;
}

/* ── Informative Modal (View Prompt) ──────────────── */
.modal-informative {
  background: rgba(73, 73, 73, 0.95);
}
.modal-informative .modal-card {
  position: relative;
  background: var(--color-headline);
  border-radius: 8px;
  max-width: 576px;
  width: 83.33%;
  max-height: 80vh;
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  overflow-y: auto;
  border: 1px solid #e5e7eb;
}
.modal-informative .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 200ms;
  padding: 4px;
}
.modal-informative .close-btn:hover {
  color: #374151;
}
.modal-informative .close-btn svg {
  width: 24px;
  height: 24px;
}
.modal-informative .prompt-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: #1f2937;
  padding-top: 20px;
  font-size: 14px;
  text-align: center;
  font-family: inherit;
  line-height: 1.6;
}

/* ── Responsive: 768px+ ──────────────────────────── */
@media (min-width: 768px) {
  .headline {
    font-size: 50px;
  }
  .subcopy {
    font-size: 16px;
  }

  .buttons { gap: 16px; }

  .btn {
    font-size: 18px;
    padding: 16px 16px;
    gap: 8px;
  }
  .btn .icon { display: block; }

  .instructions { padding: 0; }

  .footer { bottom: 32px; }
  .footer-label { font-size: 14px; }
  .footer img { height: 50px; }

  .modal-informative .modal-card { width: 100%; }
}

/* ── Responsive: 1024px+ ─────────────────────────── */
@media (min-width: 1024px) {
  .headline {
    font-size: 60px;
  }
}

/* ── Responsive: 1280px+ ─────────────────────────── */
@media (min-width: 1280px) {
  .headline {
    font-size: 80px;
  }
  .subcopy {
    font-size: 18px;
  }
}

/* ── Responsive: 1624px+ ─────────────────────────── */
@media (min-width: 1624px) {
  .headline {
    font-size: 105px;
  }
}
