/* Paper & Foil — static marketing site (matches mobile theme tokens) */

:root {
  --canvas: #f6f6f8;
  --surface: #ffffff;
  --surface-sunken: #f1f1f5;
  --border: #e7e7ec;
  --border-strong: #d6d6de;
  --text: #101014;
  --text-secondary: #5a5a66;
  --text-muted: #8c8c99;
  --ink: #141418;
  --gold: #c9a66b;
  --gold-soft: #e8d5a3;
  --gold-deep: #8a6a31;
  --gold-wash: #fbf6ec;
  --gold-border: #eadfc5;
  --face-navy: #0f1f3a;
  --face-navy-mid: #1a3558;
  --face-text: #f4f1ea;
  --face-text-muted: rgba(244, 241, 234, 0.62);
  --face-line: rgba(232, 213, 163, 0.22);
  --shadow: 0 18px 48px rgba(11, 11, 20, 0.12);
  --shadow-sm: 0 6px 18px rgba(11, 11, 20, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 246, 248, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.brand-logo-sm {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow-light {
  color: var(--gold-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow);
}

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

.btn-light {
  background: #fff;
  color: var(--ink);
}

.hero-visual {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.card-stack {
  position: relative;
  width: min(100%, 320px);
  height: 220px;
}

.visiting-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--face-navy), var(--face-navy-mid));
  color: var(--face-text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visiting-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.card-back {
  transform: rotate(-6deg) translate(-12px, 16px) scale(0.96);
  opacity: 0.85;
}

.card-front {
  transform: rotate(4deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-8px);
  }
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-org {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.card-tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--face-text-muted);
}

.card-person {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-person strong {
  font-size: 1rem;
}

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

.card-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--face-text-muted);
  border-top: 1px solid var(--face-line);
  padding-top: 0.75rem;
}

.card-code {
  margin: 0.25rem 0 0;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.875rem;
}

.card-qr {
  margin-top: auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #fff 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(#fff 2px, transparent 2px) 0 0 / 8px 8px;
  opacity: 0.9;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero {
    padding: 5rem 0 4rem;
  }
}

/* Stats */

.stats {
  padding: 0 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  color: var(--gold-deep);
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

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

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

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-wash);
  border: 1px solid var(--gold-border);
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

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

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA */

.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--face-navy), var(--face-navy-mid));
  color: var(--face-text);
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0;
  color: var(--face-text-muted);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr auto;
  }
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-copy,
.gamrila-credit {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.gamrila-credit a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gamrila-credit a:hover,
.gamrila-credit a:focus-visible {
  color: var(--text);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

/* Scroll reveal (progressive enhancement) */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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