/* ============================================
   Home page styles
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 56px) 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -20%, rgba(139,92,246,0.18), transparent 60%), var(--bg-1);
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero__copy h1 {
  margin: 18px 0 22px;
  text-wrap: balance;
}
.hero__copy h1 .grad-text { display: inline-block; }
.hero__cta {
  margin-top: 32px;
  display: flex; align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero__pills {
  margin-top: 36px;
  display: flex; flex-wrap: wrap;
  gap: 14px 20px;
}
.hero__pills li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--rad-full);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.hero__pills .dot { width: 8px; height: 8px; border-radius: 50%; }
.hero__pills .dot.mint { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.hero__pills .dot.violet { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.hero__pills .dot.pink { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.hero__pills .dot.blue { background: var(--blue); box-shadow: 0 0 12px var(--blue); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.hero__photo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0) 40%, rgba(10,14,26,0.6) 100%),
              linear-gradient(135deg, rgba(59,130,246,0.15), rgba(236,72,153,0.15));
  mix-blend-mode: normal;
}

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(15,20,38,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-size: var(--fs-xs);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  animation: floatY 6s ease-in-out infinite;
}
.float-chip strong { display: block; color: var(--ink-0); font-size: var(--fs-sm); font-weight: 600; font-family: var(--font-display); }
.float-chip small { display: block; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.float-chip svg { color: var(--mint); flex-shrink: 0; }
.float-chip--1 { top: 6%; left: -10%; animation-delay: 0s; }
.float-chip--2 { bottom: 18%; right: -14%; animation-delay: 1.5s; }
.float-chip--3 {
  bottom: -4%; left: 8%;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(16,217,196,0.18), rgba(59,130,246,0.18));
  border-color: rgba(16,217,196,0.35);
}
.float-chip--3 span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
}
.float-chip--3 div { color: var(--ink-2); font-size: 11px; }

.avatars { display: flex; }
.avatars img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  margin-left: -8px;
  object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }

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

.hero__rotor {
  position: absolute;
  right: -54px;
  top: 38%;
  z-index: 3;
}
@media (max-width: 1100px) {
  .hero__rotor { right: -20px; top: 8%; width: 108px; height: 108px; }
  .hero__rotor .rotor__arrow { width: 44px; height: 44px; }
}

.hero__social {
  position: absolute;
  right: max(20px, 3vw);
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 4;
}
.hero__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all .25s;
}
.hero__social a:hover {
  color: white;
  background: var(--grad-1);
  border-color: transparent;
  transform: translateX(-3px);
  box-shadow: var(--shadow-glow-violet);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-3);
}
.scroll-cue small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; }
.scroll-cue span {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--mint));
  position: relative;
}
.scroll-cue span::after {
  content: '';
  position: absolute; left: -2px; top: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mint);
  animation: cueDot 2.2s ease-in-out infinite;
}
@keyframes cueDot {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 36px; opacity: 0; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__social { display: none; }
  .float-chip--1 { left: 4%; top: 4%; }
  .float-chip--2 { right: 4%; bottom: 14%; }
  .float-chip--3 { left: 4%; bottom: 4%; }
  .hero__visual { max-width: 380px; }
}
@media (max-width: 480px) {
  .float-chip { padding: 10px 12px; font-size: 11px; max-width: 78%; }
  .float-chip strong { font-size: 12px; }
  .float-chip--3 span { font-size: 18px; }
}

/* ---------- Tagline ---------- */
.tagline__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.ink-3 { color: var(--ink-3); }
@media (max-width: 800px) {
  .tagline__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { text-wrap: balance; max-width: 18ch; }
.section-head .lead { max-width: 38ch; text-align: right; }
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .lead { text-align: left; }
}

/* ---------- About bleed ---------- */
.about-bleed { padding: 0; }
.about-bleed__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.about-bleed > .container { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 120px); }

.about-card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-xl);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
}
.about-card > * { min-width: 0; }
.cta-build__grid > * { min-width: 0; }
.tagline__grid > * { min-width: 0; }
.faq__grid > * { min-width: 0; }
.solution-card > * { min-width: 0; }
.about-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139,92,246,0.12), transparent 60%);
  pointer-events: none;
}
.about-card__copy { position: relative; z-index: 1; }
.about-card__copy h2 { margin: 20px 0 22px; }
.about-card__copy p { margin-bottom: 16px; }
.about-card__cta { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.orbits {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.orbits li {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 10px;
}
.orbit {
  position: relative;
  width: 120px; height: 120px;
  display: grid; place-items: center;
}
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: orbSpin 22s linear infinite; }
.orbit svg circle { transform-origin: center; }
.orbit svg circle:nth-child(1) { animation: orbDraw 2.4s ease-out forwards; stroke-dasharray: 340; stroke-dashoffset: 340; }
.orbits.in svg circle:nth-child(1) { stroke-dashoffset: 0; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbDraw { to { stroke-dashoffset: 0; } }
.orbit__core {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-0);
}
.orbits strong { font-family: var(--font-display); font-size: var(--fs-md); }
.orbits span { font-size: var(--fs-xs); color: var(--ink-3); max-width: 18ch; }

@media (max-width: 880px) {
  .about-card { grid-template-columns: 1fr; }
  .orbits { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 540px) {
  .orbits { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card { display: flex; flex-direction: column; gap: 18px; min-height: 240px; }
.service-card h3 { margin-top: 6px; }
.service-card p { color: var(--ink-2); font-size: var(--fs-sm); flex-grow: 1; }
@media (max-width: 920px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- Carousels ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 8px 24px;
  margin: -8px -8px 0;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-1);
  display: grid; place-items: center;
  transition: all .25s;
}
.carousel__btn:hover { background: var(--grad-1); border-color: transparent; color: white; box-shadow: var(--shadow-glow-violet); }
.carousel__dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all .25s;
}
.carousel__dots button.active {
  background: var(--grad-1);
  width: 28px;
  border-radius: 4px;
}

.project-card {
  width: 380px;
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg-2);
}
.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.project-card:hover img { transform: scale(1.06); }
.project-card__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.project-card__body h3 { font-size: var(--fs-lg); }
.project-card__body .link-arrow { margin-top: auto; }

@media (max-width: 480px) {
  .project-card { width: 280px; }
  .project-card img { height: 180px; }
}

/* ---------- Stats ---------- */
.stats { position: relative; padding: 0; }
.stats__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.stats > .container { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 120px); }
.stats__head { text-align: center; margin-bottom: 56px; }
.stats__head .eyebrow { color: rgba(255,255,255,0.9); }
.stats__head .eyebrow::before, .stats__head .eyebrow::after { background: rgba(255,255,255,0.6); }
.stats__head h2 { color: white; }
.stats__head h2 .grad-text {
  background: linear-gradient(135deg, #FFE066 0%, #FFFFFF 50%, #10D9C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stats__grid li {
  text-align: center;
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--rad-lg);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stats__grid strong {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5EEAD4 0%, #A7F3D0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stats__grid span { color: white; font-weight: 600; font-size: var(--fs-md); }
.stats__grid small { color: rgba(255,255,255,0.7); font-size: var(--fs-xs); font-family: var(--font-mono); }

@media (max-width: 720px) { .stats__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Solutions ---------- */
.solutions { padding-block: clamp(56px, 7vw, 88px); }
.why { padding-block: clamp(56px, 7vw, 88px); }
.solutions__carousel .carousel__track > * { width: min(880px, 88vw); }
.solution-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
  padding: 36px;
  border-radius: var(--rad-xl);
  background: linear-gradient(135deg, color-mix(in oklab, var(--c1) 22%, var(--bg-2)) 0%, color-mix(in oklab, var(--c2) 22%, var(--bg-2)) 100%);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in oklab, var(--c2) 35%, transparent), transparent 60%);
  pointer-events: none;
}
.solution-card__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: 12px 0; }
.solution-card__copy h3 { font-size: var(--fs-xl); }
.solution-card__copy ul { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.solution-card__copy ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm);
  color: var(--ink-1);
}
.solution-card__copy ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--c1) 80%, white);
  box-shadow: 0 0 10px var(--c1);
}
.solution-card__copy .link-arrow { margin-top: auto; }
.solution-card__visual {
  position: relative;
  border-radius: var(--rad-lg);
  overflow: hidden;
  min-height: 280px;
}
.solution-card__visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

@media (max-width: 720px) {
  .solution-card { grid-template-columns: 1fr; padding: 24px; }
  .solution-card__visual { min-height: 200px; }
}

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--rad-xl);
  overflow: hidden;
}
.why-item {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  position: relative;
  transition: background .3s;
}
.why-item:nth-child(3n) { border-right: 0; }
.why-item:nth-last-child(-n+3) { border-bottom: 0; }
.why-item:hover { background: linear-gradient(180deg, rgba(139,92,246,0.08), rgba(59,130,246,0.04)); }
.why-item__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 18px;
}
.why-item h3 { font-size: var(--fs-lg); margin-bottom: 10px; }
.why-item p { color: var(--ink-2); font-size: var(--fs-sm); }

@media (max-width: 880px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why-item { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .why-item:nth-child(2n) { border-right: 0 !important; }
}
@media (max-width: 560px) {
  .why__grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0 !important; }
}

/* ---------- Clients marquee ---------- */
.clients__head { text-align: center; margin-bottom: 36px; }
.clients__head h2 { max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.logo-cell {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color .25s;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}
.logo-cell:hover { color: var(--ink-0); opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi { display: flex; flex-direction: column; gap: 22px; }
.testi blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.testi figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.testi figcaption strong { display: block; font-size: var(--fs-sm); color: var(--ink-0); }
.testi figcaption span { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-family: var(--font-mono); }
@media (max-width: 880px) { .testimonials__grid { grid-template-columns: 1fr; } }

/* ---------- CTA Build ---------- */
.cta-build {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.cta-build__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.cta-build__copy h2 { margin: 18px 0 20px; }
.cta-build__copy p { max-width: 42ch; margin-bottom: 32px; }
.cta-build__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* X-shaped collage */
.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 520px;
  margin-inline: auto;
}
.collage__cell {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.collage__cell img { width: 100%; height: 100%; object-fit: cover; }
.collage__cell.c1 { width: 32%; height: 32%; top: 6%; left: 6%; transform: rotate(-6deg); }
.collage__cell.c2 { width: 32%; height: 32%; top: 6%; right: 6%; transform: rotate(6deg); }
.collage__cell.c3 { width: 36%; height: 36%; top: 32%; left: 32%; transform: rotate(0deg); z-index: 2; box-shadow: 0 40px 80px -20px rgba(139,92,246,0.4); border-color: rgba(139,92,246,0.4); }
.collage__cell.c4 { width: 32%; height: 32%; bottom: 6%; left: 6%; transform: rotate(6deg); }
.collage__cell.c5 { width: 32%; height: 32%; bottom: 6%; right: 6%; transform: rotate(-6deg); }
.collage:hover .c1 { transform: rotate(-10deg) translate(-6px, -6px); }
.collage:hover .c2 { transform: rotate(10deg) translate(6px, -6px); }
.collage:hover .c4 { transform: rotate(10deg) translate(-6px, 6px); }
.collage:hover .c5 { transform: rotate(-10deg) translate(6px, 6px); }
.collage:hover .c3 { transform: scale(1.06); }

@media (max-width: 880px) {
  .cta-build__grid { grid-template-columns: 1fr; }
  .collage { max-width: 380px; }
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 5vw, 72px);
}
.faq__grid h2 { margin: 18px 0 22px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 22px 24px;
  transition: background .3s, border-color .3s;
}
.faq-item[open] { background: rgba(139,92,246,0.06); border-color: rgba(139,92,246,0.25); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink-0);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px;
  font-family: var(--font-body);
  transition: transform .3s, background .3s;
  flex-shrink: 0;
}
.faq-item[open] summary span { transform: rotate(45deg); background: var(--grad-1); border-color: transparent; color: white; }
.faq-item p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .faq__grid { grid-template-columns: 1fr; }
}
