*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html, body { overflow-x: clip; max-width: 100%; }

/* Safety net: prevent any descendant from causing horizontal bleed. */
p, li, td, blockquote, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; word-break: normal; }
table { display: block; max-width: 100%; overflow-x: auto; }
pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; }
iframe, video { max-width: 100%; }
.founder-image-wrap { overflow: visible; }
.founder-image-placeholder { isolation: isolate; }

:root {
  --navy:        #032042;
  --navy-mid:    #0A2D52;
  --navy-light:  #0F3D6E;
  --red:         #C84B22;
  --red-dark:    #9E3918;
  --red-light:   #E05630;
  --orange:      #F07830;
  --orange-light: #F5A060;
  --gold:        #F6B720;
  --gold-light:  #FFCF3A;
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --gray-100:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --text-dark:   #0A1628;
  --font-head:   'Sora', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --max-w:       1200px;
  --radius:      8px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

img { max-width: 100%; display: block; }

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  border-color: var(--red-dark);
  box-shadow: 0 0 28px rgba(200,75,34,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-dark:hover {
  background: var(--red);
  color: var(--white);
}

/* ─── NAV ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 32, 66, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,75,34,0.2);
}
header nav { position: relative; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.825rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta { margin-left: 12px; white-space: nowrap; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle ambient glow behind watermark */
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,75,34,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Watermark logo */
.hero-watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: auto;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 20px 0 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-proof {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat { }
.hero-stat .number {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat .number span { color: var(--red); }
.hero-stat .label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── LOGO BAR ─── */
.logos {
  background: var(--navy-mid);
  border-top: 1px solid rgba(200,75,34,0.2);
  border-bottom: 1px solid rgba(200,75,34,0.2);
  padding: 24px 0;
  overflow: hidden;
}

.logos-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.logos-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  padding: 0 32px 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 0;
  flex-shrink: 0;
}

.logos-track {
  display: flex;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
  animation: logo-scroll 25s linear infinite;
  flex-shrink: 0;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.logos-slide img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.75;
  transition: all var(--transition);
  filter: grayscale(0.3) brightness(1.1);
  flex-shrink: 0;
}
.logos-slide img.logo-wide {
  width: auto;
  max-width: 120px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  filter: none;
  opacity: 0.85;
}
.logos-slide img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.08);
}

/* ─── SECTION BASE ─── */
section { padding: 96px 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  max-width: 640px;
}
.section-title.light { color: var(--white); }

.section-body {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.75;
}
.section-body.light { color: rgba(255,255,255,0.65); }

/* ─── GTM PRESENTATION DESIGN CUES ─── */
/* Card with left-border accent (from GTM deck) */
.accent-card {
  border-left: 4px solid var(--red);
  background: var(--white);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Assertion / pull-quote block */
.assertion-block {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 24px 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gray-600);
}
.dark-section .assertion-block {
  color: rgba(255,255,255,0.75);
  border-color: var(--red-light);
}

/* System bar label (small caps above a section) */
.system-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding: 4px 12px;
  border: 1px solid rgba(200,75,34,0.25);
  border-radius: 2px;
  margin-bottom: 12px;
}

/* Numbered flow node */
.flow-node {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.flow-node-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ─── WATERMARK ─── */
section { position: relative; }
.wm::before {
  content: '';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  aspect-ratio: 300 / 143;
  background: url('brand-assets/jozu-revenue-systems-mark.svg') no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.wm-dark::before {
  content: '';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  aspect-ratio: 300 / 143;
  background: url('brand-assets/jozu-revenue-systems-mark.svg') no-repeat center / contain;
  opacity: 0.09;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}
/* ensure children sit above watermark */
.wm > .container, .wm-dark > .container { position: relative; z-index: 1; }

/* ─── PROBLEM ─── */
.problem {
  background: var(--off-white);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-quote {
  border-left: 4px solid var(--red);
  padding-left: 28px;
  margin-top: 32px;
}
.problem-quote blockquote {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
  font-style: italic;
}

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.problem-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.problem-point .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(200,75,34,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 1.1rem;
}
.problem-point .text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding-top: 8px;
  line-height: 1.65;
}

/* ─── METHODOLOGY ─── */
.methodology {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Hinomaru watermark */
.methodology::after {
  content: '';
  position: absolute;
  right: -200px;
  bottom: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 60px solid rgba(200,75,34,0.04);
  pointer-events: none;
}

.methodology-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.methodology-header .section-title { max-width: 100%; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

/* connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(10% + 16px);
  right: calc(10% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(200,75,34,0.2) 100%);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  transition: all var(--transition);
}
.step:hover .step-number {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px rgba(200,75,34,0.4);
}

.step-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ─── RESULTS ─── */
.results {
  background: var(--white);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.metric-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(200,75,34,0.15);
  transition: all var(--transition);
}
.metric-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(3,32,66,0.15);
}

.metric-number {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.metric-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── CASE STUDIES ─── */
.case-studies {
  background: var(--off-white);
}

.case-studies-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.case-studies-intro {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* Vertical case study list */
.cs-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.cs-item:hover {
  box-shadow: 0 16px 48px rgba(3,32,66,0.09);
}

.cs-sidebar {
  background: var(--navy);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.cs-sidebar::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 32px solid rgba(200,75,34,0.07);
}

.cs-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--red-light);
  opacity: 0.75;
  line-height: 1;
}

.cs-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.cs-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.cs-outcome-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cs-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cs-metric .val {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--red);
}
.cs-metric .lbl {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}

.cs-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-lesson-text {
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  color: var(--gray-400) !important;
}

.cs-section { }
.cs-section.full-width {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.cs-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.cs-text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.cs-lesson {
  background: var(--navy);
  border-radius: 8px;
  padding: 20px 24px;
  grid-column: 1 / -1;
}
.cs-lesson .cs-label { color: var(--gold); }
.cs-lesson .cs-text { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* legacy classes kept for compatibility */
.case-result-pill {
  background: rgba(200,75,34,0.06);
  border: 1px solid rgba(200,75,34,0.15);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
}

@media (max-width: 900px) {
  .cs-item { grid-template-columns: 1fr; }
  .cs-body { grid-template-columns: 1fr; padding: 28px; }
  .cs-section.full-width, .cs-lesson { grid-column: 1; }
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(200,75,34,0.04);
  pointer-events: none;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition);
}
.testi-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(200,75,34,0.3);
}

.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.testi-stars span { color: var(--gold); font-size: 0.9rem; }

.testi-quote {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testi-author {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.testi-name {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}
.testi-title {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ─── FOUNDER ─── */
.founder {
  background: var(--white);
}

.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

.founder-image-wrap {
  position: relative;
}

.founder-image-placeholder {
  aspect-ratio: 4/5;
  background: var(--navy);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.founder-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(200,75,34,0.08);
}

.founder-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-head);
  text-align: center;
}
.founder-badge .big { font-size: 1.5rem; font-weight: 800; display: block; }
.founder-badge .small { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }

.founder-content { }

.founder-name {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.founder-role {
  font-size: 0.9rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.founder-bio {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 28px;
}

.founder-signature-quote {
  background: var(--navy);
  border-radius: 10px;
  padding: 28px 32px;
  position: relative;
}
.founder-signature-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--red);
  line-height: 1;
  opacity: 0.4;
}
.founder-signature-quote p {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--white);
  font-style: italic;
  line-height: 1.65;
}

.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.founder-credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.founder-credential::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ─── JAPAN SECTION ─── */
.japan-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.japan-section::before {
  content: '';
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(200,75,34,0.07);
  border: 2px solid rgba(200,75,34,0.15);
}

.japan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.japan-word {
  font-family: "Ma Shan Zheng", "Noto Serif JP", "Yu Mincho", serif;
  font-size: 8rem;
  font-weight: 400;
  background: linear-gradient(180deg, var(--orange) 0%, var(--red) 40%, rgba(200,75,34,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: -8px;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 0 24px rgba(240,120,48,0.25)) drop-shadow(0 4px 12px rgba(200,75,34,0.15));
  text-shadow: none;
}

.japan-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.japan-point {
  border-left: 3px solid var(--red);
  padding-left: 20px;
}
.japan-point h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.japan-point p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--red);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  max-width: 560px;
}

.cta-band .btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-size: 1rem;
  padding: 16px 36px;
}
.cta-band .btn-white:hover {
  background: var(--off-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ─── CONTACT ─── */
.contact {
  background: var(--navy-mid);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.08);
}
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(200,75,34,0.12);
  border: 1px solid rgba(200,75,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-info-text .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.contact-info-text .value {
  font-size: 0.9375rem;
  color: var(--white);
}

/* ─── FOOTER ─── */
footer {
  background: #010F1F;
  padding: 48px 0;
  border-top: 1px solid rgba(200,75,34,0.15);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 5px 14px;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}


/* ─── SUBPAGE LAYOUT ─── */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,75,34,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero .lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  line-height: 1.75;
}
.page-hero .breadcrumb {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* Content sections for subpages */
.content-section {
  padding: 80px 0;
}
.content-section:nth-child(even) {
  background: var(--off-white);
}
.content-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 32px;
}
.content-section p, .content-section li {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-section ul {
  list-style: none;
  padding: 0;
}
.content-section ul li {
  padding-left: 24px;
  position: relative;
}
.content-section ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  left: 0;
  top: 10px;
}

/* Blog/insights listing */
.insight-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px;
  transition: all var(--transition);
}
.insight-card:hover {
  box-shadow: 0 16px 48px rgba(3,32,66,0.09);
  border-color: var(--red);
}
.insight-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.insight-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.insight-card h3 a { transition: color var(--transition); }
.insight-card h3 a:hover { color: var(--red); }
.insight-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.insight-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 16px;
  transition: gap var(--transition);
}
.insight-card .read-more:hover { gap: 10px; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* Service page specific */
.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.service-feature {
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.service-feature h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.service-feature p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .service-features { grid-template-columns: 1fr; }
}

/* Back-to-home link for subpages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 24px;
  transition: gap var(--transition);
}
.back-link:hover { gap: 10px; }

/* ─── RESPONSIVE ─── */
/* Tablet intermediate: drop 3-col grids to 2-col before mobile collapse */
@media (max-width: 1024px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .case-studies-header { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 900px) {
  .problem-grid,
  .results-grid,
  .founder-grid,
  .japan-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(3, 32, 66, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 2px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a { font-size: 1rem; }
  .nav-cta { display: none; }
  .hero-proof { gap: 28px; }
  .founder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .japan-grid { grid-template-columns: 1fr; gap: 32px; }
  .japan-word { font-size: 4.5rem; letter-spacing: 0.04em; }
  h1 { font-size: 2rem; word-wrap: break-word; overflow-wrap: break-word; }
  h2 { font-size: 1.625rem; word-wrap: break-word; overflow-wrap: break-word; }
  h3 { font-size: 1.25rem; word-wrap: break-word; overflow-wrap: break-word; }
  table, pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; }
  img, svg, video, iframe { max-width: 100%; height: auto; }
}

/* ─── LANGUAGE TOGGLE (global) ─── */
/* .lang-toggle-float — styles now defined inline per-page (see <style> block in index.html). */

/* Japanese font overrides */
body.lang-ja,
body.lang-ja p,
body.lang-ja li,
body.lang-ja span,
body.lang-ja div,
body.lang-ja td,
body.lang-ja th,
body.lang-ja label,
body.lang-ja textarea,
body.lang-ja input,
body.lang-ja select,
body.lang-ja option {
  font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
}
body.lang-ja h1,
body.lang-ja h2,
body.lang-ja h3,
body.lang-ja h4 {
  font-family: 'Noto Sans JP', 'Sora', sans-serif;
  letter-spacing: 0.02em;
}

/* ============================================================
   MOBILE RESPONSIVE FIXES - 2026-05-24
   Hero proof strip, dual CTAs, header logo, engine preview pills.
   ============================================================ */

/* Header logo: smaller on mobile so it doesn't dominate the viewport */
@media (max-width: 768px) {
  .nav-logo img { height: 52px; }
  header nav { padding: 12px 16px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 44px; }
}

/* Hero content: tighten padding + scale typography on mobile */
@media (max-width: 768px) {
  .hero .container { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem) !important; line-height: 1.1 !important; }
  .hero-eyebrow { font-size: 0.72rem !important; letter-spacing: 0.16em !important; }
  .hero-sub, .hero-promise { font-size: 1rem !important; line-height: 1.55 !important; }
}

/* Hero proof strip: 2-col grid -> 1-col on phones */
@media (max-width: 600px) {
  .hero-proof-strip ul {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
  }
}

/* Hero dual CTAs: stack vertically and full-width on small screens */
@media (max-width: 600px) {
  .hero-cta-stack { flex-direction: column; align-items: stretch !important; }
  .hero-cta-stack .btn,
  .hero-cta-stack a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Problem section contrast list: tighter on phone */
@media (max-width: 600px) {
  .problem-contrast li { font-size: 0.95rem !important; padding: 5px 0 !important; }
}

/* Engine preview section: pills already use auto-fit, but tighten padding */
@media (max-width: 768px) {
  #engine-preview { padding: 64px 0 !important; }
  #engine-preview h2 { font-size: 1.5rem !important; }
  #engine-preview .engine-pill { padding: 14px 10px !important; }
  #engine-preview .engine-pill > div:last-child { font-size: 0.78rem !important; }
}

/* Tables that don't naturally fit on mobile - force horizontal scroll on the wrapper */
@media (max-width: 600px) {
  table { font-size: 0.85rem; }
}

/* Generic safety: prevent any element from bleeding wider than viewport */
img, video, svg, iframe, table { max-width: 100%; height: auto; }

/* Touch-friendly tap targets on all buttons */
@media (max-width: 768px) {
  .btn { min-height: 44px; padding: 12px 18px; }
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* CTA in header on mobile may overflow - hide the nav CTA on very small screens, hamburger handles nav */
@media (max-width: 768px) {
  .nav-cta { display: none !important; }
}
/* ============================================================
   STACKED CTA BUTTONS - 2026-05-24
   Prefix line ("Click here to") + bold caps main line.
   Signals button-ness, fits on mobile, scales responsively.
   ============================================================ */

.cta-stacked,
.cta-stacked-secondary {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 14px 24px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
  line-height: 1.15 !important;
  border: none !important;
  cursor: pointer !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: keep-all !important;
  min-height: 64px !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s !important;
}

.cta-stacked {
  background: #e34115 !important;
  color: #ffffff !important;
}
.cta-stacked:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(227,65,21,0.35); }

.cta-stacked-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.32) !important;
}
.cta-stacked-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(201,168,76,0.55) !important; }

.cta-stacked .cta-prefix,
.cta-stacked-secondary .cta-prefix {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
  display: block;
}

.cta-stacked .cta-main,
.cta-stacked-secondary .cta-main {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  white-space: normal;
}

.cta-stacked .cta-arrow,
.cta-stacked-secondary .cta-arrow {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  opacity: 0.92;
}

/* Mobile: full width, smaller caps font, no truncation */
@media (max-width: 600px) {
  .cta-stacked,
  .cta-stacked-secondary {
    width: 100% !important;
    padding: 12px 16px !important;
    min-height: 60px !important;
  }
  .cta-stacked .cta-prefix,
  .cta-stacked-secondary .cta-prefix {
    font-size: 0.60rem !important;
    letter-spacing: 0.16em !important;
  }
  .cta-stacked .cta-main,
  .cta-stacked-secondary .cta-main {
    font-size: 0.86rem !important;
    letter-spacing: 0.04em !important;
  }
}

@media (max-width: 380px) {
  .cta-stacked .cta-main,
  .cta-stacked-secondary .cta-main {
    font-size: 0.78rem !important;
    letter-spacing: 0.03em !important;
  }
}
/* ============================================================
   CTA WITH POINTER - 2026-05-24 (v2)
   Small "Click here to" label + down arrow sits ABOVE the
   colored action button. Cleaner than inline stacked.
   ============================================================ */

.hero-cta-stack {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 22px;
}

.cta-with-pointer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-pointer {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-pointer-arrow {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--gold, #c9a84c);
  animation: cta-arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes cta-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

.cta-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 22px !important;
  background: linear-gradient(135deg, var(--red, #e34115) 0%, #f37444 100%) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.2 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}

.cta-action:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(227,65,21,0.35); }

.cta-action-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
}
.cta-action-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(201,168,76,0.55) !important; }

.cta-action .cta-arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.95;
}

/* Mobile: each pointer-button pair takes full width and stacks */
@media (max-width: 600px) {
  .hero-cta-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .cta-with-pointer {
    width: 100%;
    align-items: center;
  }
  .cta-action {
    width: 100% !important;
    padding: 14px 12px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
  }
  .cta-pointer {
    font-size: 0.56rem !important;
    letter-spacing: 0.16em !important;
  }
}

@media (max-width: 380px) {
  .cta-action { font-size: 0.74rem !important; letter-spacing: 0.03em !important; }
  .cta-pointer { font-size: 0.52rem !important; }
}
/* ============================================================
   AI-POWERED CTA BUTTON - 2026-05-24 (v3)
   Layered animations: shifting gradient base, sweeping sheen,
   pulsing glow halo, breathing inner ring, animated down arrow.
   Feels engineered. Signals "click into the button."
   ============================================================ */

.cta-action {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  background: linear-gradient(135deg, #e34115 0%, #c8350f 50%, #e34115 100%) !important;
  background-size: 200% 200% !important;
  animation: cta-bg-shift 6s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 6px 24px rgba(227,65,21,0.32);
}

/* Animated background gradient */
@keyframes cta-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Sweeping highlight that travels across every few seconds */
.cta-action::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,0.20) 50%,
    transparent 100%);
  transform: skewX(-20deg);
  animation: cta-sheen 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes cta-sheen {
  0%, 60%, 100% { left: -120%; }
  80%           { left: 120%; }
}

/* Pulsing glow halo BEHIND the button */
.cta-action::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 7px;
  background: linear-gradient(135deg, #c9a84c 0%, #e34115 50%, #c9a84c 100%);
  background-size: 200% 200%;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.45;
  animation: cta-halo 3s ease-in-out infinite, cta-bg-shift 6s ease-in-out infinite;
}
@keyframes cta-halo {
  0%, 100% { opacity: 0.35; filter: blur(8px); }
  50%      { opacity: 0.65; filter: blur(14px); }
}

/* Inner content sits above the sheen */
.cta-action > * { position: relative; z-index: 2; }

/* Hover: lift + intensify glow */
.cta-action:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 14px 36px rgba(227,65,21,0.50);
}
.cta-action:hover::after { opacity: 0.85; filter: blur(16px); }

/* Secondary variant: gold-edged outlined, with its own subtle pulse */
.cta-action-secondary {
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid rgba(201,168,76,0.40) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 16px rgba(201,168,76,0.10) !important;
  animation: none !important;
}
.cta-action-secondary::before {
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(201,168,76,0.18) 50%,
    transparent 100%) !important;
}
.cta-action-secondary::after {
  background: linear-gradient(135deg, #c9a84c 0%, rgba(201,168,76,0.4) 100%) !important;
  opacity: 0.18 !important;
  filter: blur(6px) !important;
}
.cta-action-secondary:hover {
  background: rgba(201,168,76,0.08) !important;
  border-color: rgba(201,168,76,0.75) !important;
  box-shadow: 0 8px 24px rgba(201,168,76,0.20) !important;
}
.cta-action-secondary:hover::after { opacity: 0.45 !important; }

/* COOLER DOWN ARROW above the button - bigger, glow trail, color cycle */
.cta-pointer-arrow {
  display: inline-block;
  font-size: 1.15rem !important;
  color: var(--gold, #c9a84c) !important;
  text-shadow:
    0 0 8px rgba(201,168,76,0.55),
    0 0 16px rgba(201,168,76,0.25);
  animation: cta-arrow-trail 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 2px 4px rgba(201,168,76,0.30));
}

@keyframes cta-arrow-trail {
  0%   { transform: translateY(-6px); opacity: 0.0; }
  20%  { opacity: 1.0; }
  60%  { transform: translateY(4px); opacity: 1.0; text-shadow: 0 0 14px rgba(227,65,21,0.65), 0 0 24px rgba(227,65,21,0.30); color: #e34115; }
  80%  { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(-6px); opacity: 0.0; }
}

/* Pointer label */
.cta-pointer {
  font-family: 'Poppins', sans-serif;
  font-size: 0.56rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
}

/* Mobile sizing */
@media (max-width: 600px) {
  .cta-action {
    width: 100% !important;
    padding: 14px 12px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
  }
  .cta-pointer { font-size: 0.52rem !important; letter-spacing: 0.24em !important; }
  .cta-pointer-arrow { font-size: 1rem !important; }
}
@media (max-width: 380px) {
  .cta-action { font-size: 0.74rem !important; }
  .cta-pointer { font-size: 0.48rem !important; }
}

/* Honor users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-action, .cta-action::before, .cta-action::after, .cta-pointer-arrow {
    animation: none !important;
  }
}
/* ============================================================
   CTA mobile overflow guard - 2026-05-24 (v3.1)
   The glow halo on .cta-action::after uses inset:-4px and the
   sweep pseudo can extend outside on small viewports. Give the
   button stack breathing room so nothing bleeds past the page.
   ============================================================ */

@media (max-width: 600px) {
  .hero-cta-stack {
    padding: 0 14px;
    box-sizing: border-box;
    max-width: 100%;
  }
  .cta-with-pointer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cta-action {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Cut the halo's outside spill so it stays inside the viewport */
  .cta-action::after {
    inset: 0 !important;
    filter: blur(6px) !important;
    opacity: 0.30 !important;
  }
  /* Tighten the sweep so it doesn't extend past the button edges */
  .cta-action {
    overflow: hidden !important;
  }
}
/* ============================================================
   CTA mobile containment v3.2 - 2026-05-24
   Force box-sizing + padding so buttons never bleed past viewport.
   ============================================================ */

@media (max-width: 600px) {
  .hero-cta-stack {
    padding: 0 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .cta-with-pointer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cta-action,
  .cta-action.cta-action-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 10px !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .cta-action::after { inset: 0 !important; }
  .cta-action::before { left: -120% !important; width: 60% !important; }
}