/* Breakwater Key — self-contained Deep Ocean theme (Transoceanic) */

:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0d2844;
  --surface: rgba(13, 40, 68, 0.55);
  --surface-border: rgba(120, 200, 220, 0.18);
  --cyan-accent: #2ec4ce;
  --cyan-deep: rgb(18, 138, 161);
  --cyan-muted: rgba(46, 196, 206, 0.35);
  --navy-stop: rgb(10, 41, 79);
  --sea-green: #5fb8a8;
  --sea-green-soft: rgba(95, 184, 168, 0.25);
  --text-primary: #f2f7fb;
  --text-muted: #9db4c9;
  --radius-lg: 1.125rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 48px rgba(2, 12, 24, 0.45);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--ocean-deep);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ocean-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(18, 138, 161, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 40%, rgba(10, 70, 90, 0.4), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(5, 36, 87, 0.55), transparent 45%),
    linear-gradient(165deg, rgb(18, 138, 161) 0%, rgb(10, 41, 79) 42%, #050f1c 100%);
}

.wrap {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding: clamp(2rem, 8vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.brand-mark {
  width: clamp(4rem, 12vw, 5rem);
  height: clamp(4rem, 12vw, 5rem);
  flex-shrink: 0;
  border-radius: 1.125rem;
  box-shadow: 0 12px 40px rgba(2, 12, 24, 0.55), 0 0 0 1px var(--surface-border);
}

.brand-copy {
  flex: 1;
  min-width: min(100%, 14rem);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-green);
}

.site-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--cyan-accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.hidden { display: none !important; }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.card p:first-of-type {
  margin-top: 0;
}

.request-details {
  margin: 1.25rem 0;
}

.request-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--surface-border);
}

.request-details dt {
  color: var(--text-muted);
  margin: 0;
}

.request-details dd {
  margin: 0;
  text-align: right;
  color: var(--text-primary);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  font: inherit;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan-accent), var(--cyan-deep));
  color: var(--ocean-deep);
  font-weight: 600;
}

.btn.secondary {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text-primary);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.small { font-size: 0.85rem; }

.muted { color: var(--text-muted); }

.notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--sea-green-soft);
  border: 1px solid var(--surface-border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.error { color: #ff8f8f; }

.success { color: var(--sea-green); }

.qr-box {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  min-height: 200px;
  align-items: center;
}

.qr-box img {
  border-radius: var(--radius-md);
  background: white;
  padding: 0.75rem;
}
