/* ============ Base ============ */
* { scroll-behavior: smooth; }

html, body {
  background-color: #EAF3FF;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #EAF3FF 0%, #DCEAFB 35%, #C7DFFB 70%, #D6E8FC 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection {
  background: rgba(47, 111, 237, 0.25);
  color: #0F1B33;
}

:focus-visible {
  outline: 2px solid #2F6FED;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Nav ============ */
#site-nav.nav-scrolled {
  background: rgba(234, 243, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 27, 51, 0.06), 0 8px 24px -16px rgba(15, 27, 51, 0.15);
}

#nav-cta.nav-cta-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============ Buttons (pill) ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2F6FED;
  color: #ffffff;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 10px 24px -8px rgba(47, 111, 237, 0.55), 0 2px 6px rgba(47, 111, 237, 0.25);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #3B7CFF;
  box-shadow: 0 14px 30px -8px rgba(47, 111, 237, 0.6), 0 4px 10px rgba(47, 111, 237, 0.3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2F6FED;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  border: 1.5px solid rgba(47, 111, 237, 0.35);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, transform 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: rgba(47, 111, 237, 0.6);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

/* ============ Typography helpers ============ */
.eyebrow {
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2F6FED;
  margin-bottom: 0.9rem;
}

.section-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: #0F1B33;
}

.section-sub {
  margin-top: 1rem;
  color: #48566E;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42rem;
}

/* ============ Live dot ============ */
.live-dot {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(47, 111, 237, 0.7);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ============ Hero background ============ */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.wordmark {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 16vw, 15rem);
  letter-spacing: 0.02em;
  color: #0F1B33;
  opacity: 0.045;
  white-space: nowrap;
  user-select: none;
}

.frost-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(255,255,255,0.85), rgba(199,223,251,0.35));
  backdrop-filter: blur(2px);
  box-shadow: 0 20px 45px -12px rgba(47, 111, 237, 0.35), inset 0 2px 6px rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.6);
}
.frost-drop-1 {
  width: 64px; height: 82px;
  border-radius: 50% 50% 50% 4%;
  top: 12%;
  right: 12%;
  animation: floatY 7s ease-in-out infinite;
}
.frost-drop-2 {
  width: 38px; height: 50px;
  border-radius: 50% 50% 4% 50%;
  bottom: 18%;
  left: 6%;
  animation: floatY 8.5s ease-in-out infinite reverse;
}
.frost-star {
  position: absolute;
  top: 30%;
  left: 4%;
  width: 34px; height: 34px;
  background: none;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  animation: floatY 6s ease-in-out infinite, spin 16s linear infinite;
  color: rgba(47, 111, 237, 0.4);
}
.frost-star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 6px 10px rgba(47,111,237,0.25));
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ Hero phone composition ============ */
.hero-phones {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hardware layer: an 8K photoreal phone render (assets/phone-hero.png) reused for
   both phones via CSS transform. Its screen area is a punched-out transparent hole
   (see /scratchpad phone-gen/process.py) so the live HTML overlay below sits exactly
   inside the bezel with nothing baked into the image. */
.phone-mock {
  position: absolute;
  width: 230px;
  aspect-ratio: 822 / 1730;
  filter: drop-shadow(0 30px 45px rgba(15, 27, 51, 0.35));
}
.phone-mock-back {
  transform: translate(58px, -30px) rotate(6deg);
  opacity: 0.92;
  z-index: 1;
}
.phone-mock-front {
  transform: translate(-58px, 30px) rotate(-6deg);
  z-index: 2;
}
.phone-mock-hw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}
.phone-mock-screen {
  /* Positioned to match the transparent screen hole detected in phone-hero.png:
     left 5.60% / top 2.02% / width 89.05% / height 95.90% of the cropped render. */
  position: absolute;
  left: 5.6%;
  top: 2.02%;
  width: 89.05%;
  height: 95.9%;
  background: linear-gradient(180deg, #F4F9FF, #EAF3FF);
  border-radius: 11% / 5.2%;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  z-index: 4;
}
.phone-mock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #7C8AA3;
  text-align: center;
  margin-bottom: 0.25rem;
}
.phone-mock-bubble {
  background: #ffffff;
  border: 1px solid rgba(47,111,237,0.18);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 20px -10px rgba(15,27,51,0.15);
}
.phone-mock-sender {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2F6FED;
  margin-bottom: 0.2rem;
}
.phone-mock-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #0F1B33;
}
.phone-mock-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #48566E;
  margin-bottom: 0.25rem;
}
.phone-mock-line {
  font-size: 0.75rem;
  line-height: 1.45;
  padding: 0.55rem 0.75rem;
  border-radius: 13px;
  max-width: 90%;
}
.phone-mock-line-caller {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15,27,51,0.08);
  border-bottom-left-radius: 4px;
  color: #0F1B33;
}
.phone-mock-line-nova {
  align-self: flex-end;
  background: rgba(47,111,237,0.14);
  border: 1px solid rgba(47,111,237,0.28);
  border-bottom-right-radius: 4px;
  color: #0F1B33;
}
.phone-mock-wave {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 26px;
}
.phone-mock-wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5C93FF, #2F6FED);
  animation: wave 1.6s ease-in-out infinite;
}
.phone-mock-wave span:nth-child(odd) { animation-delay: -0.2s; }
.phone-mock-wave span:nth-child(3n) { animation-delay: -0.6s; }
.phone-mock-wave span:nth-child(4n) { animation-delay: -1.0s; }
@keyframes wave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50% { height: 22px; opacity: 1; }
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Soft shadow card base ============ */
.card-soft {
  background: rgba(255,255,255,0.75);
  border-radius: 20px;
  box-shadow: 0 20px 45px -20px rgba(15, 27, 51, 0.18), 0 2px 8px rgba(15,27,51,0.04);
}

.shadow-soft-sm {
  box-shadow: 0 6px 18px -8px rgba(15, 27, 51, 0.12);
}

/* ============ Stat cards (problem section) ============ */
.stat-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 20px 45px -22px rgba(15, 27, 51, 0.2), 0 2px 8px rgba(15,27,51,0.04);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -20px rgba(47,111,237,0.28);
}
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4rem);
  color: #2F6FED;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-label {
  margin-top: 0.75rem;
  color: #48566E;
  font-size: 0.9375rem;
}

.stat-strip {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  border-radius: 28px;
  padding: 2.75rem 2rem;
  box-shadow: 0 20px 45px -22px rgba(15, 27, 51, 0.18);
}

.stat-number-sm {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #2F6FED;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-label-sm {
  margin-top: 0.6rem;
  color: #48566E;
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 14rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Feature callout ============ */
.feature-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(47,111,237,0.06);
  border: 1px solid rgba(47,111,237,0.16);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
}

/* ============ Live call card ============ */
.call-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -24px rgba(15, 27, 51, 0.25), 0 2px 10px rgba(15,27,51,0.05);
}
.call-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(15,27,51,0.08);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(47,111,237,0.1);
  border: 1px solid rgba(47,111,237,0.28);
  color: #2F6FED;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}
#call-timer {
  font-variant-numeric: tabular-nums;
  min-width: 2.5em;
  display: inline-block;
}

.call-transcript {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 280px;
}
.transcript-line {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: lineIn 0.35s ease forwards;
}
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}
.transcript-line .who {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  opacity: 0.6;
}
.line-caller {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15,27,51,0.08);
  border-bottom-left-radius: 4px;
  color: #0F1B33;
  box-shadow: 0 6px 16px -10px rgba(15,27,51,0.15);
}
.line-nova {
  align-self: flex-end;
  background: rgba(47,111,237,0.12);
  border: 1px solid rgba(47,111,237,0.3);
  border-bottom-right-radius: 4px;
  color: #0F1B33;
}
.line-system {
  align-self: center;
  background: transparent;
  border: 1px dashed rgba(15,27,51,0.2);
  color: #7C8AA3;
  font-style: italic;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
}

.typing-indicator {
  display: inline-flex;
  gap: 3px;
  align-self: flex-end;
  padding: 0.7rem 0.9rem;
  background: rgba(47,111,237,0.12);
  border: 1px solid rgba(47,111,237,0.3);
  border-radius: 16px;
  border-bottom-right-radius: 4px;
}
.typing-indicator span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2F6FED;
  animation: typingDot 1.1s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.summary-card {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15,27,51,0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.summary-card.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.lead-tag {
  background: rgba(47,111,237,0.14);
  color: #2F6FED;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

/* ============ Stepper ============ */
.stepper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.stepper-track {
  display: none;
}
@media (min-width: 768px) {
  .stepper {
    grid-template-columns: repeat(3, 1fr);
  }
  .stepper-track {
    display: block;
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 0;
    border-top: 2px dotted rgba(47, 111, 237, 0.4);
    z-index: 0;
  }
}
.step-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 20px 45px -24px rgba(15, 27, 51, 0.2);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(47,111,237,0.28);
}
.step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, #5C93FF, #2F6FED);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 10px 20px -8px rgba(47,111,237,0.5);
}
.step-icon {
  width: 56px;
  height: 56px;
  margin-top: 1.25rem;
  object-fit: contain;
  border-radius: 12px;
}
.step-title {
  margin-top: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0F1B33;
  line-height: 1.35;
}
.step-body {
  margin-top: 0.75rem;
  color: #48566E;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ============ Industry cards ============ */
.industry-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 1.75rem;
  cursor: default;
  box-shadow: 0 18px 40px -24px rgba(15, 27, 51, 0.2);
  transition: transform 250ms cubic-bezier(0.4,0,0.2,1), box-shadow 250ms ease, background 250ms ease;
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -20px rgba(47,111,237,0.3);
  background: rgba(255,255,255,0.9);
}
.industry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(155deg, #E4EEFF, #C7DFFB);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), 0 8px 18px -10px rgba(47,111,237,0.4);
}
.industry-icon {
  width: 24px; height: 24px;
  color: #2F6FED;
}
.industry-name {
  margin-top: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0F1B33;
}
.industry-hook {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #48566E;
}

/* ============ Phone frame (SMS mockup) ============ */
.phone-frame {
  width: 280px;
  border-radius: 40px;
  background: #0F1B33;
  box-shadow: 0 30px 60px -20px rgba(15,27,51,0.35), inset 0 0 0 6px #16233f;
  padding: 14px 14px 24px;
  position: relative;
}
.phone-notch {
  width: 90px;
  height: 20px;
  background: #0F1B33;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
}
.phone-screen {
  background: linear-gradient(180deg, #F4F9FF, #EAF3FF);
  border-radius: 26px;
  padding: 1.5rem 1rem;
  min-height: 260px;
}
.phone-timestamp {
  text-align: center;
  font-size: 0.6875rem;
  color: #7C8AA3;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.25rem;
}
.sms-bubble {
  background: #ffffff;
  border: 1px solid rgba(47,111,237,0.2);
  border-radius: 18px;
  border-top-left-radius: 4px;
  padding: 0.85rem 1rem;
  max-width: 90%;
  box-shadow: 0 8px 20px -10px rgba(15,27,51,0.12);
}
.sms-sender {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2F6FED;
  margin-bottom: 0.3rem;
}
.sms-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #0F1B33;
}

.detail-card {
  width: 280px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px -24px rgba(15, 27, 51, 0.2);
}
.urgency-tag {
  display: inline-block;
  background: rgba(244, 63, 94, 0.1);
  color: #E11D48;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* ============ FAQ / Objections ============ */
.faq-item {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 36px -22px rgba(15, 27, 51, 0.2);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #0F1B33;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 18px; height: 18px;
  color: #2F6FED;
  flex-shrink: 0;
  transition: transform 250ms ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  margin-top: 0.9rem;
  color: #48566E;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ============ Cost comparison closer glow ============ */
.closer-glow {
  position: absolute;
  width: 700px; height: 700px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47,111,237,0.16), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

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

/* ============ Small screens: hero phones ============ */
@media (max-width: 1023px) {
  .hero-phones {
    height: 380px;
    margin-top: 2rem;
  }
  .phone-mock {
    width: 190px;
  }
  .phone-mock-back { transform: translate(40px, -20px) rotate(6deg); }
  .phone-mock-front { transform: translate(-40px, 20px) rotate(-6deg); }
}

@media (max-width: 639px) {
  .hero-phones {
    height: 340px;
  }
  .phone-mock {
    width: 160px;
  }
  .phone-mock-back { transform: translate(28px, -14px) rotate(6deg); }
  .phone-mock-front { transform: translate(-28px, 14px) rotate(-6deg); }
  .wordmark { font-size: clamp(4rem, 24vw, 7rem); }
}
