/* Packman Website — new quick-start homepage (home-v2).
 * Rebuild of packman-website.vercel.app/quick-start as zero-build CSS.
 * Relies on base.css tokens and home.css for the shared nav/footer chrome.
 * Every section is prefixed `h2-` (home, version 2) to avoid collisions
 * with the legacy hero styles that still serve start.html.
 */

:root {
  --h2-dark: #0b0a1a;
  --h2-dark-soft: #14132a;
  --h2-paper: #fafaf7;
  --h2-line: rgba(15, 23, 42, 0.08);
}

body.home-v2 {
  background: var(--h2-paper);
}

/* ---------------------------------------------------------------- shared */

.h2-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.h2-kicker--invert {
  color: rgba(255, 255, 255, 0.6);
}

.h2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.h2-btn--lime {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--brand-secondary);
  box-shadow:
    0 10px 30px rgba(210, 248, 1, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.h2-btn--lime:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(210, 248, 1, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.h2-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(15, 23, 42, 0.18);
}

.h2-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.4);
}

/* ------------------------------------------------------------------ hero */

.h2-hero {
  position: relative;
  padding: 150px 32px 40px;
  background:
    radial-gradient(ellipse 70% 45% at 80% 10%, rgba(210, 248, 1, 0.22) 0%, rgba(210, 248, 1, 0) 60%),
    var(--h2-paper);
  overflow: hidden;
}

.h2-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
}

.h2-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(44, 42, 89, 0.06);
  border: 1px solid rgba(44, 42, 89, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-secondary);
  margin-bottom: 22px;
}

.h2-hero__title {
  margin: 0 0 20px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.h2-hero__title span {
  display: block;
}

.h2-hero__title-lead {
  position: relative;
  width: fit-content;
}

.h2-hero__title-lead::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.06em;
  height: 0.28em;
  background: var(--brand);
  z-index: -1;
  border-radius: 4px;
}

.h2-hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.h2-hero__cta {
  margin-top: 34px;
}

.h2-hero__form {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
}

.h2-hero__form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 0 22px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.h2-hero__form input::placeholder {
  color: var(--ink-placeholder);
}

.h2-hero__form input:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 4px rgba(210, 248, 1, 0.3);
}

.h2-hero__trust {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.h2-hero__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
}

.h2-hero__phone {
  width: min(330px, 74%);
  margin: 0 auto;
  filter: drop-shadow(0 26px 52px rgba(44, 42, 89, 0.22));
  border-radius: 28px;
}

.h2-hero__card {
  position: absolute;
  width: 172px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(44, 42, 89, 0.22);
  animation: h2-float 5s ease-in-out infinite;
}

/* Cards hug the phone's perimeter from the gutters so they frame the
 * device rather than covering the dashboard content underneath. */
.h2-hero__card--order { top: 7%; inset-inline-start: -2%; animation-delay: 0s; }
.h2-hero__card--revenue { top: 23%; inset-inline-end: -3%; animation-delay: 1.2s; }
.h2-hero__card--rating { bottom: 19%; inset-inline-start: -3%; animation-delay: 2.4s; }
.h2-hero__card--delivery { bottom: 3%; inset-inline-end: -2%; animation-delay: 3.4s; }

@keyframes h2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .h2-hero__card { animation: none; }
}

/* ----------------------------------------------------------------- logos */

.h2-logos {
  padding: 48px 0 54px;
  background: #fff;
  border-top: 1px solid var(--h2-line);
  border-bottom: 1px solid var(--h2-line);
}

.h2-logos__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.h2-logos__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.h2-logos__track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  padding: 0 40px;
  animation: h2-marquee 28s linear infinite;
}

.h2-logos__track img {
  height: 34px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.h2-logos__track img:hover {
  opacity: 1;
}

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

[dir="rtl"] .h2-logos__track {
  animation-name: h2-marquee-rtl;
}

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

@media (prefers-reduced-motion: reduce) {
  .h2-logos__track { animation: none; }
}

/* ----------------------------------------------------------------- stats */

.h2-stats {
  padding: 72px 32px;
  background: var(--h2-paper);
}

.h2-stats__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.h2-stat__value {
  display: block;
  font-size: clamp(34px, 3.9vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.h2-stat__prefix {
  font-size: 0.46em;
  font-weight: 700;
  vertical-align: 0.42em;
  margin-inline-end: 5px;
  color: var(--ink-muted);
}

.h2-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- features */

.h2-features {
  background: #fff;
  padding: 40px 32px 80px;
}

.h2-feature {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.h2-feature + .h2-feature {
  border-top: 1px solid var(--h2-line);
}

.h2-feature--flip .h2-feature__copy {
  order: 2;
}

.h2-feature--flip .h2-feature__media {
  order: 1;
}

.h2-feature__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.h2-feature__kicker i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.h2-feature__copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.h2-feature__copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 480px;
}

.h2-feature__media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(44, 42, 89, 0.16);
}

/* ------------------------------------------------------------------ team */

.h2-team {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(210, 248, 1, 0.1) 0%, rgba(210, 248, 1, 0) 55%),
    var(--h2-dark);
  padding: 96px 32px;
  color: #fff;
}

.h2-team__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.h2-team__title {
  margin: 16px 0 18px;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
}

.h2-team__lead {
  margin: 0 auto 30px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.h2-team__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.h2-team__card {
  background: var(--h2-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0 0 24px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.h2-team__card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 248, 1, 0.45);
}

.h2-team__card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  margin-bottom: 18px;
}

.h2-team__card h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.h2-team__card p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------------------- icp */

.h2-icp {
  background: var(--h2-paper);
  padding: 96px 32px;
}

.h2-icp__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.h2-icp__title {
  margin: 14px 0 36px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.h2-icp__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.h2-icp__tabs button {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.h2-icp__tabs button:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

.h2-icp__tabs button[aria-selected="true"] {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: #fff;
}

.h2-icp__panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  text-align: start;
}

.h2-icp__panel.is-active {
  display: grid;
  animation: h2-fade-in 320ms ease;
}

@keyframes h2-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.h2-icp__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(44, 42, 89, 0.16);
}

.h2-icp__copy h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ink);
}

.h2-icp__copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ----------------------------------------------------------- testimonials */

.h2-testimonials {
  background: #fff;
  border-top: 1px solid var(--h2-line);
  padding: 96px 32px;
}

.h2-testimonials__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.h2-testimonials__title {
  margin: 14px 0 44px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.h2-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.h2-testimonial {
  margin: 0;
  text-align: start;
}

.h2-testimonial__video {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--h2-dark);
  box-shadow: 0 20px 50px rgba(44, 42, 89, 0.18);
}

.h2-testimonial__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h2-testimonial__mute {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(11, 10, 26, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}

.h2-testimonial__mute:hover {
  background: rgba(11, 10, 26, 0.85);
  transform: scale(1.06);
}

.h2-testimonial__mute svg {
  width: 18px;
  height: 18px;
}

.h2-testimonial__mute .icon-unmuted { display: none; }
.h2-testimonial__mute[aria-pressed="false"] .icon-muted { display: none; }
.h2-testimonial__mute[aria-pressed="false"] .icon-unmuted { display: block; }

.h2-testimonial figcaption {
  padding: 16px 6px 0;
}

.h2-testimonial figcaption strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.h2-testimonial figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-secondary);
}

.h2-testimonial blockquote {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------- final CTA */

.h2-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(210, 248, 1, 0.3) 0%, rgba(210, 248, 1, 0) 60%),
    var(--h2-paper);
  padding: 120px 32px;
}

.h2-final__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.h2-final__title {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.h2-final__title span {
  display: block;
}

.h2-final__title .accent {
  color: var(--brand-secondary);
}

.h2-final__lead {
  margin: 0 auto 34px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.h2-final__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  .h2-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .h2-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
}

@media (max-width: 900px) {
  .h2-hero {
    padding-top: 128px;
  }
  .h2-hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .h2-hero__visual {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .h2-feature,
  .h2-feature--flip {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .h2-feature--flip .h2-feature__copy {
    order: 1;
  }
  .h2-feature--flip .h2-feature__media {
    order: 2;
  }
  .h2-icp__panel.is-active {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .h2-testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .h2-hero,
  .h2-stats,
  .h2-features,
  .h2-team,
  .h2-icp,
  .h2-testimonials,
  .h2-final {
    padding-inline: 20px;
  }
  .h2-hero__form {
    flex-direction: column;
    align-items: stretch;
  }
  .h2-hero__form input {
    height: 50px;
  }
  .h2-hero__card {
    width: 150px;
  }
  .h2-team__grid {
    grid-template-columns: 1fr;
  }
  .h2-icp__tabs {
    gap: 8px;
  }
  .h2-icp__tabs button {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* RTL: Arabic uses the IBM Plex Sans Arabic stack from base.css. Tighten
 * the letter-spacing overrides since negative tracking breaks Arabic. */
[dir="rtl"] .h2-hero__title,
[dir="rtl"] .h2-team__title,
[dir="rtl"] .h2-icp__title,
[dir="rtl"] .h2-testimonials__title,
[dir="rtl"] .h2-final__title,
[dir="rtl"] .h2-feature__copy h2,
[dir="rtl"] .h2-icp__copy h3 {
  letter-spacing: 0;
}

[dir="rtl"] .h2-kicker,
[dir="rtl"] .h2-logos__title,
[dir="rtl"] .h2-stat__label,
[dir="rtl"] .h2-feature__kicker {
  letter-spacing: 0;
}
