/* ===========================================================
   AcePlayGuide — Shared Site-Wide Stylesheet
   Bold, playful-yet-professional design system
   =========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #FFFFFF;
  --light-gray: #F5F6FA;
  --primary-blue: #2F5FF6;
  --accent-red: #FF4B4B;
  --accent-yellow: #FFC93C;
  --text-dark: #111111;
  --text-muted: #6B6B76;
  --black: #0B0B0E;
  --border: #E8E8EE;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(11, 11, 14, 0.06);
  --shadow-hover: 0 8px 32px rgba(11, 11, 14, 0.10);
  --transition: 0.25s ease;
  --container: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover { background: #2a2a32; border-color: #2a2a32; transform: translateY(-1px); }

.btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-dark); transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary-blue); }

.btn-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: transform var(--transition);
}
.btn-arrow:hover { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--black);
  color: var(--accent-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-menu a:hover { color: var(--primary-blue); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 24px;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light-gray);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
}
.mobile-menu nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 17px;
  transition: background var(--transition);
}
.mobile-menu nav a:hover { background: var(--light-gray); }
.mobile-menu .btn { margin-top: auto; width: 100%; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,11,14,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Section base ---------- */
section { padding: 96px 0; position: relative; }
.section-alt { background: var(--light-gray); }
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); max-width: 620px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--primary-blue); }
.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scroll-cue .arrow-down {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-creds {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 480px;
}
.hero-creds small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-creds strong { font-size: 14px; }

.hero-image {
  position: relative;
  min-height: 480px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 24px;
  position: relative;
  z-index: 2;
}
.shape-triangle {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: var(--primary-blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.shape-circle-red {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 100px;
  height: 100px;
  background: var(--accent-red);
  border-radius: 50%;
  z-index: 3;
}
.shape-square-yellow {
  position: absolute;
  bottom: -28px;
  right: 80px;
  width: 80px;
  height: 80px;
  background: var(--accent-yellow);
  z-index: 3;
}

/* ---------- Stats Row ---------- */
.stats {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: flex-start;
}
.stat-num .plus {
  font-size: 0.45em;
  margin-top: 0.3em;
  margin-left: 4px;
  font-weight: 800;
}
.stat-num .plus.blue { color: var(--primary-blue); }
.stat-num .plus.red { color: var(--accent-red); }
.stat-num .plus.yellow { color: var(--accent-yellow); }
.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

/* ---------- Programs ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head .nav-arrows { display: flex; gap: 10px; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.program-card .bar {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.program-card .bar.blue { background: var(--primary-blue); }
.program-card .bar.red { background: var(--accent-red); }
.program-card .bar.yellow { background: var(--accent-yellow); }
.program-card h3 { font-size: 22px; margin-bottom: 12px; }
.program-card p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }
.program-card .btn-arrow { position: absolute; bottom: 24px; right: 24px; }

.programs-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Split Sections (Story & Mission) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image {
  position: relative;
  min-height: 460px;
}
.split-image .bg-block {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 24px;
  z-index: 1;
}
.split-image .bg-block.blue { background: var(--primary-blue); top: 30px; left: -20px; }
.split-image .bg-block.red { background: var(--accent-red); top: 30px; right: -20px; }
.split-image img {
  position: relative;
  width: 88%;
  height: 460px;
  object-fit: cover;
  border-radius: 24px;
  z-index: 2;
  box-shadow: var(--shadow);
}
.split.reverse .split-image img { margin-left: auto; display: block; }

.split-content h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.split-content p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; max-width: 520px; }

/* ---------- Process ---------- */
.process { text-align: center; }
.process .section-sub { margin: 0 auto 48px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}
.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.process-num .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.process-num .dot.blue { background: var(--primary-blue); }
.process-num .dot.red { background: var(--accent-red); }
.process-num .dot.yellow { background: var(--accent-yellow); }
.process-card h3 { font-size: 20px; margin-bottom: 10px; }
.process-card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Blue CTA Banner ---------- */
.cta-banner {
  background: var(--primary-blue);
  border-radius: 24px;
  padding: 72px 64px;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  max-width: 480px;
}
.cta-shapes {
  position: relative;
  height: 200px;
}
.cta-shapes .triangle {
  position: absolute;
  width: 110px;
  height: 110px;
  background: var(--accent-yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  top: 0;
  right: 80px;
}
.cta-shapes .circle {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent-red);
  border-radius: 50%;
  bottom: 0;
  right: 200px;
}
.cta-shapes .square {
  position: absolute;
  width: 70px;
  height: 70px;
  background: var(--white);
  bottom: 40px;
  right: 0;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow);
}
.testimonial-card .logo-mark-sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--black);
  color: var(--accent-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 500;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author .author-name { font-weight: 700; font-size: 15px; }
.testimonial-author .author-role { color: var(--text-muted); font-size: 13px; }

.testimonial-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}

/* ---------- Articles ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.article-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-img img { transform: scale(1.05); }
.article-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}
.article-tag.blue { background: var(--primary-blue); }
.article-tag.red { background: var(--accent-red); }
.article-tag.yellow { background: var(--accent-yellow); color: var(--text-dark); }
.article-body { padding: 24px; }
.article-body h3 { font-size: 18px; margin-bottom: 18px; line-height: 1.3; }
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.article-author .name { font-size: 13px; font-weight: 600; }
.article-author .role { font-size: 12px; color: var(--text-muted); }

/* ---------- Trusted By ---------- */
.trusted {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.logos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.logo-placeholder {
  height: 32px;
  min-width: 110px;
  background: var(--light-gray);
  border-radius: 6px;
  flex: 1;
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: #C9C9D2;
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer .logo { color: var(--white); }
.footer .logo-mark { background: var(--primary-blue); color: var(--white); }
.footer-tagline {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #9999A3;
  max-width: 320px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: #C9C9D2;
  font-size: 14px;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--primary-blue); }

.newsletter p { font-size: 14px; color: #9999A3; margin-bottom: 16px; max-width: 280px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  background: #1A1A22;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid #2a2a35;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 16px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
}
.newsletter-form input::placeholder { color: #6a6a76; }
.newsletter-form button {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: #1f47d6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #1f1f28;
  flex-wrap: wrap;
  gap: 16px;
}
.social-row {
  display: flex;
  gap: 14px;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1A1A22;
  color: #C9C9D2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-row a:hover { background: var(--primary-blue); color: var(--white); }
.copyright { font-size: 13px; color: #6a6a76; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}
.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color var(--transition);
}
.legal-page .back-link:hover { color: var(--primary-blue); }
.legal-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 14px;
}
.legal-page p, .legal-page li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { min-height: 400px; }
  .hero-image img { min-height: 400px; }
  .split, .split.reverse, .testimonials-grid { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .split-image .bg-block.blue { left: 0; }
  .split-image .bg-block.red { right: 0; }
  .programs-grid, .process-grid, .articles-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-banner { grid-template-columns: 1fr; padding: 56px 40px; }
  .cta-shapes { display: none; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-menu, .nav-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
  .hero { padding: 56px 0 72px; }
  .hero-creds { flex-direction: column; gap: 12px; }
  .programs-grid, .process-grid, .articles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 8px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-banner { padding: 48px 28px; margin: 0 16px; }
  .split-image { min-height: 380px; }
  .split-image img { height: 380px; width: 92%; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .hero-ctas .btn { flex: 1; }
  .hero-creds { gap: 16px; }
  .hero-image { min-height: 320px; }
  .hero-image img { min-height: 320px; }
  .testimonial-card { padding: 28px; }
  .program-card, .process-card, .article-card { padding: 24px; }
  .logos-row { gap: 16px; }
  .logo-placeholder { min-width: 90px; height: 28px; font-size: 11px; }
}