/* ===========================================================
   SKILL. — MARKETING HOMEPAGE
   Token system
   =========================================================== */
:root {
  /* Ink (brand blue, inherited from the product) */
  --ink-900: #16324a;
  --ink-700: #1d4f72;
  --ink-500: #26648e;
  --ink-300: #6f97b3;
  --ink-100: rgba(38, 100, 142, 0.08);

  /* Paper (warm neutral, inherited from the product) */
  --paper: #f7f3ea;
  --mist: #eef2e9;
  --paper-card: #fffdf8;

  /* Accents */
  --gold: #e6b422;
  --gold-deep: #b8860b;
  --green: #2c7a4d;
  --green-soft: #eaf5ee;

  /* Text */
  --text: #22302d;
  --muted: #6b6a69;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Lexend', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shape */
  --radius-lg: 40px;
  --radius-md: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 45px rgba(22, 50, 74, 0.10);
  --shadow-card: 0 10px 30px rgba(22, 50, 74, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-700);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-primary {
  background: var(--ink-500);
  color: white;
  box-shadow: 0 8px 20px rgba(38, 100, 142, 0.25);
}
.btn-primary:hover { background: var(--ink-700); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover { background: var(--ink-100); }

.btn-outline {
  background: transparent;
  border-color: rgba(38, 100, 142, 0.3);
  color: var(--ink-700);
}
.btn-outline:hover { border-color: var(--ink-500); background: var(--ink-100); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 243, 234, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 100, 142, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(22, 50, 74, 0.06); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink-700);
}
.wordmark .dot { color: var(--gold-deep); }

.main-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a { color: var(--text); opacity: 0.75; transition: opacity 0.2s ease; }
.main-nav a:hover { opacity: 1; color: var(--ink-700); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-700); border-radius: 2px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; overflow: hidden; padding-top: 3.5rem; }

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: 78vh;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.eyebrow--dark { color: var(--ink-700); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  color: var(--ink-900);
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--gold-deep); font-weight: 500; }

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.1rem; }

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-note i { color: var(--green); }

/* --- Hero visual: living-feed reel columns --- */
.hero-visual {
  position: relative;
  height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.reel-col { overflow: hidden; height: 100%; }
.reel-col--down { transform: translateY(-40px); }
.reel-col--up { transform: translateY(40px); }

.reel-track {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation-duration: 34s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.reel-col--down .reel-track { animation-name: scrollDown; }
.reel-col--up .reel-track { animation-name: scrollUp; }

@keyframes scrollDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.reel-card {
  position: relative;
  border-radius: var(--radius-md);
  aspect-ratio: 9 / 13;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
  color: white;
  overflow: hidden;
}
.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 55%);
}
.reel-card .reel-play {
  align-self: flex-end;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  z-index: 1;
}
.reel-card .reel-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.reel-card .reel-tag { font-weight: 700; }
.reel-card .reel-likes { display: flex; align-items: center; gap: 0.25rem; opacity: 0.9; }

/* ===========================================================
   MARQUEE STRIP
   =========================================================== */
.marquee {
  border-top: 1px solid rgba(38,100,142,0.1);
  border-bottom: 1px solid rgba(38,100,142,0.1);
  background: var(--mist);
  overflow: hidden;
  padding: 0.9rem 0;
  margin-top: 2.5rem;
}
.marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--paper-card);
  border: 1px solid rgba(38,100,142,0.12);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.marquee-badge i { color: var(--gold-deep); }

/* ===========================================================
   GENERIC SECTION
   =========================================================== */
.section { padding: 6.5rem 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink-900);
  max-width: 18ch;
  margin-bottom: 3rem;
  line-height: 1.15;
}
.section-title--light { color: white; }
.section-lead { color: rgba(255,255,255,0.78); max-width: 42ch; margin-bottom: 2rem; font-size: 1.05rem; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===========================================================
   PILLARS
   =========================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  background: var(--paper-card);
  border: 1px solid rgba(38,100,142,0.08);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-card);
}
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 1.2rem 0 0.6rem; }
.pillar p { color: var(--muted); font-size: 0.96rem; }

.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: white;
}
.pillar-icon--blue { background: var(--ink-500); }
.pillar-icon--green { background: var(--green); }
.pillar-icon--gold { background: var(--gold-deep); }

/* ===========================================================
   CREDITS SECTION
   =========================================================== */
.section--credits {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700) 70%);
  color: white;
}
.section-inner--split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.credit-rules { display: flex; flex-direction: column; gap: 0.9rem; }
.credit-rules li {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.credit-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  background: rgba(230,180,34,0.12);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}

.credits-counter-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  text-align: center;
  backdrop-filter: blur(6px);
}
.counter-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 0.6rem; }
.counter-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--gold);
  letter-spacing: -0.01em;
}
.counter-sub { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.6rem; }
.counter-sub i { margin-right: 0.3rem; }

/* ===========================================================
   SAFETY
   =========================================================== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.safety-card {
  background: var(--green-soft);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  border: 1px solid rgba(44,122,77,0.14);
}
.safety-card i { font-size: 1.4rem; color: var(--green); }
.safety-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.safety-card p { color: var(--muted); font-size: 0.94rem; }

/* ===========================================================
   VOICES / TESTIMONIALS
   =========================================================== */
.section--voices { background: var(--mist); }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.voice-card {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card);
}
.voice-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 1rem;
}
.voice-card footer { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-500); }

/* ===========================================================
   CTA BANNER
   =========================================================== */
.cta-banner {
  background: var(--ink-900);
  color: white;
  padding: 6rem 0;
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.cta-title em { color: var(--gold); font-style: italic; }
.cta-sub { color: rgba(255,255,255,0.7); margin-bottom: 2.2rem; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.6); padding: 2.4rem 0 3rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.wordmark--footer { color: white; font-size: 1.2rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.88rem; }
.footer-nav a { opacity: 0.75; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { font-size: 0.8rem; width: 100%; text-align: center; opacity: 0.5; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; padding-bottom: 3rem; }
  .hero-visual { display: none; }
  .pillars, .safety-grid, .voices-grid { grid-template-columns: 1fr; }
  .section-inner--split { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0.85rem 1.25rem; }
  .section-inner { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
