/* ==========================================================================
   Nexoro — home page only
   Loaded after main.css. Shared components stay in main.css.
   ========================================================================== */

/* ---------- Full-screen hero slider (auto-advancing, see main.js) ---------- */
/* Without JavaScript only the first slide shows; the rest of the page covers the others. */
.hero-slider { position: relative; isolation: isolate; overflow: hidden; background: #070b09; color: #b4c0bb; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  min-height: calc(100vh - 73px); min-height: calc(100svh - 73px);
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

/* Background: soft colour fields and rings, one palette per slide */
.hero-slide-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 11, 9, .92), rgba(7, 11, 9, 0) 38%), linear-gradient(90deg, rgba(7, 11, 9, .55), rgba(7, 11, 9, 0) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .6; background: var(--blob); animation: drift 16s ease-in-out infinite alternate; }
.blob--a { width: 48vw; height: 48vw; top: -16vw; right: -8vw; --blob: var(--c1); }
.blob--b { width: 40vw; height: 40vw; bottom: -20vw; left: -12vw; --blob: var(--c2); opacity: .45; animation-duration: 21s; animation-direction: alternate-reverse; }
.blob--c { width: 24vw; height: 24vw; top: 34%; left: 46%; --blob: var(--c3); opacity: .38; animation-duration: 13s; }
.ring { position: absolute; top: 50%; right: -18vmin; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); transform: translateY(-50%); }
.ring--a { width: 88vmin; height: 88vmin; }
.ring--b { width: 128vmin; height: 128vmin; right: -38vmin; border-color: rgba(255, 255, 255, .05); }
@keyframes drift { to { transform: translate3d(4vw, 3vw, 0) scale(1.12); } }

.hero-slide--dev { --c1: #6fd41a; --c2: #0a8f5b; --c3: #17c3a2; --hl: linear-gradient(95deg, #89e72e 10%, #d9ff9c 60%, #7de0c8 100%); }
.hero-slide--mobile { --c1: #4f5bf5; --c2: #05b3c4; --c3: #89e72e; --hl: linear-gradient(95deg, #7de0c8 5%, #9db4ff 55%, #c9b8ff 100%); }
.hero-slide--products { --c1: #f9601a; --c2: #1d66f2; --c3: #05b3c4; --hl: linear-gradient(95deg, #ffb07a 5%, #89e72e 50%, #7fd6ff 100%); }

/* Slide content */
.hero-slide-inner { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 6vw, 72px) clamp(128px, 13vw, 156px); }
.hero-slide-inner > * { min-width: 0; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.3rem); letter-spacing: -.045em; line-height: 1.05; }
.hero-title em { font-style: normal; background: var(--hl); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-slider .lead { color: #c3cdc9; margin-top: 22px; max-width: 54ch; }
.hero-slider .btn-row { margin-top: 34px; }
.hero-slider .btn { padding: 15px 26px; font-size: 1rem; }
.hero-slider .btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 40px rgba(137, 231, 46, .3); }
.hero-slider .btn-primary:hover { background: var(--lime-strong); }
.hero-slider .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
@media (min-width: 960px) { .hero-slide-inner { grid-template-columns: 1.05fr .95fr; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px);
  color: #e6edea; font-size: .86rem; font-weight: 600;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(137, 231, 46, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(137, 231, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(137, 231, 46, 0); } }

/* Entrance animation each time a slide becomes active */
.hero-slide.is-active .hero-slide-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-active .hero-slide-text > :nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-slide-text > :nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-slide-text > :nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-slide-visual { animation: visual-in 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes visual-in { from { opacity: 0; transform: translateX(48px) scale(.96); } to { opacity: 1; transform: none; } }

/* Slide visuals */
.hero-slide-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  color: #fff; font-size: .88rem; line-height: 1.35;
  animation: float 5s ease-in-out infinite alternate;
}
.float-card small { display: block; color: #b4c0bb; font-size: .78rem; }
.float-card--a { left: -3%; bottom: -7%; }
.float-card--b { right: -2%; top: -6%; animation-delay: -2.5s; }
.float-ok { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.float-ok svg { width: 18px; height: 18px; stroke-width: 2.6; }
.float-live { width: 12px; height: 12px; margin: 0 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(137, 231, 46, .22); flex: none; }
@keyframes float { to { transform: translateY(-12px); } }

/* 1. Software development: code editor */
.mock-editor {
  width: min(100%, 560px); border-radius: 18px; overflow: hidden;
  background: rgba(10, 15, 13, .78); border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(137, 231, 46, .08);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: .78rem; color: #7d8a85; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock-bar span { margin-left: 10px; }
.mock-code { margin: 0; padding: 22px 24px 26px; overflow: hidden; font-family: var(--mono); font-size: clamp(.62rem, 1.05vw, .86rem); line-height: 1.85; color: #d5deda; white-space: pre; }
.mock-code .c { color: #6c7a75; }
.mock-code .k { color: #7de0c8; }
.mock-code .f { color: #a5f060; }
.mock-code .s { color: #ffd58a; }

/* 2. Mobile apps: phones */
.phones { position: relative; width: min(100%, 470px); aspect-ratio: 47 / 50; }
.phone {
  position: absolute; left: 3%; top: 7%; width: 44%; height: 86%;
  border-radius: 12% / 6%; border: 7px solid #1c2521; background: #0d1311;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55); transform: rotate(-9deg); overflow: hidden;
}
.phone-screen { height: 100%; padding: 16% 9% 9%; display: grid; gap: 4.5%; align-content: start; background: linear-gradient(180deg, #16223a, #0d1311 70%); }
.sk { display: block; border-radius: 9px; background: rgba(255, 255, 255, .09); height: 12px; }
.sk--title { width: 62%; height: 16px; background: rgba(255, 255, 255, .26); }
.sk--line { width: 84%; }
.sk--card { height: 84px; border-radius: 14px; background: linear-gradient(135deg, rgba(125, 224, 200, .5), rgba(79, 91, 245, .5)); }
.sk--row { height: 40px; border-radius: 12px; }
.sk--btn { height: 36px; border-radius: 999px; background: var(--lime); margin-top: 4px; }
.phone-shot { position: absolute; right: -2%; bottom: 0; height: 100%; width: auto; max-width: none; filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .5)); }

/* 3. Products: fan of product cards */
.fan { display: flex; justify-content: center; align-items: center; padding-block: 30px; }
.fan-card {
  width: 214px; flex: none; margin-inline: -8px; border-radius: 22px; overflow: hidden;
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.fan-card:nth-child(1) { transform: rotate(-9deg) translateY(22px); }
.fan-card:nth-child(2) { transform: translateY(-18px); z-index: 1; }
.fan-card:nth-child(3) { transform: rotate(9deg) translateY(22px); }
.fan-card:hover, .fan-card:focus-visible { transform: translateY(-30px) scale(1.05); z-index: 2; }
.fan-top { display: grid; place-items: center; height: 170px; background: var(--p-hero-bg); }
.fan-top .logo-plate { padding: 10px 14px; }
.fan-top .logo-plate img { height: 38px; }
.fan-top .wordmark { font-size: 1.15rem; }
.fan-body { display: grid; gap: 2px; padding: 18px 20px 22px; border-top: 4px solid var(--p-accent); }
.fan-body strong { font-size: 1.1rem; letter-spacing: -.02em; }
.fan-body small { color: var(--p-accent-text); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Tabs and arrows */
.hero-slider-nav { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 38px); z-index: 3; }
.hero-slider-nav[hidden] { display: none; }
.hero-slider-nav-inner { display: flex; align-items: flex-end; gap: 12px; }
.hero-tabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 24px); margin-right: clamp(0px, 2vw, 24px); }
.hero-tab {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  padding: 16px 0 6px; background: none; border: 0; border-top: 2px solid rgba(255, 255, 255, .18);
  color: #8c9994; font-weight: 650; font-size: .96rem; text-align: left; cursor: pointer;
  transition: color .2s;
}
.hero-tab small { font-family: var(--mono); font-size: .76rem; color: #6c7a75; }
.hero-tab:hover { color: #fff; }
.hero-tab[aria-current="true"] { color: #fff; }
.hero-tab::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--lime); box-shadow: 0 0 12px rgba(137, 231, 46, .7); }
.hero-tab[aria-current="true"]::after { width: 100%; }
/* 7s matches HERO_INTERVAL in main.js */
.hero-slider.is-playing .hero-tab[aria-current="true"]::after { animation: hero-progress 7s linear forwards; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }
.hero-arrow {
  width: 48px; height: 48px; flex: none; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); transition: background-color .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow--prev svg { transform: rotate(180deg); }

@media (max-width: 959px) {
  .hero-slide { align-items: flex-start; }
  .hero-slide-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .float-card { display: none; }
  .mock-editor { transform: none; }
  .phones { width: min(78%, 340px); }
  .hero-arrow { display: none; }
  .hero-tabs { margin-right: 0; }
  .hero-tab { font-size: .8rem; flex-direction: column; gap: 2px; line-height: 1.25; }
  .fan-card { width: 31%; max-width: 150px; margin-inline: -4px; border-radius: 16px; }
  .fan-top { height: 104px; }
  .fan-top .logo-plate { padding: 7px 9px; border-radius: 10px; }
  .fan-top .logo-plate img { height: 24px; }
  .fan-top .logo-plate img[src$=".svg"] { width: 24px; }
  .fan-top .wordmark { font-size: .78rem; }
  .fan-body { padding: 12px 12px 14px; }
  .fan-body strong { font-size: .92rem; }
  .fan-body small { font-size: .56rem; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08); overflow: hidden; padding-block: 18px; position: relative; }
/* Fade the text out at both ends into the dark bar itself (not into the page behind it). */
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), rgba(12, 17, 15, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), rgba(12, 17, 15, 0)); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track li { display: flex; align-items: center; white-space: nowrap; color: #8c9994; font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.marquee-track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-inline: 28px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bento-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.bento-item::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px 220px at 100% 0%, rgba(137, 231, 46, .22), transparent 70%);
}
.bento-item:hover { border-color: #b9dc9c; box-shadow: var(--shadow-lg); background: #fff; }
.bento-item:hover::before { opacity: 1; }
.bento-item > * { position: relative; }
.bento-item p { color: var(--muted); font-size: .97rem; }
.bento-item .icon { background: #fff; }
.bento-item .text-link { margin-top: auto; padding-top: 8px; }

.bento-item--feature { background: var(--ink); border-color: var(--ink); color: #fff; padding: clamp(28px, 4vw, 40px); }
.bento-item--feature:hover { background: var(--ink); border-color: var(--lime); }
.bento-item--feature::before { opacity: 1; background: radial-gradient(520px 300px at 100% 0%, rgba(137, 231, 46, .24), transparent 70%); }
.bento-item--feature h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; }
.bento-item--feature p { color: #b4c0bb; font-size: 1.02rem; max-width: 44ch; }
.bento-item--feature .icon { background: rgba(137, 231, 46, .12); border-color: rgba(137, 231, 46, .28); color: var(--lime); }
.bento-item--feature .text-link { color: var(--lime); }

.pipeline { margin-top: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); font-family: var(--mono); font-size: .82rem; overflow: hidden; }
.pipeline-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #7d8a85; }
.pipeline-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pipeline-bar span { margin-left: 8px; }
.pipeline li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; color: #c9d3cf; }
.pipeline li + li { border-top: 1px dashed rgba(255, 255, 255, .08); }
.pipeline li span::before { content: "✓"; color: var(--lime); margin-right: 10px; }
.pipeline b { color: var(--lime); font-weight: 600; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--feature { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-item--feature { grid-column: span 2; grid-row: span 2; }
  .bento-item--wide { grid-column: span 2; }
}

/* ---------- Product showcase ---------- */
.showcase {
  display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: var(--p-hero-bg); color: var(--p-hero-muted);
  border: 1px solid var(--p-border);
  position: relative; overflow: hidden;
}
.showcase + .showcase { margin-top: 24px; }
.showcase-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.showcase .logo-plate { margin-bottom: 8px; }
.showcase .tag { color: var(--p-hero-text); opacity: .65; }
.showcase h3 { color: var(--p-hero-text); font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.035em; }
.showcase p { font-size: 1.05rem; max-width: 46ch; }
.showcase .checks { color: var(--p-hero-text); font-weight: 550; gap: 8px; margin-block: 4px 10px; }
.showcase .checks svg { color: var(--p-accent); }
.showcase .btn-outline { color: var(--p-hero-text); border-color: color-mix(in srgb, var(--p-hero-text) 30%, transparent); }
.showcase-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.showcase-visual img { max-height: 380px; width: auto; filter: drop-shadow(0 24px 40px rgba(36, 20, 11, .18)); }
.showcase.theme-parkwayz { border-color: #0c2554; }
.showcase.theme-parkwayz .panel-bar { background: #0c2554; color: #bacde4; border-color: #0c2554; }
.showcase.theme-parkwayz .panel-bar i { background: #2f5896; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: 1fr 1fr; }
}

/* ---------- Product slider (auto-advancing, see main.js) ---------- */
/* Without JavaScript this is still a swipeable, scrollable row. */
.slider-track {
  position: relative; display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: 28px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .showcase { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; margin-top: 0; }
.showcase > * { min-width: 0; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.slider-controls[hidden] { display: none; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.slider-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn--prev svg { transform: rotate(180deg); }
.slider-dots { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.slider-dot {
  position: relative; overflow: hidden; cursor: pointer;
  padding: 8px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 650; font-size: .88rem;
  transition: color .2s, background-color .2s;
}
.slider-dot:hover { color: var(--ink); }
.slider-dot[aria-current="true"] { background: var(--ink); color: #fff; }
.slider-dot::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--p-accent); }
/* Progress bar on the active tab; 6s matches INTERVAL in main.js */
.slider.is-playing .slider-dot[aria-current="true"]::after { animation: slide-progress 6s linear forwards; }
@keyframes slide-progress { to { width: 100%; } }

/* ---------- Process ---------- */
.process { position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 320px at 0% 0%, rgba(137, 231, 46, .12), transparent 70%); }
.process > .container { position: relative; }
.process-steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.process-steps li {
  counter-increment: step; position: relative;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 36px;
  font-family: var(--mono); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--lime);
}
.process-steps h3 { margin-bottom: 8px; }
.process-steps p { color: #a7b3ae; font-size: .96rem; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why-item { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg-soft)); display: flex; flex-direction: column; gap: 12px; }
.why-item p { color: var(--muted); font-size: .97rem; }

/* ---------- Scroll reveal (CSS only, progressive enhancement) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .badge-dot { animation: none; }
}
