/* Sevens marketing site — shared styles */
:root {
  --felt-900: #021a0c;
  --felt-800: #043318;
  --felt-700: #0a4d28;
  --felt-600: #126b38;
  --gold: #e8c547;
  --gold-soft: rgba(232, 197, 71, 0.18);
  --cream: #f4f0e6;
  --cream-dim: rgba(244, 240, 230, 0.72);
  --card-red: #c43c3c;
  --card-black: #1a1a1a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --max: 1080px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--felt-900);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #fff4c4;
}

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

/* Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(18, 107, 56, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(232, 197, 71, 0.08), transparent 50%),
    linear-gradient(165deg, var(--felt-800) 0%, var(--felt-900) 42%, #010a05 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l4 12h12l-10 8 4 12-10-8-10 8 4-12-10-8h12z' fill='%23e8c547'/%3E%3C/svg%3E");
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(2, 26, 12, 0.82);
  border-bottom: 1px solid rgba(232, 197, 71, 0.12);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--felt-600), var(--felt-800));
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(232, 197, 71, 0.25);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--gold);
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1.2rem;
  color: var(--cream-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #f0d56a 0%, var(--gold) 100%);
  color: var(--felt-900);
  box-shadow: 0 4px 24px rgba(232, 197, 71, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 197, 71, 0.45);
  color: var(--felt-900);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  border: 1px solid rgba(244, 240, 230, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.hero-note {
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin: 0;
}

/* Cards preview */
.card-strip {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 3rem;
  perspective: 800px;
}

.playing-card {
  width: 64px;
  height: 90px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotate(var(--rot, 0deg)) translateY(var(--y, 0));
}

.playing-card.red {
  color: var(--card-red);
}

.playing-card.black {
  color: var(--card-black);
}

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

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  margin: -1rem 0 2rem;
  max-width: 40rem;
  color: var(--cream-dim);
}

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

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 197, 71, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(232, 197, 71, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--cream-dim);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 197, 71, 0.35);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-dim);
}

/* Trust strip */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.trust-item {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--gold);
}

.trust-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

/* CTA band */
.cta-band {
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(135deg, rgba(18, 107, 56, 0.5), rgba(4, 51, 24, 0.9));
  border: 1px solid rgba(232, 197, 71, 0.2);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--cream-dim);
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid rgba(232, 197, 71, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

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

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

/* Legal / support pages */
.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 197, 71, 0.12);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-soft);
}

.legal-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--gold);
}

.legal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--cream);
}

.legal-card ul {
  padding-left: 1.35rem;
  margin: 0.5rem 0 1rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
  color: var(--cream-dim);
}

.legal-card p {
  color: var(--cream-dim);
}

.legal-card p strong,
.legal-card li strong {
  color: var(--cream);
}

.highlight {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  margin: 1.5rem 0;
}

.highlight p {
  margin: 0.35rem 0;
}

.contact-box {
  background: rgba(0, 0, 0, 0.28);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 197, 71, 0.15);
  margin-top: 1rem;
}

.contact-box label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--cream);
  font-size: 0.95rem;
}

.contact-box label:first-of-type {
  margin-top: 0;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: rgba(244, 240, 230, 0.4);
}

.contact-box textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-box button {
  margin-top: 1rem;
}

.last-updated {
  text-align: center;
  font-style: italic;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.page-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .card-strip .playing-card:nth-child(n + 5) {
    display: none;
  }

  .legal-card {
    padding: 1.5rem 1.25rem;
  }
}
