:root {
  --bg: #070a0c;
  --bg-elevated: #0e1418;
  --bg-subtle: #121a1f;
  --border: #1e2a31;
  --text: #eef7f5;
  --text-muted: #8fa3a0;
  --accent: #2ec4b6;
  --accent-hover: #3dd9ca;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(140deg, #1a6b62, var(--accent));
  font-size: 14px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--bg-subtle);
}

.button.ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 6px 10px;
}

.button.ghost:hover {
  color: var(--text);
}

.button.full {
  width: 100%;
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% -10%, rgba(46, 196, 182, 0.18), transparent 65%),
    transparent;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

/* Full-bleed photo hero */
.hero-photo {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.hero-photo__media {
  position: absolute;
  inset: 0;
}

.hero-photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.02);
}

.hero-photo__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 12, 0.35) 0%, rgba(7, 10, 12, 0.72) 45%, rgba(7, 10, 12, 0.96) 100%),
    radial-gradient(80% 60% at 70% 20%, rgba(46, 196, 182, 0.22), transparent 55%);
}

.hero-photo__content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 72px;
  max-width: var(--max-width);
}

.hero-brand {
  height: 42px;
  width: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero-photo h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-photo p {
  max-width: 42ch;
  margin: 0 0 28px;
  color: #c5d8d4;
  font-size: 17px;
}

.hero-photo .hero-actions {
  justify-content: flex-start;
}

.showcase {
  padding-top: 24px;
}

.showcase-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.shot--wide {
  grid-column: 1 / -1;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot figcaption {
  padding: 12px 16px 14px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.feature-grid .feature-card h3 {
  margin-top: 0;
}

.cta-band {
  padding: 40px 0 72px;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(46, 196, 182, 0.12), transparent 55%),
    var(--bg-elevated);
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-photo {
    min-height: 70vh;
  }
}

/* ---------- sections & cards ---------- */

section {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 32px;
  color: var(--text-muted);
}

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

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- pricing ---------- */

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 12px 40px -20px rgba(99, 102, 241, 0.8);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price {
  margin: 12px 0 4px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-term {
  color: var(--text-muted);
  font-size: 14px;
}

.plan-features {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features li::before {
  content: '✓';
  margin-right: 9px;
  color: var(--success);
  font-weight: 700;
}

.plan .button {
  margin-top: auto;
}

/* ---------- forms ---------- */

.auth-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

input[type='text'],
input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-footer {
  margin: 20px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.form-footer a {
  color: var(--accent);
}

.hint {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---------- alerts ---------- */

.alert {
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.alert.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.alert.success {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

/* ---------- account ---------- */

.page-head {
  padding: 44px 0 8px;
}

.page-head h1 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: var(--text-muted);
}

.status-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.status-metric .value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.status-metric .label {
  color: var(--text-muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.active {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.badge.expired,
.badge.none {
  background: rgba(148, 155, 173, 0.14);
  color: var(--text-muted);
}

.badge.canceled {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.progress {
  flex: 1 1 200px;
  min-width: 160px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
}

.redeem-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.redeem-form input {
  flex: 1 1 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- error page ---------- */

.error-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page .code {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.error-page pre {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 16px;
  overflow: auto;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 12px;
}
