@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600&display=swap');

:root {
  --black:   #111111;
  --off:     #161616;
  --surface: #1e1e1e;
  --border:  #2a2a2a;
  --muted:   #555555;
  --dim:     #888888;
  --light:   #cccccc;
  --white:   #f5f2ea;
  --yellow:  #FFD700;
  --green:   #4ade80;
  --blue:    #60a5fa;
  --red:     #f87171;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); min-height: 100vh; }

.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: .92; }
.label   { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mono    { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--yellow); color: var(--black); }
.btn-primary:hover { opacity: .88; }
.btn-outline  { background: transparent; color: var(--white); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--dim); }
.btn-ghost   { background: transparent; color: var(--dim); border: 1px solid var(--surface); }
.btn-ghost:hover { color: var(--white); border-color: var(--border); }
.btn-success { background: transparent; color: var(--green); border: 1px solid var(--green); }

.card { background: var(--off); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.card-sm { padding: 14px 16px; border-radius: var(--radius-md); }

/* ── Stub mark logo ─────────────────────────────────────────────────────────── */
.stub-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.stub-icon {
  display: flex; align-items: stretch;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 5px; overflow: hidden; position: relative;
  height: 40px;
}
.stub-icon-left {
  padding: 5px 8px; display: flex; flex-direction: column;
  justify-content: center;
}
.stub-icon-left span {
  font-family: var(--font-display); font-weight: 900;
  font-size: 9px; color: var(--white); text-transform: uppercase;
  line-height: 1.1; letter-spacing: .04em;
}
.stub-icon-left small {
  font-family: var(--font-display); font-weight: 600;
  font-size: 7px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; margin-top: 2px;
}
.stub-icon-perf {
  width: 6px; display: flex; flex-direction: column;
  justify-content: space-around; align-items: center;
  padding: 4px 0; background: var(--surface);
}
.stub-icon-perf span {
  width: 3px; height: 3px; background: var(--black);
  border-radius: 50%; display: block;
}
.stub-icon-right {
  padding: 4px 8px; display: flex; align-items: center;
  background: var(--surface);
}
.stub-icon-right span {
  font-family: var(--font-display); font-weight: 900;
  font-size: 20px; color: var(--yellow); line-height: 1;
}
.stub-wordmark {
  font-family: var(--font-display); font-weight: 900;
  font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white);
}

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid var(--border);
  background: var(--black); position: sticky; top: 0; z-index: 100;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; cursor: pointer;
}
.nav-link:hover { color: var(--yellow); }
.nav-link.active { color: var(--white); }

/* ── Ticker ─────────────────────────────────────────────────────────────────── */
.ticker { background: var(--yellow); padding: 9px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; gap: 36px; animation: ticker 22s linear infinite; }
.ticker-item {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--black);
  display: flex; align-items: center; gap: 10px;
}
.ticker-dot { width: 4px; height: 4px; background: var(--black); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Badge ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-family: var(--font-display);
  font-weight: 700; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
}
.badge-yellow { background: #2a2200; color: var(--yellow); border: 1px solid #3a3200; }
.badge-green  { background: #0a2010; color: var(--green);  border: 1px solid #1a4020; }
.badge-blue   { background: #0a1828; color: var(--blue);   border: 1px solid #1a3050; }
.badge-gray   { background: var(--surface); color: var(--dim); border: 1px solid var(--border); }

/* ── Ticket stub display ────────────────────────────────────────────────────── */
.ticket-stub { display: flex; background: var(--white); border-radius: var(--radius-md); overflow: hidden; max-width: 480px; }
.ticket-stub-l {
  background: var(--black); padding: 18px 14px; min-width: 96px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative;
}
.ticket-stub-l::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  border-right: 3px dashed var(--white);
}
.ticket-stub-r { padding: 14px 18px; color: #111; flex: 1; }
.ticket-label  { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #888; margin-bottom: 2px; font-family: var(--font-display); }
.ticket-code   { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: #111; letter-spacing: .04em; margin-bottom: 10px; }
.ticket-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ticket-val    { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: #222; }
.ticket-footer { font-size: 10px; color: #888; border-top: 1px solid #e2dfd6; padding-top: 8px; margin-top: 10px; font-style: italic; }

/* ── Brand seal ─────────────────────────────────────────────────────────────── */
.brand-seal {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8px; flex-shrink: 0;
}
.brand-seal-text {
  font-family: var(--font-display); font-size: 7px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  line-height: 1.3;
}
.brand-seal-icon { font-size: 18px; color: var(--muted); margin: 3px 0; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.footer-tag { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: flex; gap: 16px; align-items: center; }
.footer-link { font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.footer-link:hover { color: var(--yellow); }

/* ── Phil strip ─────────────────────────────────────────────────────────────── */
.phil-strip { background: #0a1a0a; border: 1px solid #1a3a1a; border-radius: var(--radius-lg); padding: 20px; }

/* ── Form ───────────────────────────────────────────────────────────────────── */
.gc-input {
  width: 100%; background: var(--black); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--white); font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: .08em; outline: none; transition: border-color .15s;
}
.gc-input:focus { border-color: var(--yellow); }
.gc-input::placeholder { color: var(--surface); }

/* ── Swipe button ───────────────────────────────────────────────────────────── */
.swipe-btn {
  width: 100%; padding: 20px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  letter-spacing: .1em; text-transform: uppercase; border: none;
  cursor: pointer; transition: opacity .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.swipe-confirm { background: var(--green); color: #0a2010; }
.swipe-confirm:hover { opacity: .88; }
.swipe-release { background: var(--yellow); color: var(--black); }
.swipe-release:hover { opacity: .88; }

/* ── Grids ──────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.section { padding: 40px 24px; border-top: 1px solid var(--border); }
.section-sm { padding: 24px; border-top: 1px solid var(--border); }

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links .btn { display: none; }
  .stub-wordmark { display: none; }
}
