/* ═══════════════════════════════════════════════════════════
   W69 Consultancy — Shared Stylesheet
   State-of-the-art design system with dark mode, animations,
   glassmorphism, and modern micro-interactions
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --apple-bg: #ffffff;
  --apple-grey: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-blue: #00875A;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.45);
  --radius: 22px;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.04);
  --card-hover-shadow: 0 20px 50px rgba(0,0,0,0.08);
  --glow: rgba(0, 135, 90, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-gradient: linear-gradient(135deg, #00875A 0%, #0D9488 50%, #2DD4BF 100%);
}

/* ─── Dark Mode ─── */
body.dark-mode {
  --apple-bg: #0a0a0f;
  --apple-grey: #111118;
  --apple-text: #f5f5f7;
  --apple-blue: #2DD4BF;
  --glass: rgba(10, 10, 15, 0.82);
  --glass-border: rgba(255, 255, 255, 0.06);
  --muted: #a1a1a6;
  --border: #2c2c2e;
  --card-bg: #1c1c1e;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.2);
  --card-hover-shadow: 0 20px 50px rgba(0,0,0,0.4);
  --glow: rgba(45, 212, 191, 0.15);
  --hero-gradient: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 50%, #0D9488 100%);
}

body.dark-mode header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark-mode .section-grey {
  background-color: var(--apple-grey);
}

body.dark-mode .card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
}

body.dark-mode .quiz-card {
  background: #111118;
}

body.dark-mode .quiz-option {
  background: #1c1c1e;
  color: var(--apple-text);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .quiz-option:hover {
  background: #2c2c2e;
  border-color: var(--apple-blue);
}

body.dark-mode .form-field,
body.dark-mode .form-textarea,
body.dark-mode select.form-field {
  background: #1c1c1e;
  color: var(--apple-text);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .hero-proof span {
  background: #1c1c1e;
  color: #d0d0d5;
}

body.dark-mode .tag {
  background: #2c2c2e;
  color: #d0d0d5;
}

body.dark-mode .gpt-link {
  border-top-color: rgba(255,255,255,0.06);
}

body.dark-mode .btn-secondary {
  color: var(--apple-blue);
  border-color: rgba(52,211,153,0.3);
}

body.dark-mode .founder-block {
  background: linear-gradient(145deg, #1a2e24, #0f2e1a);
  border-color: rgba(0,135,90,0.15);
}
body.dark-mode .founder-copy p {
  color: rgba(255,255,255,0.84);
}

body.dark-mode .brand-box img,
body.dark-mode .hero-logo {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

body.dark-mode .quiz-progress-bar {
  background: #2c2c2e;
}

body.dark-mode footer {
  border-top-color: rgba(255,255,255,0.04);
}

body.dark-mode .footer-links a {
  color: var(--muted);
}

body.dark-mode .footer-links a:hover {
  color: var(--apple-text);
}

/* ─── Base Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--apple-bg);
  color: var(--apple-text);
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* ─── Accessibility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10001;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--apple-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}

/* ─── Sticky Glass Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--apple-text);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.brand-box:hover {
  opacity: 0.85;
}

.brand-box img {
  height: 32px;
  transition: transform 0.3s ease;
}

.brand-box:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 13px;
  color: var(--apple-text);
  text-decoration: none;
  opacity: 0.75;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  background: var(--glow);
}

/* ─── Sector Dropdown ─── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 8px 0;
  padding-top: 16px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  z-index: 1001;
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px !important;
  font-size: 13px !important;
  opacity: 0.8 !important;
  border-radius: 0 !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  opacity: 1 !important;
  background: var(--glow) !important;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 16px;
  opacity: 0.5;
}

.mode-toggle {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.2s;
}

.mode-toggle:hover {
  color: var(--apple-text);
  background: var(--glow);
}

/* ─── Hamburger Menu ─── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: var(--glow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--apple-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Layout ─── */
section {
  padding: 100px 24px;
  position: relative;
}

.section-grey {
  background-color: var(--apple-grey);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 20px 24px 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 340px;
  max-width: 70vw;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.06));
  animation: fadeInDown 0.8s ease-out;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0;
  line-height: 1.04;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-size: 20px;
}

p {
  margin-top: 0;
}

.hero-intro {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  max-width: 820px;
  margin: 24px auto 40px;
  line-height: 1.55;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-proof span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--apple-grey);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s;
}

.hero-proof span:hover {
  background: var(--glow);
  color: var(--apple-blue);
  transform: translateY(-1px);
}

/* ─── Section Intro ─── */
.section-intro {
  text-align: center;
  margin-bottom: 56px;
}

.section-intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* ─── Card Icons ─── */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--apple-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition);
}

.card:hover .card-icon {
  background: var(--apple-blue);
  transform: scale(1.08);
}

.card:hover .card-icon svg {
  stroke: #fff;
}

/* ─── Cards ─── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  background: linear-gradient(135deg, var(--glow), transparent 60%);
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.card:hover::before {
  opacity: 1;
}

/* ─── Buttons ─── */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: var(--apple-blue);
  color: #fff;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-apple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 135, 90, 0.3);
}

.btn-apple:hover::after {
  opacity: 1;
}

.btn-apple:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--apple-blue);
  border: 1.5px solid rgba(0, 135, 90, 0.2);
}

.btn-secondary:hover {
  background: var(--glow);
  box-shadow: 0 8px 25px rgba(0, 135, 90, 0.1);
  border-color: rgba(0, 135, 90, 0.35);
}

.btn-secondary::after {
  display: none;
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--apple-grey);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-blue {
  background: var(--apple-blue);
  color: #ffffff !important;
}

/* ─── Typography ─── */
.small-copy {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.impact-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ─── GPT / External Links ─── */
.gpt-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--apple-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border);
  width: 100%;
  transition: all 0.2s;
}

.gpt-link:hover {
  opacity: 0.8;
  gap: 10px;
}

/* ─── Founder Block ─── */
.founder-block {
  background: linear-gradient(145deg, #e8f8f0, #dbf8e7);
  color: #1d1d1f;
  border-radius: var(--radius);
  padding: 56px;
  text-align: left;
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  box-shadow: 0 24px 48px rgba(0,135,90,0.08);
  border: 1px solid rgba(0,135,90,0.1);
  position: relative;
  overflow: hidden;
}

.founder-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,135,90,0.06), transparent 70%);
  pointer-events: none;
}

.founder-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 3px solid #00875A;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.founder-copy p {
  color: #424245;
}

.cert-tag {
  background: rgba(0, 135, 90, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 135, 90, 0.35);
  color: #00875A;
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
  display: inline-block;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.cert-tag:hover {
  background: rgba(0, 135, 90, 0.25);
  transform: translateY(-1px);
}

/* ─── Quiz / Navigator ─── */
.quiz-card {
  background: var(--apple-grey);
  border-radius: 30px;
  padding: 56px;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.quiz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 60%);
  pointer-events: none;
}

.quiz-option {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 12px auto;
  padding: 22px 28px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
  text-align: left;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--apple-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.quiz-option:hover {
  border-color: var(--apple-blue);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  background: var(--glow);
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  font-size: 32px;
  font-weight: 800;
  color: var(--apple-blue);
  position: relative;
}

.score-red    { border-color: #ff3b30; color: #ff3b30; }
.score-orange { border-color: #ff9500; color: #ff9500; }
.score-green  { border-color: #34c759; color: #34c759; }

.quiz-progress-wrap {
  max-width: 600px;
  margin: 0 auto 24px;
}

.quiz-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--apple-blue);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text);
  margin-bottom: 6px;
}

.form-field,
.form-textarea,
select.form-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  font: inherit;
  font-size: 16px;
  color: var(--apple-text);
  background: var(--card-bg);
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-field:focus,
.form-textarea:focus,
select.form-field:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px var(--glow);
}

.form-textarea {
  margin-bottom: 20px;
  min-height: 120px;
  resize: vertical;
}

.contact-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ─── FAQ Accordion ─── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question:hover { color: var(--apple-blue); }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  content: '−';
  color: var(--apple-blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── WhatsApp Float ─── */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 10000;
}

.wa-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  background: #25D366;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wa-btn-circle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

/* ─── Breadcrumbs ─── */
.breadcrumb {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--apple-blue);
}
.breadcrumb span.sep {
  margin: 0 8px;
  opacity: 0.5;
}
.breadcrumb span.current {
  color: var(--apple-text);
  font-weight: 500;
}

/* ─── Footer ─── */
footer {
  padding: 48px 24px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--apple-text);
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}

/* ─── Scroll Reveal Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Pulse Animation ─── */
@keyframes pulse-blue {
  0%   { box-shadow: 0 0 0 0 rgba(0, 135, 90, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(0, 135, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 135, 90, 0); }
}

/* ─── Media: Tablet ─── */
@media (max-width: 900px) {
  .nav-links a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .card {
    padding: 28px;
  }

  section {
    padding: 80px 20px;
  }
}

/* ─── Media: Mobile ─── */
@media (max-width: 768px) {
  section {
    padding: 64px 20px;
  }

  .hero {
    padding: 10px 20px 50px;
  }

  .hero-logo {
    width: 240px;
    margin-bottom: 16px;
  }

  .hero::before {
    width: 500px;
    height: 500px;
  }

  .nav-container {
    height: auto;
    min-height: 52px;
    padding: 12px 20px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 4px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    margin: 0;
    padding: 10px 0;
    font-size: 15px;
    width: 100%;
    border-radius: 0;
  }

  .nav-links a:hover {
    background: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
    opacity: 1;
    transform: none;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 8px 0 !important;
    font-size: 14px !important;
  }

  .nav-dropdown-divider {
    margin: 4px 0;
  }

  .mode-toggle {
    margin: 8px 0 0;
    padding: 10px 0;
  }

  .founder-block {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 40px 28px;
  }

  .grid > * {
    grid-column: span 12 !important;
  }

  .quiz-card {
    padding: 36px 24px;
  }

  h2 {
    font-size: clamp(26px, 5vw, 40px);
  }

  .section-intro {
    margin-bottom: 40px;
  }

  .footer-links {
    gap: 16px;
  }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Print ─── */
@media print {
  header, .wa-float, .menu-toggle, .mode-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ── Stat Counters ──────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
}
.stat-item {
  text-align: center;
  min-width: 140px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 500;
}
.stat-item.counted .stat-number {
  animation: stat-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes stat-pop {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Visual Timeline ────────────────────────── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--apple-blue), #0D9488);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 3rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 0 0 6px var(--apple-bg), 0 0 20px rgba(0,135,90,0.3);
  z-index: 2;
}
.timeline-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--apple-text);
}
.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--apple-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.timeline-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--apple-blue);
}

body.dark-mode .timeline-dot {
  box-shadow: 0 0 0 6px var(--apple-bg), 0 0 20px rgba(52,211,153,0.4);
}
body.dark-mode .timeline-icon {
  background: #2c2c2e;
}

@media (max-width: 600px) {
  .timeline::before { left: 18px; }
  .timeline-dot { left: 6px; width: 24px; height: 24px; font-size: 0.7rem; }
  .timeline-item { padding-left: 52px; }
  .stats-bar { gap: 1.5rem; }
  .stat-number { font-size: 2.2rem; }
}

/* ── Social Proof ───────────────────────────── */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.partner-logos:hover {
  opacity: 0.85;
}
.partner-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.partner-logo svg {
  width: 24px;
  height: 24px;
  stroke: var(--muted);
  flex-shrink: 0;
}
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 980px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--apple-blue);
}

/* ── Architecture Diagram ───────────────────── */
.arch-diagram-section {
  padding: 80px 0;
  overflow: hidden;
}
.arch-diagram-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.arch-diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Pulse animation on connection lines */
@keyframes pulse-line {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}
@keyframes float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--apple-blue)); }
  50% { filter: drop-shadow(0 0 16px var(--apple-blue)); }
}

.arch-line {
  stroke-dasharray: 6 4;
  animation: dash-flow 1.5s linear infinite;
}
.arch-line-1 { animation-delay: 0s; }
.arch-line-2 { animation-delay: 0.3s; }
.arch-line-3 { animation-delay: 0.6s; }
.arch-line-4 { animation-delay: 0.9s; }
.arch-line-5 { animation-delay: 1.2s; }

.arch-node {
  transition: transform 0.3s ease;
}
.arch-node:hover {
  transform: scale(1.08);
}
.arch-center-glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 600px) {
  .arch-diagram-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .arch-line { animation: none; }
  .arch-center-glow { animation: none; }
}

/* ── Scroll to Top ──────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--apple-blue);
  border-color: var(--apple-blue);
}
.scroll-top:hover svg {
  stroke: #fff;
}
.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--apple-text);
  transition: stroke 0.2s;
}

/* ── Cookie Consent ─────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-secondary);
  max-width: 600px;
}
.cookie-banner p a {
  color: var(--apple-blue);
  text-decoration: underline;
}
.cookie-btn {
  padding: .6rem 1.5rem;
  border-radius: 980px;
  border: none;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.cookie-btn-accept {
  background: var(--apple-blue);
  color: #fff;
}
.cookie-btn-accept:hover { filter: brightness(1.1); }
