/* Canuck Arcade — production stylesheet. System fonts for Core Web Vitals. */
:root {
  --bg: #07090d;
  --bg-elevated: #0e1218;
  --surface: #141a24;
  --surface-2: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2f6;
  --text-muted: #9aa8b8;
  --accent: #2ee4c0;
  --accent-dim: rgba(46, 228, 192, 0.15);
  --accent-hot: #ff4d7d;
  --glow: rgba(46, 228, 192, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7af3dc;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #04120f;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #1a9e86 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--glow);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-primary a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  margin-left: 0.5rem;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav-primary {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 13, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
  }

  .nav-primary.is-open {
    transform: translateX(0);
  }

  .nav-primary a {
    padding: 0.85rem 1rem;
    font-size: 1.0625rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1fb89a 100%);
  color: #04120f;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px var(--glow);
  color: #04120f;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.35) 0%, rgba(7, 9, 13, 0.88) 55%, var(--bg) 100%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(46, 228, 192, 0.25);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  animation: fade-up 0.8s var(--ease-out) 0.08s both;
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  animation: fade-up 0.8s var(--ease-out) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: fade-up 0.8s var(--ease-out) 0.24s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 520px;
  animation: fade-up 0.8s var(--ease-out) 0.32s both;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(20, 26, 36, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero h1,
  .hero-lede,
  .hero-actions,
  .hero-stats,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 4rem 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

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

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.35s var(--ease-out);
}

.card:hover {
  border-color: rgba(46, 228, 192, 0.25);
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: auto;
}

.split-content ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.split-content li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.split-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 0;
}

.trust-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  text-align: center;
}

.trust-inner p {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.trust-logos span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(238, 242, 246, 0.45);
  letter-spacing: 0.02em;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.quote {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.9875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.quote footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), #7c3aed);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
}

.quote .role {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* CTA band */
.cta-band {
  border-radius: var(--radius);
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(46, 228, 192, 0.12) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(46, 228, 192, 0.2);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 46ch;
  color: var(--text-muted);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 480px;
  margin-inline: auto;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: rgba(154, 168, 184, 0.7);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-success {
  display: none;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.info-row strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-row a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.info-row a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 36ch;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(100% - 0rem, var(--max));
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cookie-inner a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Legal pages */
.legal-page {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
