/* ============================================================
   NOTWORDLE.COM — MAIN CSS
   File: assets/css/main.css
   Contains: Design tokens, reset, layout, header, hero,
             trust, features, how-to, faq, blog, footer
   Mobile-first. Supports all screen sizes from 320px up.
============================================================ */

/* ---- GOOGLE FONTS ALREADY LOADED IN <head> ---- */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
============================================================ */
:root {
  /* Brand Colors */
  --clr-bg:          #111827;
  --clr-bg-alt:      #1a2337;
  --clr-bg-card:     #1e2d45;
  --clr-bg-card2:    #162032;
  --clr-surface:     rgba(255,255,255,0.04);
  --clr-border:      rgba(255,255,255,0.08);
  --clr-border-2:    rgba(255,255,255,0.12);

  --clr-green:       #6aaa64;
  --clr-green-light: #7dc674;
  --clr-green-glow:  rgba(106,170,100,0.25);
  --clr-yellow:      #c9b458;
  --clr-yellow-light:#d9c96e;
  --clr-yellow-glow: rgba(201,180,88,0.2);
  --clr-gray-tile:   #787c7e;
  --clr-gray-dark:   #3a3a3c;

  --clr-text:        #f9fafb;
  --clr-text-muted:  #9ca3af;
  --clr-text-dim:    #6b7280;
  --clr-accent:      #6aaa64;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.125rem;   /* 18px */
  --fs-lg:   1.25rem;    /* 20px */
  --fs-xl:   1.5rem;     /* 24px */
  --fs-2xl:  2rem;       /* 32px */
  --fs-3xl:  2.5rem;     /* 40px */
  --fs-4xl:  3rem;       /* 48px */
  --fs-5xl:  3.75rem;    /* 60px */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-black:  900;

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-base:  1.6;
  --lh-loose: 1.75;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-green: 0 0 24px rgba(106,170,100,0.3);
  --shadow-yellow: 0 0 24px rgba(201,180,88,0.3);

  /* Transitions */
  --trans-fast:   150ms ease;
  --trans-base:   250ms ease;
  --trans-slow:   400ms ease;
  --trans-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--sp-5);
  --header-height: 72px;
  --section-gap:   var(--sp-20);
}

@media (min-width: 768px) {
  :root {
    --container-pad: var(--sp-8);
    --section-gap: var(--sp-24);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-pad: var(--sp-10);
  }
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--clr-text); }

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--clr-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--clr-green);
  color: #000;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  z-index: 9999;
  transition: top var(--trans-fast);
}
.skip-link:focus { top: var(--sp-2); }

/* ============================================================
   3. LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-loose);
}

@media (min-width: 768px) {
  .section-title { font-size: var(--fs-3xl); }
}

/* ============================================================
   4. BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  font-family: var(--font-main);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-base);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-green);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--clr-green);
  color: #0f1f0d;
  border-color: var(--clr-green);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--clr-green-light);
  border-color: var(--clr-green-light);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(106,170,100,0.45);
}

.btn-secondary {
  background: rgba(201,180,88,0.12);
  color: var(--clr-yellow);
  border-color: rgba(201,180,88,0.35);
}
.btn-secondary:hover {
  background: rgba(201,180,88,0.2);
  border-color: var(--clr-yellow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border-2);
}
.btn-outline:hover {
  border-color: var(--clr-green);
  color: var(--clr-green);
  transform: translateY(-2px);
}

/* ============================================================
   5. HEADER & NAVIGATION
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(17,24,39,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--trans-base), box-shadow var(--trans-base);
}

.site-header.scrolled {
  background: rgba(17,24,39,0.97);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-tiles {
  display: flex;
  gap: 3px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: 0;
  transition: transform var(--trans-spring);
}

.site-logo:hover .logo-tile { transform: scale(1.08) rotate(-2deg); }
.site-logo:hover .logo-tile:nth-child(2) { transform: scale(1.08) rotate(0deg) translateY(-2px); }
.site-logo:hover .logo-tile:nth-child(3) { transform: scale(1.08) rotate(2deg); }

.tile-green  { background: var(--clr-green); }
.tile-yellow { background: var(--clr-yellow); color: #1a1400; }
.tile-gray   { background: var(--clr-gray-tile); }

.logo-tiles--sm .logo-tile {
  width: 22px;
  height: 22px;
  font-size: var(--fs-xs);
  border-radius: 4px;
}

.logo-wordmark {
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--clr-green);
  font-weight: var(--fw-semi);
}

/* Desktop Nav */
.site-nav { display: none; }

@media (min-width: 1024px) {
  .site-nav { display: block; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  cursor: pointer;
  min-height: 44px;
}

.nav-link:hover {
  color: var(--clr-text);
  background: var(--clr-surface);
}

.nav-chevron {
  font-size: 10px;
  transition: transform var(--trans-base);
  display: inline-block;
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: dropdown-in var(--trans-base) ease forwards;
}

.nav-dropdown-menu.is-open { display: block; }

.nav-dropdown-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-dropdown-menu a:hover {
  color: var(--clr-text);
  background: var(--clr-surface);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

.hamburger:hover { background: var(--clr-surface); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--trans-base);
  transform-origin: center;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-bg);
  z-index: 99;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--trans-slow);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--clr-border);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-nav-list { padding: var(--sp-4) 0; }

.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  min-height: 56px;
  transition: color var(--trans-fast);
}
.mobile-nav-list a:hover { color: var(--clr-green); }

.mobile-divider {
  height: var(--sp-4);
  border-bottom: 1px solid var(--clr-border-2) !important;
}

@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============================================================
   6. HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--sp-20) 0 var(--sp-16);
}

/* Background gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(106,170,100,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(201,180,88,0.07) 0%, transparent 60%),
    var(--clr-bg);
  z-index: 0;
}

/* Animated BG tiles */
.hero-bg-tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-tile {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  opacity: 0;
  animation: bg-tile-float linear infinite;
}

.bg-tile-g { background: rgba(106,170,100,0.18); border: 1px solid rgba(106,170,100,0.25); }
.bg-tile-y { background: rgba(201,180,88,0.14); border: 1px solid rgba(201,180,88,0.2); }
.bg-tile-d { background: rgba(120,124,126,0.1);  border: 1px solid rgba(120,124,126,0.18); }

@keyframes bg-tile-float {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-80vh) rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(106,170,100,0.12);
  border: 1px solid rgba(106,170,100,0.3);
  color: var(--clr-green-light);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-6);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.75); }
}

.hero-headline {
  font-size: clamp(2rem, 6vw, var(--fs-5xl));
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  color: var(--clr-text);
}

.headline-highlight {
  background: linear-gradient(135deg, var(--clr-green) 0%, var(--clr-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-subheadline {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-md));
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-10);
}

.hero-ctas .btn {
  min-width: 200px;
  font-size: var(--fs-md);
  padding: var(--sp-4) var(--sp-8);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--clr-green);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--clr-border);
}

/* ============================================================
   7. TRUST SECTION
============================================================ */
.trust-section {
  padding: var(--sp-16) 0;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.trust-section .section-title { margin-bottom: var(--sp-3); text-align: center; }
.trust-section .section-subtitle { margin-bottom: var(--sp-12); text-align: center; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

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

.trust-item {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all var(--trans-base);
}

.trust-item:hover {
  border-color: var(--clr-green);
  background: rgba(106,170,100,0.06);
  transform: translateY(-3px);
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
  display: block;
}

.trust-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
  color: var(--clr-text);
}

.trust-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
}

/* ============================================================
   8. FEATURES SECTION
============================================================ */
.features-section {
  padding: var(--section-gap) 0;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: border-color var(--trans-base);
}

.feature-card:hover { border-color: var(--clr-green); }
.feature-card--alt:hover { border-color: var(--clr-yellow); }

@media (min-width: 768px) {
  .feature-card {
    grid-template-columns: 1fr 1fr;
    padding: var(--sp-12);
  }
  .feature-card--alt { direction: rtl; }
  .feature-card--alt > * { direction: ltr; }
}

/* Feature Mockups */
.feature-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.feature-mockup { position: relative; }

/* Phone mockup (Video) */
.mockup-phone {
  width: 150px;
  background: var(--clr-bg-card2);
  border: 2px solid var(--clr-border-2);
  border-radius: 20px;
  padding: 14px 10px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.mockup-screen {
  background: var(--clr-bg);
  border-radius: 12px;
  padding: var(--sp-4) var(--sp-3);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: center;
}

.mockup-tiles { display: flex; flex-direction: column; gap: var(--sp-2); }

.mockup-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.mt {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: var(--fw-black);
  color: #fff;
}
.mt-green  { background: var(--clr-green); }
.mt-yellow { background: var(--clr-yellow); color: #1a1400; }
.mt-gray   { background: var(--clr-gray-dark); }
.mt-flip   {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border-2);
  color: var(--clr-text-dim);
  animation: tile-flip-anim 1.5s ease-in-out infinite;
}

@keyframes tile-flip-anim {
  0%, 100% { transform: rotateY(0deg); }
  50%       { transform: rotateY(90deg); background: var(--clr-green); }
}

.mockup-branding {
  text-align: center;
  font-size: 8px;
  font-weight: var(--fw-bold);
  color: var(--clr-green);
  margin-top: var(--sp-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mockup-rec {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 7px;
  color: #ef4444;
  font-weight: var(--fw-bold);
  animation: blink 1.5s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Pinterest mockup */
.pin-card-preview {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  width: 160px;
  box-shadow: var(--shadow-lg);
}

.pin-header-bar {
  font-size: 9px;
  color: #e60023;
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  text-align: center;
}

.pin-result-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 3px;
  margin-bottom: var(--sp-3);
}

.pr {
  aspect-ratio: 1;
  border-radius: 3px;
}

.pin-site-name {
  font-size: 9px;
  font-weight: var(--fw-black);
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3px;
}

.pin-caption {
  font-size: 7px;
  color: #555;
  text-align: center;
}

/* Feature content */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-4);
}

.feature-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.feature-list li {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  line-height: var(--lh-snug);
}

/* ============================================================
   9. HOW TO PLAY
============================================================ */
.howto-section {
  padding: var(--section-gap) 0;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}

.howto-section .section-title { margin-bottom: var(--sp-3); }
.howto-section .section-subtitle { margin-bottom: var(--sp-12); }

.steps-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  max-width: 900px;
  margin: 0 auto var(--sp-10);
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
}

.step-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  flex: 1;
  max-width: 280px;
  position: relative;
  transition: all var(--trans-base);
}

.step-card:hover {
  border-color: var(--clr-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--clr-green);
  color: #0f1f0d;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-4);
  display: block;
}

.step-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
}

.step-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-green), var(--clr-yellow));
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
  display: none;
}

@media (min-width: 768px) {
  .step-connector { display: block; }
}

.howto-cta { text-align: center; }

/* ============================================================
   10. FAQ SECTION
============================================================ */
.faq-section {
  padding: var(--section-gap) 0;
}

.faq-section .section-header { margin-bottom: var(--sp-10); }

.faq-grid {
  max-width: 800px;
  margin: 0 auto var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

.faq-item[open] {
  border-color: var(--clr-green);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--clr-text);
  list-style: none;
  gap: var(--sp-4);
  min-height: 56px;
  user-select: none;
  transition: color var(--trans-fast);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-item[open] .faq-question { color: var(--clr-green); }

.faq-chevron {
  font-size: var(--fs-xl);
  font-weight: var(--fw-normal);
  color: var(--clr-text-muted);
  transition: transform var(--trans-base), color var(--trans-fast);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: var(--clr-green);
}

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-4);
}

.faq-answer a {
  color: var(--clr-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-answer a:hover { color: var(--clr-green-light); }

.faq-more { text-align: center; }

/* ============================================================
   11. BLOG PREVIEW
============================================================ */
.blog-section {
  padding: var(--section-gap) 0;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

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

.blog-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all var(--trans-base);
}

.blog-card:hover {
  border-color: var(--clr-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-green);
  background: rgba(106,170,100,0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.blog-card-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  flex: 1;
}

.blog-card-title a {
  color: var(--clr-text);
  transition: color var(--trans-fast);
}
.blog-card-title a:hover { color: var(--clr-green); }

.blog-card-excerpt {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  flex: 1;
}

.blog-read-more {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-green);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  transition: gap var(--trans-fast);
}
.blog-read-more:hover { gap: var(--sp-3); }

.blog-all { text-align: center; }

/* ============================================================
   12. FOOTER
============================================================ */
.site-footer {
  background: var(--clr-bg-card2);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

@media (min-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-4);
  max-width: 320px;
}

.footer-eeat {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  line-height: var(--lh-loose);
}

.footer-eeat a {
  color: var(--clr-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--trans-fast);
}
.footer-eeat a:hover { color: var(--clr-green); }

.footer-nav-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-5);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav-list a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color var(--trans-fast);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.footer-nav-list a:hover { color: var(--clr-green); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: var(--lh-loose);
}

.footer-disclaimer {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
  opacity: 0.7;
}

/* ============================================================
   13. SCROLL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   14. GAMES SECTION (partial — full in games.css)
============================================================ */
.games-section {
  padding: var(--section-gap) 0;
}

.games-section .section-header { margin-bottom: var(--sp-10); }

/* ============================================================
   15. ACCESSIBILITY & UTILITIES
============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* High contrast mode */
@media (forced-colors: active) {
  .logo-tile, .game-card-cta, .btn-primary { forced-color-adjust: none; }
}

/* Selection */
::selection {
  background: rgba(106,170,100,0.3);
  color: var(--clr-text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-gray-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-gray-tile); }
