/* ============================================================
   PEXVIA — shared site stylesheet
   Light theme, matching the actual Pexvia brand: blue/teal
   gradients with a white dot pattern, a rounded friendly
   display font for headings, and Inter for body text (same
   as the dashboard app, for cross-product consistency).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0f2447;
  --teal: #22d3ee;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --text: #1f2937;
  --text-dim: #6b7280;
  --card-blue: #2f6fed;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: 'Baloo 2', sans-serif; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 36, 71, 0.06);
}
.nav .logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: 'Baloo 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
body.menu-lock { overflow: hidden; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 36, 71, 0.28);
}
.btn-pill .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}
.btn-pill-outline {
  background: transparent;
  border: 2px solid rgba(15, 36, 71, 0.85);
  color: var(--navy);
}
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Dot-pattern gradient block (hero + why-us reuse this) ---------- */
.gradient-block {
  position: relative;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--blue-dark) 100%);
  overflow: hidden;
}
.gradient-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 2.5px, transparent 3px);
  background-size: 42px 42px;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Hero: spinning ring stage ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}
.stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage.dragging { cursor: grabbing; }
.ring {
  position: relative;
  width: 1px;
  height: 1px;
}
/* Position/scale/z-index are computed per-frame in JS as a true 2D
   orbit (cos/sin around the center) — panels travel AROUND the fixed
   wordmark rather than a depth-carousel that always parks one panel
   dead-center over it. Only visual styling lives in CSS. */
.panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 168px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}
/* The photo lives in its own layer so it can blur independently on tap
   without blurring the icon/title/arrow sitting on top of it. */
.panel-bg {
  position: absolute;
  inset: -6px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.35s var(--ease);
}
.panel.armed .panel-bg { filter: blur(7px) brightness(0.7); }
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 36, 71, 0.06) 0%, rgba(15, 36, 71, 0.78) 100%);
}
.panel .icon,
.panel h3 {
  position: relative;
  z-index: 2;
}
.panel .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 20px 14px;
}
.panel .icon svg { width: 20px; height: 20px; stroke: #ffffff; }

/* Two-tap-to-navigate affordance: first tap blurs the photo (above) and
   reveals this arrow; second tap (anywhere on the panel) follows
   data-link. No more opaque box hiding the photo — the blur itself is
   the "armed" cue, and the arrow just confirms the tap will navigate. */
.panel .arrow-badge {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #ffffff;
  background: transparent;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.panel.armed .arrow-badge { opacity: 1; transform: scale(1); }
.panel h3 {
  font-size: 0.95rem;
  font-family: 'Baloo 2', sans-serif;
  line-height: 1.25;
  margin: 0 20px 20px;
}

.hero-center {
  position: relative;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  max-width: 320px;
}
.hero-wordmark {
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 4px 0 rgba(15, 36, 71, 0.18);
}
.hero-tagline {
  margin-top: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.94);
}

@media (max-width: 640px) {
  .panel { width: 128px; height: 158px; }
  .panel .icon { margin: 14px 14px 10px; width: 34px; height: 34px; }
  .panel h3 { margin: 0 14px 14px; }
  .panel h3 { font-size: 0.82rem; }
}

/* Sign-in CTA — deliberately its own strip below the ring, well
   clear of both the wordmark and the spinning panels. */
.hero-cta {
  text-align: center;
  padding: 40px 20px 10px;
}

/* ---------- Meet Swiftie ---------- */
.swiftie {
  padding: 20px clamp(20px, 6vw, 80px) 100px;
}
.swiftie-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.swiftie-card .icon {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiftie-card .icon svg { width: 38px; height: 38px; stroke: #ffffff; }
.swiftie-card .copy { flex: 1 1 320px; }
.swiftie-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--navy);
}
.swiftie-card p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.6;
}
.swiftie-card .btn-pill { margin-top: 20px; }

/* ---------- App download ---------- */
.app-download {
  padding: 80px clamp(20px, 6vw, 80px);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.app-download .copy { flex: 1 1 340px; }
.app-download .copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--navy);
}
.app-download .copy p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--text-dim);
  font-weight: 500;
}
.app-download .btn-row { margin-top: 26px; }
.app-download .mockup { flex: 1 1 320px; text-align: center; }
.app-download .mockup img {
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(15, 36, 71, 0.22));
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
  padding: 0 20px;
}
.section-head .eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  color: var(--blue);
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  color: var(--navy);
}
.section-head p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ---------- Services grid ---------- */
.services {
  padding: 90px clamp(20px, 6vw, 80px) 60px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--card-blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #ffffff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon svg { width: 24px; height: 24px; stroke: #ffffff; }

/* Same two-tap affordance, scoped to just the icon (the trigger here
   is the icon specifically, not the whole card). */
.icon-trigger {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.icon-trigger .arrow-badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  background: rgba(15, 36, 71, 0.65);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.icon-trigger.armed .arrow-badge { opacity: 1; transform: scale(1); }
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}
.services-cta {
  text-align: center;
  margin-top: 50px;
}

/* ---------- Why Us ---------- */
.why-us {
  padding: 100px clamp(20px, 6vw, 80px);
  text-align: center;
}
.why-us-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.why-us h2 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.why-us p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  font-weight: 500;
}
.why-us p strong { font-weight: 700; }

/* ---------- Partners ---------- */
.partners {
  padding: 90px clamp(20px, 6vw, 80px);
}
.partners .section-head { text-align: left; margin: 0 0 40px; max-width: none; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
}
@media (max-width: 760px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
.partner-card {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}
.partner-card img { max-height: 46px; width: auto; }

/* ---------- Connect ---------- */
.connect {
  padding: 20px clamp(20px, 6vw, 80px) 100px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.connect .left { flex: 1 1 280px; }
.connect .left h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); color: var(--navy); }
.connect .left .btn-pill { margin-top: 22px; }
.connect .right {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.connect .field-label {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.connect .field-value {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px clamp(20px, 6vw, 80px) 0;
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo img { height: 32px; }
.footer-brand p {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-swiftie {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
}
.footer-col h4 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0 0 16px;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- iOS install guide ---------- */
.ios-guide {
  padding: 70px clamp(20px, 6vw, 80px) 100px;
  max-width: 760px;
  margin: 0 auto;
}
.ios-video {
  margin: 8px 0 54px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 36, 71, 0.16);
  background: #000000;
}
.ios-video video {
  width: 100%;
  display: block;
  max-height: 480px;
}
.ios-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.ios-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ios-steps h4 { margin: 0 0 4px; color: var(--navy); font-size: 1.05rem; }
.ios-steps p { margin: 0; color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }
.ios-cta { text-align: center; margin-top: 54px; }

/* ---------- Download page ---------- */
.download-hero {
  padding: 70px clamp(20px, 6vw, 80px) 90px;
  text-align: center;
}
.download-hero .eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}
.download-hero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #ffffff;
}
.download-hero p {
  margin-top: 12px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.download-hero .mockup {
  max-width: 320px;
  margin: 36px auto 0;
}
.platform-grid {
  max-width: 720px;
  margin: -50px auto 0;
  padding: 0 20px 90px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 560px) {
  .platform-grid { grid-template-columns: 1fr; }
}
.platform-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 36, 71, 0.12);
}
.platform-card .platform-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--bg-soft);
  overflow: hidden;
}
.platform-card .platform-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.platform-card h3 { font-size: 1.1rem; color: var(--navy); }
.platform-card p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.platform-card .btn-pill { margin-top: 20px; width: 100%; justify-content: center; }
.platform-card.is-disabled {
  opacity: 0.6;
}
.platform-card.is-disabled .btn-pill {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}
.platform-card.is-disabled .btn-pill:hover {
  transform: none;
  box-shadow: none;
}
.coming-soon-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
