/* ============================================
   AMAZE INTERNET - GLOBAL STYLESHEET
   Now with light + dark theme support
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   THEME TOKENS
   Default = DARK theme. Light theme via [data-theme="light"]
   ============================================ */
:root,
:root[data-theme="dark"] {
  --bg-primary: #0A0B0F;
  --bg-secondary: #12141C;
  --bg-tertiary: #1A1D2A;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --accent-primary: #FF4D2E;
  --accent-secondary: #C6FF3D;
  --accent-brand: #1976D2;
  --accent-brand-light: #4D9FE8;

  --text-primary: #FFFFFF;
  --text-secondary: #B4B7C5;
  --text-muted: #6B7080;
  --text-dim: #4A4E5C;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.3);

  --nav-bg: rgba(10, 11, 15, 0.7);
  --nav-bg-scrolled: rgba(10, 11, 15, 0.9);

  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.5);
  --grain-opacity: 0.6;
  --grain-blend: overlay;

  --logo-img: url('../images/logo-nav-dark.png');
}

:root[data-theme="light"] {
  --bg-primary: #FBFBFD;
  --bg-secondary: #F4F5F9;
  --bg-tertiary: #EDEEF4;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);

  --accent-primary: #E63B1A;
  --accent-secondary: #7BB800;
  --accent-brand: #1976D2;
  --accent-brand-light: #1565C0;

  --text-primary: #0F1118;
  --text-secondary: #4A4E5C;
  --text-muted: #6B7080;
  --text-dim: #8A8E9C;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-strong: rgba(0, 0, 0, 0.3);

  --nav-bg: rgba(251, 251, 253, 0.75);
  --nav-bg-scrolled: rgba(251, 251, 253, 0.95);

  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.15);
  --grain-opacity: 0.3;
  --grain-blend: multiply;

  --logo-img: url('../images/logo-nav-light.png');
}

/* Smooth theme transitions */
html, body, .nav, .footer, .card, .btn, .plan-card, .leader-card, .group-card,
.case-card, .post-card, .platform-card, .why-join-card, .quick-card,
.office-detail-card, .hours-card, .contact-form, .apply-form, .faq-item,
.brand-card, .tld-card, .service-tile, .big-card, .dropdown, .marquee,
.cta-section, .stats-grid, .global-map-wrap, .culture-band, .reporting-band,
.global-item, .featured-post, .map-band {
  transition-property: background-color, border-color, color;
  transition-duration: 0.25s;
}

/* ============================================
   FONTS & GLOBAL VARS
   ============================================ */
:root {
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1280px;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-1 { font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; }
.display-2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; }
.display-3 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-brand);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section { padding: var(--section-pad) 0; position: relative; }
.section-tight { padding: clamp(3rem, 5vw, 5rem) 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-brand-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(25, 118, 210, 0.5);
}

.btn-accent {
  background: var(--accent-primary);
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(255, 77, 46, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  background: var(--bg-card-hover);
}

.btn-arrow::after { content: '→'; transition: transform 0.3s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Mobile button refinements: prevent awkward stretching of long-text buttons.
   On narrow viewports, allow wrapping and tighten padding so buttons feel
   right-sized rather than overstretched. */
@media (max-width: 600px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Buttons with arrows: keep arrow tight to text instead of pushed to the edge */
  .btn-arrow::after {
    margin-left: 0.15rem;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, border-color 0.3s;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-brand);
}

.nav-links .has-dropdown { position: relative; }

.nav-links .has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-group { padding: 0.5rem 0; }

.dropdown-group + .dropdown-group {
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.dropdown-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0 0.75rem 0.5rem;
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dropdown a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-brand);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

:root .theme-toggle .sun-icon { display: block; }
:root .theme-toggle .moon-icon { display: none; }
:root[data-theme="light"] .theme-toggle .sun-icon { display: none; }
:root[data-theme="light"] .theme-toggle .moon-icon { display: block; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-brand);
}

.menu-toggle svg {
  display: block;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }

  /* Reduce nav side padding on mobile so buttons get breathing room */
  .nav { padding: 0.85rem 1rem; }

  /* Smaller logo on mobile to keep header compact */
  .logo,
  .logo img { height: 28px; }

  /* Tighter spacing between theme toggle and hamburger on mobile */
  .nav-cta { gap: 0.5rem; }

  /* Match hamburger to theme toggle's circular shape for visual consistency */
  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
}

/* Mobile menu — proper 3-row layout: fixed header, scrollable content, sticky CTA footer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  /* Use dvh for proper mobile viewport sizing (handles iOS dynamic toolbar) */
  height: 100vh;
  height: 100dvh;
}

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

/* Top bar inside the mobile menu — logo + close */
.mobile-menu-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.mobile-menu-header .logo img {
  height: 32px;
  width: auto;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-brand);
}

/* Scrollable content area — takes all remaining vertical space */
.mobile-menu-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.5rem;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-menu a:hover { color: var(--accent-brand); }

/* Section labels (non-clickable) for grouped menu items */
.mobile-menu-label {
  display: block;
  padding: 1.25rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-menu .sub-links {
  padding-left: 0;
  margin: 0 0 0.5rem;
  gap: 0;
}

.mobile-menu .sub-links a {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.7rem 0;
}

.mobile-menu .sub-links a:hover { color: var(--accent-brand); }

/* Sticky CTA footer */
.mobile-menu-footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.mobile-menu-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo img { height: 36px; }

.footer-brand p {
  color: var(--text-secondary);
  margin: 1rem 0;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-brand);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-offices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.office-card {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.office-card strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.office-flag { display: inline-block; margin-right: 0.4rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.socials { display: flex; gap: 0.75rem; }

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.socials a:hover {
  border-color: var(--accent-brand);
  background: var(--accent-brand);
  color: #fff;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-brand) 0%, var(--accent-brand-light) 100%);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-brand);
}

.card-link::after { content: '→'; transition: transform 0.2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ============================================
   PAGE HERO (reusable)
   ============================================ */
.page-hero {
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

:root[data-theme="light"] .page-hero::before {
  background: radial-gradient(circle, rgba(25, 118, 210, 0.1) 0%, transparent 60%);
}

.page-hero h1 { margin: 1.5rem 0; max-width: 900px; }
.page-hero .lead { max-width: 700px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a:hover { color: var(--text-primary); }

/* ============================================
   STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: center; padding: 1rem; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-num.accent {
  background: linear-gradient(180deg, var(--accent-brand) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { max-width: 800px; margin-bottom: 3rem; }
.section-header h2 { margin: 1rem 0; }

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-brand);
  background: var(--bg-card-hover);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   PRICING / FEATURE LIST
   ============================================ */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.plan-card.featured {
  border-color: var(--accent-brand);
  background: linear-gradient(180deg, rgba(25, 118, 210, 0.08) 0%, transparent 100%);
}

.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-brand);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.plan-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }

.plan-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-brand);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.plan-price small { font-size: 0.875rem; color: var(--text-muted); font-weight: 400; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
  border: 1px solid var(--border-subtle);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(25, 118, 210, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 77, 46, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section > * { position: relative; z-index: 1; }

.cta-section h2 {
  margin: 1rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
  color: #fff;
}

.whatsapp-float:hover { transform: scale(1.1) rotate(8deg); }

.whatsapp-float svg { width: 28px; height: 28px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.fade-in { animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-accent { color: var(--accent-primary); }
.text-lime { color: var(--accent-secondary); }
.text-brand { color: var(--accent-brand); }
.text-muted { color: var(--text-muted); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent-brand) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-mesh {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 50px 50px;
}

.divider { height: 1px; background: var(--border-subtle); margin: 4rem 0; }

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.marquee-track span { display: flex; align-items: center; gap: 4rem; }

.marquee-track span::after {
  content: '◆';
  color: var(--accent-brand);
  font-size: 0.8em;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(25, 118, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0); }
}

/* ============================================
   RELATED LINKS BLOCK (Internal linking)
   Used at bottom of every page to interlink the site
   ============================================ */
.related-links {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.related-links-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.related-links-header h3 { font-size: 1.75rem; }

.related-links-header span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.related-card:hover {
  border-color: var(--accent-brand);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.related-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.related-card-content { flex: 1; min-width: 0; }

.related-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.related-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.related-card-arrow {
  color: var(--accent-brand);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.related-card:hover .related-card-arrow { transform: translateX(4px); }

/* ============================================
   BLOG POST PAGE STYLES
   ============================================ */
.post-hero {
  padding: 9rem 0 3rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

/* Constrain hero content to match the body width (760px) for visual alignment.
   Force block display so inline elements (like span.post-cat) also get the
   max-width / centering treatment. */
.post-hero > .container > * {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* The byline needs flex layout to keep author/dots/date/read-time on one row.
   Override the display: block from above but keep the width constraint. */
.post-hero > .container > .post-byline {
  display: flex;
}

.post-hero .breadcrumb {
  margin-bottom: 1.5rem;
}

.post-hero .post-cat {
  margin-bottom: 1rem;
}

.post-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.post-hero .post-deck {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 2rem;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-brand), var(--accent-brand-light));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.post-author strong {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}

.post-author span {
  font-size: 0.75rem;
}

.post-byline-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* The article body */
.post-body {
  padding: 4rem 0;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.post-content > * + * {
  margin-top: 1.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.post-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-content h2 + p,
.post-content h3 + p {
  margin-top: 0;
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  color: var(--text-primary);
}

.post-content a:not(.btn) {
  color: var(--accent-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-content a:not(.btn):hover {
  color: var(--accent-brand-light);
}

/* Buttons inside post content keep their button styling */
.post-content a.btn {
  text-decoration: none;
}
.post-content a.btn-primary {
  color: #fff;
}
.post-content a.btn-accent {
  color: #fff;
}
.post-content a.btn-ghost {
  color: var(--text-primary);
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.post-content ul li::marker {
  color: var(--accent-brand);
}

.post-content blockquote {
  border-left: 3px solid var(--accent-brand);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2rem 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.post-content code {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-primary);
}

.post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 3rem 0;
}

.post-content .callout {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--accent-brand);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.65;
}

.post-content .callout strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-brand);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.post-content .stat-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}

.post-content .stat-callout-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-brand);
}

.post-content .stat-callout-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Compare table for blog posts */
.post-content .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.post-content .compare-table th,
.post-content .compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.post-content .compare-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-medium);
}

.post-content .compare-table tr:hover td {
  background: var(--bg-card);
}

/* End-of-article author block */
.post-author-block {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.post-author-block .post-author-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
}

.post-author-block strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.post-author-block .author-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-brand);
  margin-bottom: 0.75rem;
  display: block;
}

.post-author-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Inline CTA blocks within articles */
.post-content .inline-cta {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.post-content .inline-cta h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.post-content .inline-cta p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.post-content .inline-cta .btn {
  text-decoration: none;
}

/* Related posts at bottom of article */
.related-posts {
  max-width: var(--container-max);
  margin: 6rem auto 0;
  padding: 0 1.5rem;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}
