/* Home page sections: hero, built-on strip, pipeline, feature rows, demo,
   bento, compare, pricing, final CTA. */

/* Hero ------------------------------------------------------------------ */

.hero {
  padding-block: var(--space-8) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-7) var(--space-5);
}

.hero__copy {
  flex: 1 1 31rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__copy > .announce,
.hero__copy > .chip {
  align-self: flex-start;
}

.hero__title span {
  display: block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-1);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-7);
  padding-top: var(--space-2);
}

.hero__stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stats dt {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero__stats dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

.hero__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Hero fan: three phones in perspective */

.hero__visual {
  position: relative;
  flex: 1 1 35rem;
  min-width: 0;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__halo,
.hero__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__halo {
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgb(255 106 44 / 0.4), rgb(255 106 44 / 0.08) 55%, transparent);
  filter: blur(40px);
}

.hero__ring {
  border: 1px solid rgb(255 255 255 / 0.06);
}

.hero__ring--inner {
  width: 560px;
  height: 560px;
}

.hero__ring--outer {
  width: 760px;
  height: 760px;
  border-color: rgb(255 255 255 / 0.04);
}

.fan {
  position: relative;
  width: 640px;
  height: 680px;
  transform: perspective(1600px) rotateX(2deg);
  transform-origin: 50% 50%;
}

.fan__phone {
  position: absolute;
}

.fan__phone--left {
  --phone-w: 256px;
  left: 0;
  top: 60px;
  transform: perspective(1400px) rotateY(26deg) rotateZ(-6deg) translateZ(-120px);
  transform-origin: 100% 50%;
}

.fan__phone--right {
  --phone-w: 256px;
  right: 0;
  top: 60px;
  transform: perspective(1400px) rotateY(-26deg) rotateZ(6deg) translateZ(-120px);
  transform-origin: 0% 50%;
}

.fan__phone--center {
  --phone-w: 310px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.fan__phone--left::before,
.fan__phone--right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fan__phone--left::before {
  background: linear-gradient(90deg, transparent 60%, rgb(11 11 12 / 0.35));
}

.fan__phone--right::before {
  background: linear-gradient(270deg, transparent 60%, rgb(11 11 12 / 0.35));
}

.fan__card {
  position: absolute;
  z-index: 4;
}

.fan__card--edges {
  left: -8px;
  top: -6px;
  animation: float 6s ease-in-out infinite;
}

.fan__card--text {
  right: -16px;
  top: 300px;
  animation: float-b 7s ease-in-out infinite;
}

.fan__card--lock {
  left: 20px;
  bottom: 30px;
  animation: float 8s ease-in-out infinite;
}

/* Camera viewfinder mock inside the centre phone */

.viewfinder {
  position: absolute;
  inset: 8px;
  border-radius: 40px;
  overflow: hidden;
  background: #111;
}

.viewfinder img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.82) contrast(1.05);
}

.viewfinder__quad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewfinder__beam {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px 4px rgb(255 106 44 / 0.55);
  animation: scanline 4.5s ease-in-out infinite;
}

.viewfinder__status {
  position: absolute;
  left: 50%;
  top: 66px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgb(11 11 12 / 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}

.viewfinder__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgb(11 11 12 / 0.95), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
  gap: 34px;
}

.viewfinder__thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--accent);
  position: relative;
}

.viewfinder__thumb span {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink-950);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.viewfinder__shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.viewfinder__shutter::after {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
}

.viewfinder__import {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.3);
}

@media (max-width: 1100px) {
  .hero__visual {
    height: 600px;
  }
  .fan {
    transform: scale(0.84) perspective(1600px) rotateX(2deg);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-6);
  }
  .hero__visual {
    height: 440px;
  }
  .fan {
    transform: scale(0.58) perspective(1600px) rotateX(2deg);
  }
  .hero__halo {
    width: 420px;
    height: 420px;
  }
  .hero__ring--outer {
    display: none;
  }
}

/* Built on -------------------------------------------------------------- */

.built-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding-block: var(--space-2) var(--space-7);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* Pipeline -------------------------------------------------------------- */

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 14px;
}

.pipeline::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 40px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 106 44 / 0.1) 0 12px, var(--accent) 12px 28px, rgb(255 106 44 / 0.1) 28px 40px);
  background-size: 400px 2px;
  animation: flow 6s linear infinite;
  opacity: 0.6;
}

.pipeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 14px;
  border-radius: 22px;
  background: rgb(22 22 24 / 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.pipeline__num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 1px solid rgb(255 106 44 / 0.5);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  box-shadow: 0 0 20px rgb(255 106 44 / 0.35);
}

.pipeline__step--last .pipeline__num {
  background: var(--accent);
  color: var(--ink-950);
  box-shadow: 0 0 24px rgb(255 106 44 / 0.6);
}

.pipeline__step strong {
  font-size: 17px;
}

.pipeline__step span:last-child {
  font-size: 14px;
  color: var(--text-2);
}

.manifesto {
  margin: var(--space-7) auto 0;
  max-width: 62rem;
  text-align: center;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text-3);
  text-wrap: balance;
}

.manifesto strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .pipeline::before {
    display: none;
  }
}

/* Feature rows ---------------------------------------------------------- */

.features {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-7) var(--space-8);
}

.feature--reverse {
  flex-wrap: wrap-reverse;
}

.feature__copy {
  flex: 1 1 25rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature__copy .chip {
  align-self: flex-start;
}

.feature__visual {
  flex: 1 1 23rem;
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--space-5) 0;
}

.feature__visual .phone {
  transform: perspective(1400px) rotateY(-10deg) rotateX(3deg);
}

.feature--reverse .feature__visual .phone {
  transform: perspective(1400px) rotateY(10deg) rotateX(3deg);
}

.feature__float {
  position: absolute;
  left: 0;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  animation: float 7s ease-in-out infinite;
}

.feature__float .eyebrow {
  font-size: 10px;
  color: var(--text-3);
}

.feature__float span {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.feature__float span strong {
  font-weight: 600;
}

/* Demo ------------------------------------------------------------------ */

.demo {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgb(31 31 34 / 0.7), rgb(22 22 24 / 0.7));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.06);
  backdrop-filter: blur(10px);
}

.demo__pane {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.demo__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}

.demo__frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo__quad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo__beam {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px 4px rgb(255 106 44 / 0.55);
  animation: scanline 5s ease-in-out infinite;
}

.demo__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgb(11 11 12 / 0.75);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}

.demo__frame--result {
  background: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
}

.demo__page {
  position: relative;
  width: 100%;
  aspect-ratio: 0.7;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.6);
}

.demo__page img {
  position: absolute;
  left: -22%;
  top: -24%;
  width: 144%;
  height: auto;
  max-width: none;
  transform: rotate(-1.4deg);
  transform-origin: center;
  transition: filter 240ms ease;
}

.demo__arrow {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-950);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.demo__modes {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: var(--space-2);
}

.demo__mode {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgb(31 31 34 / 0.9);
  font-size: 15px;
  font-weight: 600;
  transition: all 160ms ease;
}

.demo__mode[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgb(255 106 44 / 0.35);
}

.demo__note {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}

/* Bento ----------------------------------------------------------------- */

.bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
}

.bento__card {
  min-height: 300px;
  overflow: hidden;
}

.bento__card--tall {
  min-height: 460px;
}

.bento__card--wide {
  grid-column: 1 / -1;
}

.bento__phone {
  position: absolute;
  left: 50%;
  bottom: -230px;
  transform: translateX(-50%);
  --phone-w: 280px;
  pointer-events: none;
}

.bento__phone img {
  object-position: top;
}

.bento__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  align-items: center;
}

.bento__row > div:first-child {
  flex: 1 1 18rem;
}

.bento__screens {
  flex: 2 1 26rem;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.bento__screens .phone {
  --phone-w: 180px;
}

.bento__screens .phone:nth-child(2) {
  transform: translateY(24px);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgb(74 222 128 / 0.8);
}

.signature {
  margin-top: auto;
  width: 100%;
  max-width: 260px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.chips span {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--zinc-300);
}

.chips span.is-accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

/* Compare --------------------------------------------------------------- */

.compare {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgb(22 22 24 / 0.85);
}

.compare table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 16px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 18px 28px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.compare thead th {
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.compare thead th:last-child {
  color: var(--accent);
}

.compare tbody th {
  font-weight: 600;
}

.compare td:nth-child(2) {
  color: var(--text-3);
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

/* Pricing --------------------------------------------------------------- */

.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  max-width: 61rem;
  margin-inline: auto;
  align-items: stretch;
}

.pricing__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 44 / 0.18), transparent);
  filter: blur(60px);
  pointer-events: none;
}

.plan {
  gap: var(--space-5);
  padding: var(--space-7) var(--space-6);
}

.plan__name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan__price strong {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan__price span {
  font-size: 15px;
  color: var(--text-3);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: var(--space-6);
  box-shadow: 0 8px 24px rgb(255 106 44 / 0.45);
}

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

.tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgb(31 31 34 / 0.8);
  border: 1px solid var(--line);
}

.tier span {
  font-size: 12px;
  color: var(--text-2);
}

.tier strong {
  font-size: 17px;
}

.tier strong small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.tier--best {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.tier--best span {
  color: var(--accent);
}

.plan .btn {
  margin-top: auto;
}

.plan__fine {
  font-size: 13px;
  color: var(--text-3);
}

/* Final CTA ------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) var(--space-7);
  padding: var(--space-8) var(--space-7);
  border-radius: 40px;
  background: linear-gradient(180deg, rgb(31 31 34 / 0.92), rgb(22 22 24 / 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 140px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.07);
}

.cta::before {
  content: "";
  position: absolute;
  left: 30%;
  top: -260px;
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 44 / 0.38), transparent);
  filter: blur(60px);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta__copy {
  flex: 1 1 26rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cta__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgb(255 106 44 / 0.45);
}

.cta__visual {
  flex: 0 1 19rem;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.cta__visual .phone {
  --phone-w: 240px;
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg);
}

@media (max-width: 640px) {
  .cta {
    padding: var(--space-7) var(--space-5);
  }
}
