/* ============================================
   SHYPKART — Design tokens
   ============================================ */
:root {
  /* Color */
  --navy:        #0a3d91;
  --blue:        #1e88e5;
  --blue-light:  #5fb1f0;
  --red-deep:    #8b0000;
  --red:         #e30613;
  --red-light:   #ff6a6a;
  --ink:         #0f1620;
  --ink-soft:    #4a5568;
  --paper:       #f7f9fc;
  --paper-alt:   #eef2f8;
  --white:       #ffffff;
  --border:      #e2e8f0;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 22, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 22, 32, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 61, 145, 0.16);

  --container: 1200px;
}

/* ============================================
   Reset
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Splash / intro screen
   ============================================ */
html.splash-active,
html.splash-active body {
  overflow: hidden;
  height: 100%;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.splash-mark {
  position: relative;
  width: min(46vw, 360px);
  aspect-ratio: 1678 / 937;
}

.splash-half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
}

.splash-half--top {
  /* Blue piece: enters from the right */
  transform: translateX(120vw);
  animation: splash-slide-right 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.splash-half--bottom {
  /* Red piece: enters from the left */
  transform: translateX(-120vw);
  animation: splash-slide-left 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes splash-slide-right {
  to { transform: translateX(0); }
}
@keyframes splash-slide-left {
  to { transform: translateX(0); }
}

/* Whole mark holds, then shrinks + fades to reveal the site */
.splash.is-leaving .splash-mark {
  animation: splash-shrink 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes splash-shrink {
  to { transform: scale(0.6); opacity: 0; }
}

.splash.is-leaving {
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 0;
}

.splash.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .splash-half--top, .splash-half--bottom {
    animation: none !important;
    transform: none !important;
  }
  .splash.is-leaving .splash-mark {
    animation: none !important;
  }
  .splash.is-leaving { opacity: 0; }
}


.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 45%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 560px;
  margin: 0 0 48px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(95deg, var(--navy), var(--blue));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Inside header-actions specifically, Sign up's own background is hidden —
   the moving .hover-pill behind it provides the color instead. */
.header-actions .btn-primary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.header-actions .btn-primary:hover {
  color: var(--white);
  transform: none;
  box-shadow: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-text { color: var(--ink); padding: 11px 14px; }
.header-actions .btn-text:hover { color: var(--white); }
.btn-ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-lockup {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 4px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}
.nav-link:hover { color: var(--ink); transform: translateY(-1px); }
.chev { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

.nav-item.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s ease;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.nav-item.has-dropdown:hover .chev { transform: rotate(180deg); }
.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--paper-alt);
  margin-bottom: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: bubble-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dropdown-item:last-child { margin-bottom: 0; }
.dropdown-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.dropdown-item:nth-child(1) { animation-delay: 0.02s; }
.dropdown-item:nth-child(2) { animation-delay: 0.06s; }
.dropdown-item:nth-child(3) { animation-delay: 0.10s; }
.dropdown-item:nth-child(4) { animation-delay: 0.14s; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dd-title { font-weight: 600; font-size: 0.9rem; }
.dd-desc { font-size: 0.8rem; color: var(--ink-soft); }

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hover-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-sm);
  background: linear-gradient(95deg, var(--navy), var(--blue));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  z-index: 0;
}

.header-actions [data-pill] {
  position: relative;
  z-index: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: var(--paper);
}
.hero-ribbon {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-ribbon svg { width: 100%; height: 100%; }
.hero-ribbon path.ribbon-blue {
  fill: var(--blue);
  opacity: 0.14;
}
.hero-ribbon path.ribbon-red {
  fill: var(--red);
  opacity: 0.10;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-actions .btn-ghost svg { transition: transform 0.15s ease; }
.hero-actions .btn-ghost:hover svg { transform: translateX(2px); }

.hero-trustline {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.hero-trustline p { font-size: 0.88rem; color: var(--ink-soft); }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--navy), var(--red));
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(2) { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.avatar-stack span:nth-child(3) { background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.avatar-stack span:nth-child(4) { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }


/* ============================================
   Trust strip / logo marquee
   ============================================ */
.trust-strip { padding: 40px 0; background: var(--white); }
.trust-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.logo-marquee { overflow: hidden; }
.logo-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.logo-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--border);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Services
   ============================================ */
.services { padding: 96px 0; background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card--featured {
  background: linear-gradient(165deg, var(--navy), var(--blue));
  color: var(--white);
  border-color: transparent;
}
.service-card--featured h3, .service-card--featured p { color: var(--white); }
.service-card--featured .card-link { color: var(--white); }
.service-card--featured .service-icon { background: rgba(255,255,255,0.15); color: var(--white); }

.service-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon--blue { background: rgba(30, 136, 229, 0.1); color: var(--blue); }
.service-icon--red { background: rgba(227, 6, 19, 0.08); color: var(--red); }

.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.card-link svg { transition: transform 0.15s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ============================================
   Handoff divider (signature element)
   ============================================ */
.handoff-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 48%, var(--red) 52%, var(--red-deep) 100%);
}

/* ============================================
   Stats
   ============================================ */
.stats { background: var(--ink); padding: 64px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(95deg, var(--blue-light), var(--red-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   RTO section
   ============================================ */
.rto-section { padding: 96px 0; background: var(--white); }
.rto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.rto-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.rto-lead { color: var(--ink-soft); margin-bottom: 28px; max-width: 480px; }

.rto-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.rto-list li { display: flex; gap: 16px; }
.rto-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.rto-list li strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.rto-list li p { font-size: 0.88rem; color: var(--ink-soft); }

.rto-visual { display: flex; justify-content: center; }
.rto-panel {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rto-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.rto-panel-row.highlight {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}
.rto-order { font-size: 0.82rem; color: var(--ink-soft); font-family: var(--font-display); }
.risk-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.risk-low { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.risk-med { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.risk-high { background: rgba(227, 6, 19, 0.1); color: var(--red); }

/* ============================================
   Couriers
   ============================================ */
.couriers { padding: 72px 0; background: var(--paper); }
.courier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.courier-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.courier-chip:hover { border-color: var(--blue); color: var(--navy); }

/* ============================================
   Testimonials
   ============================================ */
.testimonials { padding: 96px 0; background: var(--white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.quote { font-size: 0.95rem; color: var(--ink); line-height: 1.55; }
.testimonial-by { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-by strong { display: block; font-size: 0.9rem; }
.testimonial-by span { font-size: 0.8rem; color: var(--ink-soft); }

/* ============================================
   CTA
   ============================================ */
.cta {
  background: linear-gradient(110deg, var(--navy) 0%, var(--blue) 55%, var(--red) 100%);
  padding: 80px 0;
}
.cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta .btn-primary { background: var(--white); color: var(--navy); }
.cta .btn-primary:hover { background: var(--paper); }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin: 14px 0 18px; font-size: 0.88rem; max-width: 280px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.social-row a:hover { background: rgba(255,255,255,0.18); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 20px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .courier-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .rto-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 6px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open .nav-item { width: 100%; }
  .main-nav.open .dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 4px;
    display: none;
  }
  .main-nav.open .nav-item.dropdown-open .dropdown { display: flex; flex-direction: column; }

  .hero-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .header-actions .btn-text { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .courier-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}