/* =========================================================
   Home page redesign — loaded after style.css
   ========================================================= */

.lead-text { font-size: 1.05rem; margin-bottom: 8px; }

/* Faint grid backdrop */
.section--grid { overflow: hidden; }
.section--grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 160, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
}
.section--grid > .container { position: relative; }

/* Cursor-follow glow */
.glow-card { position: relative; isolation: isolate; }
.glow-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 0, .14), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.glow-card:hover::after { opacity: 1; }

/* ===== Ticker ===== */
.ticker {
  position: relative; z-index: 2; overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 138, 0, .08), rgba(47, 91, 255, .08));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: scroll-x 60s linear infinite; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 28px;
  color: #e6ebff; font-weight: 500; white-space: nowrap;
}
.ticker__item .icon { width: 20px; height: 20px; color: var(--orange); }
.ticker__item::after { content: '✦'; margin-left: 28px; color: rgba(255, 255, 255, .25); font-size: .8rem; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ===== Split section header ===== */
.head-split { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; margin-bottom: 44px; }
.head-split > div:first-child { max-width: 700px; }
.head-split .filters { margin: 0; justify-content: center; align-self: stretch; min-width: 0; }

/* ===== Bento services ===== */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto);
  grid-auto-flow: dense; gap: 18px;
}
.bento__card {
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  padding: 24px; border-radius: 22px; color: var(--text);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.bento__card[hidden] { display: none; }
.bento__card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 0, .5); box-shadow: var(--shadow-lg); }
.bento__card--xl { grid-column: span 2; grid-row: span 2; }
.bento__card--wide { grid-column: span 2; }
.bento.is-filtered .bento__card { grid-column: auto; grid-row: auto; }

.bento__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bento__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: var(--grad-blue); box-shadow: 0 8px 20px rgba(47, 91, 255, .35);
}
.bento__card:nth-child(3n+2) .bento__icon { background: var(--grad-orange); box-shadow: var(--glow-orange); }
.bento__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 50px; color: #cfd7f7;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
}
.bento__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.bento__body p {
  font-size: .9rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bento__card--photo .bento__body, .bento__card--accent .bento__body { margin-top: auto; }
.bento__card--xl .bento__body p { -webkit-line-clamp: 4; }

/* Orange accent card */
.bento__card--accent { background: var(--grad-orange); border-color: transparent; color: #fff3e6; box-shadow: var(--glow-orange); }
.bento__card--accent .bento__icon { background: rgba(255, 255, 255, .2); box-shadow: none; }
.bento__card--accent .bento__tag { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }
.bento__card--accent .bento__body h3 { font-size: 1.4rem; }
.bento__card--accent .bento__arrow { opacity: 1; transform: none; background: #fff; color: var(--orange-2); }
.bento__card--accent:hover { border-color: transparent; }
.bento__arrow {
  position: absolute; right: 20px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
  opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .3s, background .3s;
}
.bento__arrow .icon { width: 18px; height: 18px; transform: rotate(-45deg); }
.bento__card:hover .bento__arrow { opacity: 1; transform: none; background: var(--orange); border-color: transparent; }
.bento__card:not(.bento__card--photo) .bento__body { padding-right: 44px; }

/* Photo tiles inside bento */
.bento__card--photo { color: #dfe5ff; }
.bento__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .7s ease;
}
.bento__card--xl .bento__img { object-position: center; }
.bento__card--photo::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7, 11, 36, .97) 10%, rgba(7, 11, 36, .55) 55%, rgba(7, 11, 36, .2) 100%);
}
.bento__card--photo:hover .bento__img { transform: scale(1.05); }
.bento__card--photo .bento__tag { background: rgba(255, 138, 0, .9); color: #fff; border-color: transparent; }
.bento__card--photo .bento__body { max-width: 520px; padding-right: 50px; }
.bento__card--xl .bento__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.bento__card--xl .bento__body p { font-size: 1rem; }
.bento__card--xl { padding: 32px; }

/* ===== Showcase: features + admin mockup ===== */
.showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin-top: 34px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--orange); background: rgba(255, 138, 0, .1); border: 1px solid rgba(255, 138, 0, .28);
}
.feature:nth-child(even) .feature__icon { color: var(--sky); background: rgba(19, 181, 255, .1); border-color: rgba(19, 181, 255, .28); }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 2px; }
.feature p { font-size: .9rem; line-height: 1.55; }

.mock { margin: 0; position: relative; }
.mock::before {
  content: ''; position: absolute; inset: 8% -4% -6% 8%; z-index: 0; border-radius: 30px; filter: blur(60px);
  background: linear-gradient(135deg, rgba(47, 91, 255, .5), rgba(255, 138, 0, .35));
}
.mock__window {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  background: #0b1238; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .6s ease;
}
.mock:hover .mock__window { transform: none; }
.mock__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #080d2c; border-bottom: 1px solid var(--border); }
.mock .dots { display: flex; gap: 6px; }
.mock .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock .dots i:nth-child(2) { background: #febc2e; }
.mock .dots i:nth-child(3) { background: #28c840; }
.mock__url { flex: 1; font-size: .75rem; color: var(--muted); padding: 4px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.mock__body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.mock__side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: rgba(255, 255, 255, .02); border-right: 1px solid var(--border); font-size: .78rem; }
.mock__side img { width: 100px; margin: 0 0 14px 6px; }
.mock__side span { padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.mock__side .is-on { color: #fff; background: rgba(255, 138, 0, .15); box-shadow: inset 3px 0 0 var(--orange); }
.mock__main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__stats div { padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.mock__stats small { display: block; font-size: .68rem; color: var(--muted); margin-bottom: 8px; }
.mock__skel { display: block; height: 10px; width: 70%; border-radius: 6px; background: var(--grad-blue); opacity: .8; }
.mock__skel--o { background: var(--grad-orange); width: 55%; }
.mock__chart {
  display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px;
  border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
}
.mock__chart span {
  flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(0deg, var(--blue), var(--sky));
  transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .8, .2, 1) var(--d);
}
.mock__chart span:nth-child(3n) { background: linear-gradient(0deg, var(--orange-2), var(--gold)); }
.mock.visible .mock__chart span { transform: scaleY(1); }
.mock__rows { display: grid; gap: 6px; font-size: .76rem; color: #dfe5ff; }
.mock__rows li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.mock__rows li > span { font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.mock__rows .live { background: #e5383b; color: #fff; animation: blink 1.6s ease-in-out infinite; }
.mock__rows em { margin-left: auto; font-style: normal; color: #4ade80; font-size: .7rem; }
.mock__rows em.off { color: var(--muted); }
@keyframes blink { 50% { opacity: .55; } }
.mock figcaption { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-size: .8rem; color: var(--muted); }

/* ===== Solutions mosaic ===== */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 20px;
  border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s;
}
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7, 11, 36, .95) 0%, rgba(7, 11, 36, .35) 55%, rgba(7, 11, 36, .05) 100%);
}
.tile:hover { border-color: var(--orange); box-shadow: 0 18px 40px rgba(255, 122, 0, .18); }
.tile:hover img { transform: scale(1.06); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.tile__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px;
  color: #fff; background: var(--grad-blue);
}
.tile:nth-child(even) .tile__icon { background: var(--grad-orange); }
.tile__icon .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 1.1rem; }
.tile--xl h3 { font-size: 1.6rem; }
.tile__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--orange);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .3s;
}
.tile__link .icon { width: 16px; height: 16px; }
.tile:hover .tile__link, .tile:focus-within .tile__link { max-height: 30px; opacity: 1; }

/* ===== Process steps ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.step {
  overflow: hidden; padding: 26px 24px 28px; border-radius: 20px; min-height: 200px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--border); transition: border-color .3s, transform .3s;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step__num {
  display: block; margin-bottom: 18px; font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 138, 0, .7);
}
.step:nth-child(even) .step__num { -webkit-text-stroke-color: rgba(19, 181, 255, .7); }
.step:hover .step__num { color: rgba(255, 138, 0, .15); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: .92rem; line-height: 1.6; }
.step--cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  background: var(--grad-orange); border-color: transparent; color: #fff4e8; box-shadow: var(--glow-orange);
}
.step--cta h3 { font-size: 1.4rem; }
.step--cta .btn { margin-top: 8px; padding: 10px 18px; font-size: .9rem; }
.step--cta .btn .icon { width: 16px; height: 16px; }

/* ===== Tech marquee ===== */
.tech-section { overflow: hidden; }
.marquee { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: scroll-x 40s linear infinite; padding-right: 16px; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 16px;
  font-size: 1.05rem; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-orange); box-shadow: 0 0 12px var(--orange); }
.marquee__row--rev .chip i { background: var(--grad-blue); box-shadow: 0 0 12px var(--sky); }

/* ===== CTA with animated border ===== */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cta-x {
  position: relative; padding: 2px; border-radius: 28px; overflow: hidden;
  background: conic-gradient(from var(--angle), var(--orange), var(--purple), var(--sky), var(--orange));
  animation: spin 6s linear infinite; box-shadow: 0 30px 80px rgba(106, 61, 240, .25);
}
@keyframes spin { to { --angle: 360deg; } }
.cta-x__inner {
  position: relative; border-radius: 26px; padding: 64px 40px; text-align: center; overflow: hidden;
  background:
    radial-gradient(520px 280px at 50% 0%, rgba(255, 138, 0, .22), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(47, 91, 255, .25), transparent 70%),
    radial-gradient(400px 260px at 0% 100%, rgba(106, 61, 240, .25), transparent 70%),
    #0a0f30;
}
.cta-x__inner h2 { max-width: 820px; margin: 0 auto 16px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta-x__inner p { max-width: 760px; margin: 0 auto 32px; color: #c9d1ef; }
.cta-x__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ===== FAQ: compact two-column ===== */
#faq { padding: 80px 0; }
.section__head--tight { margin-bottom: 36px; }
.faq.faq--grid {
  max-width: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start;
}
.faq__col { display: grid; gap: 12px; }
.faq--grid .faq__item summary { padding: 16px 20px; font-size: .95rem; }
.faq--grid .faq__item p { padding: 0 20px 18px; font-size: .92rem; }
.faq-help--bar {
  display: flex; align-items: center; gap: 16px; margin: 28px auto 0; max-width: 760px; padding: 16px 20px;
}
.faq-help--bar > div { flex: 1; }
.faq-help--bar span { font-size: .9rem; }
.faq-help--bar .btn, .faq-help--bar .btn:hover { padding: 10px 20px; font-size: .9rem; color: #fff; word-break: normal; }

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .marquee__track, .cta-x { animation: none; }
  .mock__window { transform: none; }
  .mock__chart span { transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .head-split { flex-direction: column; align-items: flex-start; }
  .head-split .filters { justify-content: flex-start; max-width: none; align-self: stretch; min-width: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 50px; }
  .mock { max-width: 640px; width: 100%; margin-inline: auto; }
  .mock__window { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}

@media (max-width: 760px) {
  .head-split .filters { margin: 0 -16px; }
  .faq.faq--grid { grid-template-columns: 1fr; }
  #faq { padding: 60px 0; }
  .faq-help--bar { flex-wrap: wrap; }
  .faq-help--bar .btn { flex: 1 1 100%; }
  .ticker__item { padding: 14px 20px; font-size: .9rem; }
  .ticker__item::after { margin-left: 20px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card, .bento__card--xl, .bento__card--wide { grid-column: auto; grid-row: auto; min-height: 0; }
  .bento__card--photo { min-height: 280px; }
  .bento__card--xl { min-height: 360px; padding: 24px; }
  .bento__arrow { opacity: 1; transform: none; }
  .feature-list { grid-template-columns: 1fr; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mosaic { grid-auto-rows: 170px; gap: 12px; }
  .tile--xl { grid-row: span 2; }
  .tile__body { padding: 14px; }
  .tile h3 { font-size: .95rem; }
  .tile--xl h3 { font-size: 1.3rem; }
  .tile__link { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__num { font-size: 2.6rem; margin-bottom: 12px; }
  .cta-x__inner { padding: 44px 20px; }
  .cta-x__actions .btn { flex: 1 1 100%; }
  .chip { padding: 12px 20px; font-size: .95rem; }
}
