/* =========================================================
   TOKENS & RESET
========================================================= */
:root {
  --blue-primary:  #2B5AB8;
  --blue-dark:     #1A3080;
  --blue-light:    #8A9FD4;
  --blue-pale:     #EBF0FB;
  --blue-gradient: linear-gradient(135deg, #1A3080 0%, #2B5AB8 60%, #8A9FD4 100%);
  --black:         #0D0D0D;
  --gray-900:      #1A1A2E;
  --gray-700:      #374151;
  --gray-500:      #6B7280;
  --gray-300:      #D1D5DB;
  --gray-100:      #F4F6FA;
  --white:         #FFFFFF;
  --red-light:     #FEF2F2;
  --red:           #EF4444;

  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(27,48,128,.12);
  --shadow-lg:     0 12px 40px rgba(27,48,128,.16);
  --transition:    0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; color: var(--white); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; color: var(--black); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--black); }
h4 { font-size: 1rem; font-weight: 600; color: var(--black); }
h5 { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-primary);
  background: var(--blue-pale);
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* =========================================================
   LAYOUT
========================================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .eyebrow { display: inline-block; }
.section-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
}
.section-header.center .section-sub { margin: 1rem auto 0; }

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(43,90,184,.35);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(43,90,184,.45); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}
.btn-outline:hover { background: var(--blue-pale); }

.btn-white {
  background: var(--white);
  color: var(--blue-primary);
  font-weight: 700;
}
.btn-white:hover { background: var(--blue-pale); transform: translateY(-1px); }

.btn-nav {
  background: var(--blue-primary);
  color: var(--white) !important;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
}
.btn-nav:hover { background: var(--blue-dark); }

.btn-full { width: 100%; justify-content: center; }

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo { height: 44px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--blue-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  padding: 160px 0 0;
  overflow: hidden;
  background: var(--blue-gradient);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(138,159,212,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(43,90,184,.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-text .eyebrow { background: rgba(255,255,255,.15); color: var(--white); }

h1 .highlight {
  background: linear-gradient(90deg, #8A9FD4, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }

.phone-mockup {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 4px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
}

.phone-screen {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}

.call-ui { padding: 24px; }

.call-avatar {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
}
.call-avatar svg { width: 100%; height: 100%; }

.call-label {
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--black);
}

.call-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: #16a34a;
  margin: 6px 0 16px;
}
.call-status::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.call-transcript {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .8rem;
  line-height: 1.45;
}

.transcript-line {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 90%;
}
.transcript-line.agent {
  background: var(--blue-pale);
  color: var(--blue-dark);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.transcript-line.rider {
  background: var(--blue-primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.call-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-300);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-primary);
}
.stat-label {
  font-size: .7rem;
  color: var(--gray-500);
  display: block;
}

.hero-wave {
  margin-bottom: -2px;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* =========================================================
   PROOF BAR
========================================================= */
.proof-bar {
  background: var(--gray-100);
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-300);
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 40px;
}
.proof-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
}
.proof-label {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

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

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.problem-icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
}
.problem-icon svg { width: 100%; height: 100%; }

.problem-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.problem-card p  { font-size: .9rem; color: var(--gray-500); line-height: 1.55; }

/* =========================================================
   SOLUTIONS
========================================================= */
.solutions { background: var(--gray-100); }

.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card.featured { border-color: var(--blue-primary); border-width: 2px; }

.product-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--blue-primary);
  color: var(--white);
  margin-bottom: 20px;
  width: fit-content;
}
.product-badge.sms { background: var(--blue-light); }

.product-icon-wrap {
  width: 56px; height: 56px;
  margin-bottom: 16px;
}
.product-icon-wrap svg { width: 100%; height: 100%; }

.product-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.product-tagline { font-size: .85rem; color: var(--blue-primary); font-weight: 600; margin-bottom: 12px; }
.product-desc { font-size: .9rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 20px; }

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.45;
}
.product-features .check {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.together-callout {
  background: var(--blue-gradient);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}
.together-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.together-icon svg { width: 24px; height: 24px; }
.together-text strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.together-text p { font-size: .88rem; opacity: .9; line-height: 1.5; }

/* =========================================================
   HOW IT WORKS
========================================================= */
.how-it-works { background: var(--white); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step-content h3 { margin-bottom: 8px; font-size: 1rem; }
.step-content p  { font-size: .875rem; color: var(--gray-500); line-height: 1.55; }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  flex-shrink: 0;
}
.step-connector svg { width: 24px; height: 24px; }

/* =========================================================
   WHY UDI
========================================================= */
.why-udi { background: var(--gray-100); }

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

.why-text .eyebrow { display: inline-block; }
.why-text h2 { margin: .5rem 0 1.25rem; }
.why-text p  { color: var(--gray-500); line-height: 1.7; margin-bottom: 1rem; }
.why-text .btn { margin-top: .5rem; }

.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.pillar:hover { box-shadow: var(--shadow-md); }

.pillar-icon { width: 40px; height: 40px; flex-shrink: 0; }
.pillar-icon svg { width: 100%; height: 100%; }

.pillar-text h4 { margin-bottom: 4px; }
.pillar-text p  { font-size: .85rem; color: var(--gray-500); line-height: 1.5; }

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials { background: var(--white); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-left: 4px solid var(--blue-primary);
  position: relative;
}

.quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue-light);
  font-family: Georgia, serif;
  margin-bottom: 4px;
}

.testimonial-card p {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2px solid var(--blue-light);
}

.testimonial-source strong { display: block; font-size: .85rem; color: var(--black); }
.testimonial-source span  { font-size: .78rem; color: var(--gray-500); }

/* =========================================================
   CTA BANNER
========================================================= */
.cta-banner {
  background: var(--blue-gradient);
  padding: 72px 0;
}

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

.cta-text h2 { color: var(--white); margin-bottom: .5rem; }
.cta-text p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* =========================================================
   CONTACT
========================================================= */
.contact { background: var(--white); }

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

.contact-info .eyebrow { display: inline-block; }
.contact-info h2 { margin: .5rem 0 1rem; }
.contact-info > p { color: var(--gray-500); line-height: 1.7; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--gray-700);
}
.contact-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-item a { color: var(--blue-primary); transition: color var(--transition); }
.contact-item a:hover { color: var(--blue-dark); }

/* Form */
.contact-form-wrap {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.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; }

label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
}

input, select, textarea {
  font-family: var(--font);
  font-size: .9rem;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(43,90,184,.12);
}
input::placeholder, textarea::placeholder { color: var(--gray-300); }

textarea { resize: vertical; min-height: 100px; }

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236B7280' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px; padding-right: 2.5rem; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding: 64px 24px 48px;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .85rem; line-height: 1.6; max-width: 320px; }

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h5 {
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); }

/* =========================================================
   ANIMATIONS
========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .hero-content    { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual     { display: none; }
  .product-cards   { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner    { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom .container { flex-direction: column; gap: 4px; }
  .steps           { flex-direction: column; align-items: center; }
  .step-connector  { transform: rotate(90deg); padding: 8px 0; }
  .proof-divider   { display: none; }
  .proof-stat      { padding: 12px 20px; }
}

@media (max-width: 640px) {
  section          { padding: 64px 0; }
  .hero            { padding: 120px 0 0; }
  .hero-content    { padding-bottom: 48px; }
  .cta-inner       { flex-direction: column; text-align: center; }
  .form-row        { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-links    { flex-direction: column; gap: 28px; }
  .together-callout { flex-direction: column; text-align: center; }
  .main-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open   { display: block; }
  .main-nav ul     { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-toggle      { display: flex; }
  .btn-nav         { margin-top: .5rem; }
}
