/* Global font: system UI + Inter */
:root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
}
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background-color: #f5f5f5;
  line-height: 1.5;
  overflow: auto; /* allow page scrolling by default */
}

a {
  text-decoration: none;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Minor hover elevation for cards */
.card-hover {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.35); /* brand-500-ish */
}

/* Numbered steps embellishment */
.counter-steps {
  counter-reset: step;
}
.counter-steps .step-index {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #eef2ff; /* brand-50 */
  border: 1px solid #c7d2fe; /* brand-200 */
  color: #4338ca; /* brand-700 */
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Ambient animated background elements (lightweight, CSS-only) --- */
.ambient-card {
  position: absolute;
  width: clamp(160px, 24vw, 240px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.08); /* gray-900 @ 8% */
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(31, 41, 55, 0.1); /* gray-800 */
  backdrop-filter: blur(4px);
  will-change: transform, box-shadow;
  transform: rotate(var(--rotate, 0deg));
  animation: floatSlow 9s ease-in-out infinite, glow 6s ease-in-out infinite;
}

.ambient-delay-1 {
  animation-delay: 0.8s, 0.8s;
}
.ambient-delay-2 {
  animation-delay: 1.6s, 1.6s;
}
.ambient-delay-3 {
  animation-delay: 2.4s, 2.4s;
}

.ambient-card-bar {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.55),
    rgba(236, 72, 153, 0.45)
  );
  margin-bottom: 10px;
}

.ambient-card-line {
  height: 7px;
  border-radius: 6px;
  background: #e5e7eb; /* gray-200 */
  margin: 8px 0;
}

.ambient-card-chip {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #c7d2fe; /* brand-200 */
  margin-top: 6px;
}

.ambient-card-pill {
  width: 72px;
  height: 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin-top: 8px;
}

.ambient-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #c7d2fe, #fbcfe8);
  margin-bottom: 8px;
}

.ambient-card-chart {
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(
        180deg,
        rgba(99, 102, 241, 0.15),
        rgba(99, 102, 241, 0)
      )
      no-repeat,
    linear-gradient(90deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px) 0 0 /
      10px 10px,
    linear-gradient(0deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px) 0 0 /
      10px 10px,
    #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  margin-bottom: 10px;
}

@keyframes floatSlow {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translate3d(0, -12px, 0)
      rotate(calc(var(--rotate, 0deg) + 1.5deg));
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg));
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(31, 41, 55, 0.1);
  }
  50% {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04),
      0 16px 36px rgba(31, 41, 55, 0.12);
  }
  100% {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(31, 41, 55, 0.1);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ambient-card {
    animation: none;
  }
}

/* --- Focus pills (soft, floating tags) --- */
.focus-pills {
  gap: 10px;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 10px 26px rgba(31, 41, 55, 0.1);
  backdrop-filter: blur(4px);
  color: #111827; /* gray-900 */
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.focus-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(31, 41, 55, 0.14);
  border-color: rgba(99, 102, 241, 0.28);
}

/* Reuse gentle float + glow for subtle movement */
.float-slow {
  animation: floatSlow 8.5s ease-in-out infinite, glow 7s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.float-delay-1 {
  animation-delay: 0.6s, 0.6s;
}
.float-delay-2 {
  animation-delay: 1.2s, 1.2s;
}
.float-delay-3 {
  animation-delay: 1.8s, 1.8s;
}
.float-delay-4 {
  animation-delay: 2.4s, 2.4s;
}

/* ========================= */
/* Home design specific CSS  */
/* ========================= */

/* Hero container with curved bottom corners matching the comp */
.hero-top {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1 1 auto; /* fill viewport above features */
  background: linear-gradient(
    90deg,
    #3976f6 0%,
    #4ea1ff 45%,
    #2c7cf3 70%,
    #0f3dc1 100%
  );
  border-bottom-left-radius: 120px 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  right: 12%;
  bottom: -18%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.05),
    transparent 70%
  );
  filter: blur(6px);
}

/* Top right pill CTA */
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #0f172a;
  border-radius: 9999px;
  padding: 8px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-weight: 800;
}
.pill-cta:hover {
  background: #111827;
}

/* Bottom features row (glassy bar) */
.features-row {
  position: relative;
  padding: 12px 0 16px; /* tight to fit viewport */
  flex-shrink: 0;
  background: transparent;
}
.features-glass {
  position: relative;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.55)
    ),
    radial-gradient(
      160% 120% at 100% 0%,
      rgba(99, 102, 241, 0.12),
      rgba(99, 102, 241, 0)
    );
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.features-glass::after {
  /* subtle top glow */
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -10px;
  height: 14px;
  border-radius: 9999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* Little flower badge */
.hero-badge {
  width: 24px;
  height: 24px;
  position: relative;
}
.hero-badge::before,
.hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff 0 35%, #60a5fa 36% 100%);
}
.hero-badge::after {
  transform: rotate(45deg);
  opacity: 0.7;
}

/* Title + highlight */
.hero-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-subcopy {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 44ch;
}
.hero-emphasis {
  position: relative;
  display: inline-block;
}
.underline-loop {
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -6px;
  height: 52px;
}

/* Hero buttons */
.btn-white {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #0f3dc1;
  padding: 10px 16px;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}
.btn-soft {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.btn-soft:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Form card (right) */
.form-card {
  width: 340px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform-origin: center;
}
.form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fca5a5, #fde68a);
  box-shadow: inset 0 0 0 2px #fff;
}
.name {
  font-weight: 700;
  color: #0f172a;
}
.form-rows {
  list-style: none;
  padding: 12px 14px;
  margin: 0;
}
.form-rows li {
  height: 34px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px;
  margin: 8px 0;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 16px;
}
.form-footer .plus {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e0e7ff;
  display: grid;
  place-items: center;
  color: #1f2937;
  font-weight: 800;
}
.form-footer .pay {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  background: #4f78f5;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(79, 120, 245, 0.45);
}

/* Floating credit card */
.credit-card {
  position: absolute;
  right: -10px;
  top: 34px;
  width: 320px;
  height: 180px;
  background: radial-gradient(
    120% 120% at 100% 0%,
    #0b1220 0%,
    #0c2743 40%,
    #0a2040 100%
  );
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(15, 25, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px;
}
.credit-card .brand {
  font-family: "Brush Script MT", "Comic Sans MS", cursive;
  font-size: 28px;
  color: #73dffd;
  opacity: 0.95;
}
.credit-card .digits {
  position: absolute;
  bottom: 56px;
  left: 18px;
  letter-spacing: 2px;
  color: #e5f4ff;
  font-weight: 700;
}
.credit-card .holder {
  position: absolute;
  bottom: 24px;
  left: 18px;
  color: #c9d6e5;
  font-size: 12px;
}
.credit-card .chips {
  position: absolute;
  right: 18px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}
.credit-card .chips span {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, #d1d5db, #6b7280);
  filter: blur(0.2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
/* HERO mock UI */
.ui-panel {
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.ui-panel-header {
  height: 38px;
  background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.ui-panel-list {
  list-style: none;
  margin: 0;
  padding: 12px;
}
.ui-panel-list li {
  height: 28px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 8px 0;
}
.ui-panel-footer {
  height: 32px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.floating-card {
  width: 200px;
  height: 120px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Feature icon */
.feature-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #a5b4fc);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

/* Feature icons exact-style */
.icon-stack {
  width: 36px;
  height: 36px;
  position: relative;
  flex: none;
}

/* ========================= */
/* iPhone Mockup (Hero)      */
/* ========================= */
.device-iphone {
  position: relative;
  width: 320px;
  height: 660px;
  transform-origin: center;
}
.device-iphone:hover {
  filter: saturate(1.06) brightness(1.02);
}
.iphone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(180deg, #0b1020, #101826);
  box-shadow: 0 30px 70px rgba(15, 25, 50, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 12px #0f172a;
}
.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 24px rgba(0, 0, 0, 0.5);
  z-index: 6;
}
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(
      160% 120% at 10% 10%,
      rgba(99, 102, 241, 0.3),
      transparent 60%
    ),
    radial-gradient(
      120% 90% at 90% 10%,
      rgba(59, 130, 246, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, #0a122c 0%, #0a1f47 60%, #0a1335 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.iphone-screen::before {
  /* soft grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px
      )
      0 0/10px 10px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0/10px
      10px;
  pointer-events: none;
}

/* Status bar */
.iphone-status {
  position: absolute;
  top: 10px;
  left: 16px;
  right: 16px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #eef2ff;
  z-index: 7;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.iphone-status .time {
  font-variant-numeric: tabular-nums;
}
.iphone-status .indicators {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.iphone-status .sig {
  width: 18px;
  height: 12px;
  background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.95)
      )
      0 8px/2px 4px no-repeat,
    linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8))
      5px 6px/2px 6px no-repeat,
    linear-gradient(to top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6))
      10px 4px/2px 8px no-repeat,
    linear-gradient(to top, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4))
      15px 2px/2px 10px no-repeat;
  border-radius: 2px;
}
.iphone-status .wifi {
  width: 14px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
  border-radius: 2px 2px 2px 6px;
  opacity: 0.9;
}
.iphone-status .bat {
  position: relative;
  width: 22px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
}
.iphone-status .bat i {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 6px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}
.iphone-status .bat::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 6px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
}

/* Hero text inside screen */
.iphone-hero {
  display: grid;
  place-items: center;
  padding-top: 54px;
  padding-bottom: 12px;
  text-align: center;
  color: #e5edff;
}
.iphone-hero .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  /* border-radius: 9999px; */
  color: #0f3dc1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.25);
}
.iphone-hero .headline {
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #f0f6ff;
  opacity: 0.95;
}

/* Cards */
.iphone-cards {
  position: absolute;
  top: 130px;
  left: 14px;
  right: 14px;
  bottom: 96px;
  display: grid;
  grid-auto-rows: minmax(92px, auto);
  gap: 12px;
}
.iphone-cards .card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  animation: cardPulse 8s ease-in-out infinite;
}
.iphone-cards .card .icon {
  font-size: 26px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.iphone-cards .card .text strong {
  display: block;
  font-weight: 800;
}
.iphone-cards .card .text span {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: #dbeafe;
  opacity: 0.9;
}
.iphone-cards .card::after {
  /* sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.09) 50%,
    transparent 80%
  );
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.iphone-cards .card.hw {
  background: radial-gradient(
      120% 160% at 10% 0%,
      rgba(34, 211, 238, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(14, 165, 233, 0.35), rgba(30, 58, 138, 0.85));
}
.iphone-cards .card.fe {
  background: radial-gradient(
      140% 160% at 0% 10%,
      rgba(99, 102, 241, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(67, 56, 202, 0.35), rgba(15, 23, 42, 0.9));
}
.iphone-cards .card.et {
  background: radial-gradient(
      140% 160% at 100% 0%,
      rgba(59, 130, 246, 0.2),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(96, 165, 250, 0.35), rgba(15, 23, 42, 0.9));
}
.iphone-cards .card.ai {
  background: radial-gradient(
      120% 160% at 90% 0%,
      rgba(56, 189, 248, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.95));
}
.iphone-cards .card.hw {
  animation-delay: 0.2s;
}
.iphone-cards .card.fe {
  animation-delay: 0.8s;
}
.iphone-cards .card.et {
  animation-delay: 1.4s;
}
.iphone-cards .card.ai {
  animation-delay: 2s;
}

@keyframes cardPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  }
}

/* Dock */
.iphone-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.iphone-dock .pill {
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f3dc1;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.25);
}
.iphone-dock .pill.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4f78f5, #3b82f6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(79, 120, 245, 0.5);
}

/* Ambient bokeh */
.iphone-bokeh .bk {
  position: absolute;
  border-radius: 9999px;
  filter: blur(18px);
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: floatBokeh 10s ease-in-out infinite;
}
.iphone-bokeh .b1 {
  width: 120px;
  height: 120px;
  right: -20px;
  top: 20%;
  background: radial-gradient(circle, #60a5fa, transparent 60%);
  animation-delay: 0.3s;
}
.iphone-bokeh .b2 {
  width: 90px;
  height: 90px;
  left: -18px;
  bottom: 22%;
  background: radial-gradient(circle, #34d399, transparent 60%);
  animation-delay: 0.9s;
}
.iphone-bokeh .b3 {
  width: 140px;
  height: 140px;
  left: 30%;
  top: -28px;
  background: radial-gradient(circle, #a78bfa, transparent 60%);
  animation-delay: 1.5s;
}

@keyframes floatBokeh {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .device-iphone,
  .iphone-cards .card,
  .iphone-bokeh .bk {
    animation: none !important;
  }
}

/* Responsive sizing */
@media (max-width: 420px) {
  .device-iphone {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

/* Mobile adjustments: enable scroll, correct order, spacing */
@media (max-width: 768px) {
  /* body remains scrollable on mobile too */
  .hero-top {
    height: auto; /* let content define height */
    min-height: 100vh; /* still fill first screen */
  }
  .features-row {
    order: 1; /* ensure features appear after hero */
  }
  /* Slightly tighter paddings on small screens to avoid overflow */
  .features-glass {
    padding: 12px 12px;
  }
  /* Spacing for the mobile iPhone section */
  .iphone-mobile-wrap {
    padding: 16px 0 24px;
  }
}

/* Constrain tall mockup for short viewports */
@media (max-height: 780px) and (max-width: 480px) {
  .device-iphone {
    transform: scale(0.8);
    transform-origin: top center;
  }
}
.icon-stack .sq {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transform-origin: center;
}
.icon-stack .sq.a {
  left: 2px;
  top: 14px;
  transform: rotate(-12deg);
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.35);
}
.icon-stack .sq.b {
  left: 14px;
  top: 4px;
  transform: rotate(12deg);
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.35);
}
.icon-stack .check {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 18px;
  height: 14px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.icon-card {
  width: 36px;
  height: 36px;
  position: relative;
  flex: none;
}
.icon-card .r1,
.icon-card .r2 {
  position: absolute;
  width: 26px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}
.icon-card .r1 {
  left: 4px;
  top: 4px;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}
.icon-card .r2 {
  left: 8px;
  top: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.icon-code {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  position: relative;
  flex: none;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
}
.icon-code::before,
.icon-code::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(45deg);
}
.icon-code::before {
  left: 8px;
}
.icon-code::after {
  right: 8px;
  transform: rotate(-135deg);
}
.icon-code .dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 9999px;
  left: 16px;
  top: 16px;
}

/* Dark demo cards cluster */
.demo-card {
  position: absolute;
  width: 200px;
  height: 120px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.demo-card.card-teal {
  background: linear-gradient(135deg, #34d399, #10b981);
  top: 20px;
}
.demo-card.card-black {
  background: linear-gradient(135deg, #111827, #0b1220);
  top: 120px;
}
.demo-card.card-sky {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  top: 80px;
}
.demo-card {
  background-size: cover;
}

/* Globe placeholder */
.globe {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  background: radial-gradient(
      closest-side,
      rgba(59, 130, 246, 0.25),
      transparent 70%
    ),
    conic-gradient(from 45deg, #93c5fd, #60a5fa, #3b82f6, #60a5fa, #93c5fd);
  position: relative;
  overflow: hidden;
}
.globe::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 48px;
  right: 18%;
  top: 36%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Perk tiles */
.perk-tile {
  border-radius: 14px;
  background: linear-gradient(145deg, #eef2ff, #dbeafe);
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Radial section */
.radial-wrap {
  position: relative;
  height: 320px;
  display: grid;
  place-items: center;
  margin: 24px 0;
}
.radial {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.08) 40%,
    transparent 60%
  );
  filter: blur(0.5px);
}
.radial-icons {
  position: relative;
  width: 360px;
  height: 360px;
}
.radial-icons .ri {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.radial-icons .ri:nth-child(1) {
  top: 0;
  left: calc(50% - 22px);
}
.radial-icons .ri:nth-child(2) {
  top: 25%;
  right: 0;
}
.radial-icons .ri:nth-child(3) {
  top: 60%;
  right: 8%;
}
.radial-icons .ri:nth-child(4) {
  bottom: 0;
  left: calc(50% - 22px);
}
.radial-icons .ri:nth-child(5) {
  top: 60%;
  left: 8%;
}
.radial-icons .ri:nth-child(6) {
  top: 25%;
  left: 0;
}

/* Testimonial card placeholder */
.testimonial-card {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e293b, #0b1220);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Pricing */
.pricing-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
  position: relative;
}
.pricing-card.popular {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
  border-color: #c7d2fe;
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 16px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.price {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 12px;
}
.btn-primary {
  background: #0f3dc1;
  color: #fff;
  border-radius: 9999px;
  padding: 8px 14px;
  font-weight: 600;
}
.features {
  margin-top: 12px;
}
.features li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
