/* =========================================================
   MITYX WEBSITE — CUSTOMIZATION GUIDE
   ---------------------------------------------------------
   Main colors are controlled here. Replace the variables
   below rather than hunting through the stylesheet.
   Images can be replaced in /assets/.
   ========================================================= */

:root {
  --black: #05070a;
  --black-soft: #0a0e13;
  --panel: #0e141b;
  --panel-2: #121a22;
  --white: #f5f8fa;
  --muted: #aab4bd;
  --line: rgba(255,255,255,.11);
  --blue: #09baf5;
  --blue-strong: #0879f6;
  --green: #35e5a2;
  --max: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body, button, input, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 120px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999;
  background: var(--white); color: var(--black); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: fixed; z-index: 1000; inset: 0 0 auto;
  background: rgba(5,7,10,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(5,7,10,.9); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 48px; height: 48px; overflow: hidden; display: block; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
/* The supplied logo is displayed as-is. No CSS filters or color changes are applied. */

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav > a:not(.nav-cta) {
  text-decoration: none; color: #cbd2d7; font-size: .9rem;
}
.desktop-nav > a:not(.nav-cta):hover { color: var(--white); }
.nav-cta {
  text-decoration: none; font-size: .82rem; font-weight: 750;
  padding: 11px 16px; border: 1px solid rgba(53,229,162,.45);
  border-radius: 999px; color: var(--green);
}
.nav-cta:hover { background: rgba(53,229,162,.08); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 1px; background: var(--white); margin: 6px 0; }
.mobile-nav { padding: 0 20px 20px; }
.mobile-nav a { display: block; text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line); }

/* Shared */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--green); text-transform: uppercase; letter-spacing: .17em;
  font-size: .7rem; font-weight: 800; margin: 0 0 22px;
}
.eyebrow span { width: 25px; height: 1px; background: linear-gradient(90deg,var(--blue),var(--green)); }
.section-heading { max-width: 760px; margin-bottom: 62px; }
.section-heading h2, .about-copy h2, .contact-intro h2 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: .98; letter-spacing: -.055em; margin: 0 0 25px;
}
.section-heading h2 em, .about-copy h2 em, .contact-intro h2 em {
  font-style: normal;
  background: linear-gradient(100deg,var(--blue),var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 20px; border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: .88rem;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #02100d;
  background: linear-gradient(100deg, var(--blue), var(--green));
  box-shadow: 0 14px 40px rgba(9,186,245,.16);
}
.button-primary:hover { box-shadow: 0 18px 48px rgba(53,229,162,.18); }
.text-link { text-decoration: none; color: #dce4e9; font-weight: 700; font-size: .88rem; }
.text-link span { margin-left: 5px; color: var(--green); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .15s; }

/* Hero */
.hero {
  min-height: 100svh; padding-top: 160px; display: flex; align-items: center;
  overflow: hidden; background:
    radial-gradient(circle at 75% 35%, rgba(9,186,245,.11), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(53,229,162,.06), transparent 28%),
    var(--black);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.hero-glow-a { background: var(--blue); top: 18%; right: 12%; animation: drift 9s ease-in-out infinite; }
.hero-glow-b { background: var(--green); bottom: 2%; left: 8%; animation: drift 11s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(35px,-25px) scale(1.12); } }

.hero-inner { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-copy h1 {
  max-width: 720px; font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: .91; letter-spacing: -.065em; margin: 0;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg,var(--blue),var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { max-width: 610px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); margin: 30px 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/*.hero-visual { min-height: 520px; display: grid; place-items: center; position: relative; perspective: 900px; }
.visual-window {
  width: min(100%, 540px); aspect-ratio: 1.15;
  border: 1px solid rgba(255,255,255,.15); border-radius: 18px;
  background: rgba(13,19,25,.78); box-shadow: 0 40px 100px rgba(0,0,0,.55);
  transform: rotate(2deg); overflow: hidden; position: relative; z-index: 2;
  animation: floatWindow 7s ease-in-out infinite;
}*/

@keyframes floatWindow { 50% { transform: rotate(-1deg) translateY(-10px); } }
.window-top { height: 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 15px; color: #69737b; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.window-dots { display: flex; gap: 5px; margin-right: 15px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #46515a; }
.mock-page { display: grid; grid-template-columns: 78px 1fr; height: calc(100% - 42px); }
.mock-sidebar { border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(9,186,245,.07), transparent); }
.mock-content { padding: 42px; }
.mock-line, .mock-title { height: 8px; border-radius: 10px; background: rgba(255,255,255,.12); width: 78%; margin: 10px 0; }
.mock-line.small { width: 28%; background: var(--green); opacity: .7; }
.mock-line.medium { width: 55%; }
.mock-title { height: 28px; width: 84%; background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.18)); margin: 20px 0; }
.mock-buttons { display: flex; gap: 8px; margin-top: 25px; }
.mock-buttons span, .mock-buttons b { display: block; width: 84px; height: 28px; border-radius: 99px; background: linear-gradient(90deg,var(--blue),var(--green)); }
.mock-buttons b { width: 62px; background: rgba(255,255,255,.08); }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 42px; }
.mock-cards i { display: block; aspect-ratio: 1.1; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(145deg, rgba(9,186,245,.12), rgba(255,255,255,.02)); }
.cursor { position: absolute; width: 20px; height: 28px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-40deg); right: 21%; bottom: 18%; filter: drop-shadow(0 0 8px var(--blue)); animation: cursorMove 4s ease-in-out infinite; }
@keyframes cursorMove { 50% { right: 34%; bottom: 32%; } }
.orbit { position: absolute; border: 1px solid rgba(53,229,162,.25); border-radius: 50%; z-index: 1; }
.orbit-one { width: 520px; height: 520px; transform: rotate(25deg) scaleY(.35); }
.orbit-two { width: 420px; height: 420px; transform: rotate(-45deg) scaleY(.35); border-color: rgba(9,186,245,.22); }
.floating-tag {
  position: absolute; z-index: 3; padding: 8px 12px; border: 1px solid var(--line);
  background: rgba(10,14,19,.88); border-radius: 999px; font-size: .7rem; letter-spacing: .08em;
  color: #dbe4e8; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.tag-one { top: 18%; left: 0; }
.tag-two { top: 12%; right: 2%; }
.tag-three { bottom: 14%; right: 4%; }
.scroll-cue { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); color: #667179; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(var(--green), transparent); }

/* Showcase */
.showcase { background: var(--black-soft); border-top: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.showcase-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s ease;
}
.showcase-card:hover { transform: translateY(-7px); border-color: rgba(53,229,162,.32); }
.card-wide { grid-column: span 2; }
.card-art { min-height: 330px; position: relative; overflow: hidden; }
.card-copy { padding: 25px 27px 30px; }
.card-number { color: var(--green); font: 700 .68rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.card-copy h3 { font-size: 1.5rem; letter-spacing: -.03em; margin: 11px 0 7px; }
.card-copy p { color: var(--muted); margin: 0; max-width: 620px; font-size: .93rem; }

/* Showcase art */
.art-dashboard {
  background:
    radial-gradient(circle at 70% 30%, rgba(53,229,162,.14), transparent 30%),
    linear-gradient(135deg,#111b24,#080c10);
  /* T: removed other elements so now it needs to be centered 
  padding: 35px; display: flex; flex-direction: column; justify-content: space-between; */  
  padding: 35px; display: flex; flex-direction: column; justify-content: center; 
}
.dash-label { font-size: .65rem; letter-spacing: .16em; color: #6f7c84; }
.dash-chart { height: 150px; display: flex; align-items: end; gap: 8px; max-width: 620px; border-bottom: 1px solid var(--line); }
.dash-chart span { flex: 1; /* T: adjust width of bars max-width:*/ 58px; border-radius: 4px 4px 0 0; background: linear-gradient(var(--green),var(--blue-strong)); opacity: .85; transform-origin: bottom; animation: chart 3.8s ease-in-out infinite alternate; }
.dash-chart span:nth-child(2n) { animation-delay: -.8s; }
@keyframes chart { to { transform: scaleY(.72); } }
.dash-metric { display: flex; align-items: end; gap: 18px; }
.dash-metric strong { font-size: 5rem; line-height: .8; letter-spacing: -.08em; }
.dash-metric span { color: var(--muted); max-width: 170px; font-size: .78rem; }

.art-type {
  padding: 35px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg,#0b1117,#121e25);
}
.art-type span { color: var(--blue); font-size: .68rem; letter-spacing: .16em; }
.art-type strong { font-size: clamp(2.6rem,5vw,5.2rem); line-height: .88; letter-spacing: -.07em; margin: 12px 0; }
.art-type i { color: var(--green); font-size: 1.2rem; }

.art-interaction { display: grid; place-items: center; background: radial-gradient(circle, rgba(9,186,245,.16), transparent 35%), #0b1015; }
.interaction-ring { position: absolute; width: 190px; aspect-ratio: 1; border: 1px solid rgba(9,186,245,.35); border-radius: 50%; animation: pulseRing 3s ease-in-out infinite; }
.interaction-ring::before, .interaction-ring::after { content:""; position:absolute; inset:22px; border:1px solid rgba(53,229,162,.24); border-radius:50%; }
.interaction-ring::after { inset: 48px; border-color: rgba(255,255,255,.15); }
@keyframes pulseRing { 50% { transform: scale(1.12); opacity: .65; } }
.demo-pulse { position: relative; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: var(--white); border-radius: 999px; padding: 15px 21px; cursor: pointer; z-index: 2; }
.demo-pulse:hover { background: rgba(53,229,162,.1); }
.interaction-caption { position: absolute; bottom: 25px; color: #68737a; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }

.art-mobile { display: flex; align-items: center; justify-content: center; gap: 70px; background: linear-gradient(125deg,#0a1015,#101c20); }
.phone { width: 170px; height: 300px; border: 5px solid #222d35; border-radius: 25px; background: #05080a; box-shadow: 0 25px 60px rgba(0,0,0,.45); padding: 14px; position: relative; transform: rotate(-5deg); }
.phone-notch { position: absolute; width: 60px; height: 12px; background: #222d35; border-radius: 0 0 12px 12px; top: 0; left: 50%; transform: translateX(-50%); }
.phone-screen { padding-top: 28px; }
.phone-screen span { display:block; width:30%; height:4px; background:var(--green); margin-bottom:12px; }
.phone-screen b { display:block; width:85%; height:20px; background:linear-gradient(90deg,#fff,rgba(255,255,255,.15)); margin-bottom:9px; border-radius:3px; }
.phone-screen i { display:block; width:65%; height:5px; background:rgba(255,255,255,.14); margin-bottom:22px; }
.phone-screen div { height:45px; margin-bottom:8px; border-radius:5px; border:1px solid var(--line); background:linear-gradient(140deg,rgba(9,186,245,.13),transparent); }
.mobile-lines { display:flex; flex-direction:column; gap:9px; }
.mobile-lines strong { font-size: .72rem; letter-spacing:.15em; color:var(--blue); }
.mobile-lines span { color:var(--muted); font-size:.85rem; }

.concept-note {
  margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; display: flex; gap: 28px; align-items: baseline;
}
.concept-note span { flex: 0 0 auto; font: 700 .63rem/1 ui-monospace, monospace; color: var(--green); letter-spacing:.12em; }
.concept-note p { color: #78848d; font-size: .8rem; margin: 0; }

/* Process */
.process { background: var(--black); }
.process-list { border-top: 1px solid var(--line); }
.process-step {
  display: grid; grid-template-columns: 80px 1fr 50px; gap: 30px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.process-step:hover { padding-left: 15px; padding-right: 15px; background: linear-gradient(90deg,rgba(9,186,245,.035),transparent); }
.step-index { color: var(--green); font: 4000 .72rem/1 ui-monospace,monospace; }
.process-step h3 { font-size: 1.45rem; letter-spacing: -.03em; margin: 0 0 5px; }
.process-step p { color: var(--muted); margin: 0; font-size: .9rem; }
.step-arrow { color: #59656d; font-size: 1.2rem; }

/* About */
.about { background: var(--black-soft); border-block: 1px solid var(--line); }
.about-grid { display:grid; grid-template-columns: .75fr 1.25fr; align-items:center; gap: 90px; }
.about-logo { width: 100%; max-width: 300px;}
.about-logo img {width: 100%; height: auto;}
.about-mark { position: relative; aspect-ratio:1; max-width:390px; display:grid; place-items:center; }
/* T: removed square in background
.about-mark::before { content:""; position:absolute; inset:10%; border:1px solid var(--line); transform:rotate(45deg); }*/
.about-mark span { font-size: clamp(8rem,17vw,14rem); line-height:1; font-weight:900; letter-spacing:-.12em; background:linear-gradient(135deg,var(--blue),var(--green)); -webkit-background-clip:text; color:transparent; }
.about-orbit { position:absolute; inset:0; border:1px solid rgba(53,229,162,.2); border-radius:50%; transform:scaleY(.42) rotate(25deg); animation: orbitSpin 14s linear infinite; }
@keyframes orbitSpin { to { transform:scaleY(.42) rotate(385deg); } }
.about-copy > p:not(.eyebrow) { color:var(--muted); max-width:650px; font-size:1.05rem; }

/* Contact */
.contact { background: var(--black); }
.contact-grid { display:grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items:start; }
.contact-intro h2 { font-size: clamp(3.2rem,6vw,5.7rem); }
.contact-intro > p:not(.eyebrow) { color:var(--muted); max-width:450px; font-size:1.05rem; }
.contact-line { height:1px; width:100%; background:linear-gradient(90deg,var(--blue),transparent); margin:40px 0 20px; }
.contact-small { font-size:.78rem !important; color:#6f7a82 !important; }
.form-panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(22px,4vw,40px); }
.contact-form { display:flex; flex-direction:column; gap:20px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-form label { display:flex; flex-direction:column; gap:8px; }
.contact-form label > span { font-size:.73rem; text-transform:uppercase; letter-spacing:.12em; color:#b7c1c7; font-weight:750; }
.contact-form label small { color:#68747c; text-transform:none; letter-spacing:0; font-weight:500; }
.contact-form input, .contact-form textarea {
  width:100%; border:1px solid rgba(255,255,255,.12); background:#080d12; color:var(--white);
  border-radius:10px; padding:14px 15px; outline:none; transition:border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize:vertical; min-height:130px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color:#56616a; }
.contact-form input:focus, .contact-form textarea:focus { border-color:rgba(53,229,162,.65); box-shadow:0 0 0 3px rgba(53,229,162,.08); }
.button-full { width:100%; border:0; cursor:pointer; margin-top:2px; }
.form-note { color:#647078; font-size:.68rem; line-height:1.5; margin:0; }



/* Footer */
.site-footer { border-top:1px solid var(--line); padding:28px 0; background:#030507; }
.footer-wrap { display:flex; align-items:center; justify-content:space-between; gap:20px; color:#6e7981; font-size:.72rem; }
.footer-brand { width:34px; height:34px; overflow:hidden; }
.footer-brand img { width:34px; height:34px; object-fit:contain; }
.footer-wrap a:last-child { text-decoration:none; color:#aab4ba; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal { opacity:1; transform:none; }
}

/* Tablet/mobile */
@media (max-width: 900px) {
  .desktop-nav { display:none; }
  .menu-toggle { display:block; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns:1fr; }
  .hero { padding-top:125px; }
  .hero-visual { min-height:450px; margin-top:10px; }
  .about-grid { gap:40px; }
  .about-mark { max-width:270px; margin-inline:auto; }
  .contact-grid { gap:55px; }
}
@media (max-width: 680px) {
  .container { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:82px 0; }
  .nav-wrap { min-height:66px; }
  .brand, .brand img { width:42px; height:42px; }
  .hero { padding-top:112px; }
  .hero-copy h1 { font-size:clamp(3rem,15vw,5rem); }
  .hero-actions { /*align-items:stretch*/; flex-direction:column; }
  .button { width:100%; }
  .hero-visual { min-height:360px; }
  .visual-window { width:100%; }
  .mock-content { padding:25px; }
  .mock-sidebar { width:50px; }
  .floating-tag { font-size:.6rem; }
  .tag-one { left:-5px; }
  .tag-two { right:-4px; }
  .tag-three { right:-4px; bottom:10%; }
  .showcase-grid { grid-template-columns:1fr; }
  .card-wide { grid-column:span 1; }
  .card-art { min-height:280px; }
  .art-mobile { gap:22px; padding:15px; }
  .phone { width:130px; height:235px; }
  .mobile-lines { max-width:130px; }
  .concept-note { flex-direction:column; gap:10px; }
  .process-step { grid-template-columns:45px 1fr; gap:15px; }
  .step-arrow { display:none; }
  .process-step h3 { font-size:1.2rem; }
  .field-row { grid-template-columns:1fr; }
  .footer-wrap { flex-wrap:wrap; }
  .footer-wrap p { order:3; width:100%; margin:0; }

/* T: Centered text for phone*/
  .mobile-nav, 
  .section-heading, 
  .hero-copy,
  .card-copy, 
  .about-copy, 
  .contact-intro,
  .form-note 
  { text-align: center; }
}

/* Prevent selecting Interface elements */
.site-header *, 
.hero *, 
.showcase *, 
.process *, 
.about *, 
.contact *, 
.site-footer *
{
  user-select: none;
  -webkit-user-select: none;
}

/* =========================================================
   INFINITE SHOWCASE CAROUSEL
   Design language intentionally matches the Mityx showroom:
   dark surfaces + blue/green accents + technical details.
   ========================================================= */

.showcase-carousel {
  width: 90vw;
  margin-left: calc(50% - 45vw);
  overflow: hidden;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070b0f;
  position: relative;
}

/* Soft fade at both edges
.showcase-carousel::before,
.showcase-carousel::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 10vw;
  pointer-events: none;
}
*/

.showcase-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #070b0f, transparent);
}

.showcase-carousel::after {
  right: 0;
  background: linear-gradient(-90deg, #070b0f, transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 28px 9px 30px;
  animation: mityxCarousel 42s linear infinite;
}

/* Scrolling carousel
.showcase-carousel:hover .carousel-track {
  animation-play-state: paused;
}*/

@keyframes mityxCarousel {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.carousel-item {
  width: 340px;
  flex: 0 0 340px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  transition:
    transform .35s var(--ease),
    border-color .35s ease;
}

.carousel-item:hover {
  transform: translateY(-6px);
  border-color: rgba(53,229,162,.32);
}

.carousel-art {
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #0a1015;
}

.carousel-label {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 3;
  color: #68757d;
  font: 700 .6rem/1 ui-monospace, monospace;
  letter-spacing: .14em;
}

.carousel-caption {
  min-height: 68px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.carousel-caption span {
  color: var(--green);
  font: 700 .62rem/1 ui-monospace, monospace;
}

.carousel-caption strong {
  font-size: .86rem;
  letter-spacing: -.01em;
}


/* ---------------------------------------------------------
   01 — HERO
   --------------------------------------------------------- */

.carousel-hero-art {
  background:
    radial-gradient(circle at 70% 35%, rgba(9,186,245,.20), transparent 28%),
    linear-gradient(135deg,#0b1218,#101b20);
}

.carousel-hero-lines {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 2;
}

.carousel-hero-lines strong {
  display: block;
  font-size: 2.7rem;
  line-height: .88;
  letter-spacing: -.07em;
}

.carousel-hero-lines em {
  font-style: normal;
  color: var(--green);
}

.carousel-hero-lines span {
  display: block;
  width: 130px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg,var(--blue),var(--green));
}

.carousel-hero-lines i {
  display: block;
  width: 45px;
  height: 5px;
  margin-top: 8px;
  background: var(--blue);
}

.carousel-orb {
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: 35px;
  border-radius: 50%;
  border: 1px solid rgba(53,229,162,.25);
  box-shadow:
    inset 0 0 60px rgba(9,186,245,.08),
    0 0 60px rgba(9,186,245,.08);
  animation: carouselOrb 7s ease-in-out infinite;
}

@keyframes carouselOrb {
  50% {
    transform: translate(-20px, 12px) scale(1.08);
  }
}


/* ---------------------------------------------------------
   02 — SERVICES
   --------------------------------------------------------- */

.carousel-services-art {
  padding: 62px 45px 45px;
  background:
    linear-gradient(135deg,rgba(9,186,245,.06),transparent),
    #0a1015;
}

.service-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 250px;
}

.service-stack div {
  display: grid;
  grid-template-columns: 34px 1fr 25px;
  align-items: center;
  width: 250px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 7px;
  transition: transform .3s var(--ease);
}

/*
.service-stack div:nth-child(2) {
  transform: translateX(5px);
}

.service-stack div:nth-child(3) {
  transform: translateX(10px);
}
*/

.service-stack div:hover {
  transform: translateX(15px);
}

.service-stack b {
  color: var(--green);
  font: 700 .58rem/1 ui-monospace,monospace;
}

.service-stack strong {
  font-size: .82rem;
}

.service-stack i {
  color: var(--blue);
  font-style: normal;
}


/* ---------------------------------------------------------
   03 — PRODUCT / SERVICE PRESENTATION
   --------------------------------------------------------- */

.carousel-product-art {
  background:
    radial-gradient(circle at 50% 50%, rgba(53,229,162,.11), transparent 30%),
    #080d11;
}

.product-stage {
  position: absolute;
  inset: 60px 35px 25px;
  display: grid;
  place-items: center;
}

.product-shape {
  width: 130px;
  height: 130px;
  border-radius: 18px;
  background:
    linear-gradient(135deg,rgba(9,186,245,.95),rgba(53,229,162,.8));
  transform:
    perspective(400px)
    rotateX(55deg)
    rotateZ(45deg);
  box-shadow:
    -25px 25px 0 rgba(9,121,246,.16),
    0 35px 50px rgba(0,0,0,.5);
  animation: productFloat 5s ease-in-out infinite;
}

@keyframes productFloat {
  50% {
    transform:
      perspective(400px)
      rotateX(55deg)
      rotateZ(45deg)
      translateY(-12px);
  }
}

.product-shadow {
  position: absolute;
  width: 170px;
  height: 35px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(12px);
  bottom: 20px;
}

.product-stage span {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #637079;
  font: 600 .58rem/1 ui-monospace,monospace;
}


/* ---------------------------------------------------------
   04 — BEFORE / AFTER
   --------------------------------------------------------- */

.carousel-before-art {
  background: #0a0f13;
  padding: 55px 20px 20px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 175px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.before-side,
.after-side {
  padding: 18px;
  position: relative;
}

.before-side {
  background: #111519;
  border-right: 1px solid var(--line);
}

.before-side small,
.after-side small {
  color: #68737a;
  font: 700 .55rem/1 ui-monospace,monospace;
}

.old-lines {
  width: 80%;
  height: 8px;
  margin-top: 22px;
  background: #50575c;
  opacity: .45;
}

.old-lines.short {
  width: 55%;
  margin-top: 9px;
}

.old-box {
  width: 70%;
  height: 55px;
  margin-top: 18px;
  border: 1px solid #343b40;
}

.after-side {
  background:
    radial-gradient(circle at 80% 20%,rgba(53,229,162,.15),transparent 40%),
    #0c1517;
}

.after-side strong {
  display: block;
  margin-top: 25px;
  font-size: 1.35rem;
  line-height: .95;
  letter-spacing: -.04em;
}

.after-side span {
  display: block;
  width: 55px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg,var(--blue),var(--green));
}


/* ---------------------------------------------------------
   05 — RESPONSIVE
   --------------------------------------------------------- */

.carousel-mobile-art {
  background:
    radial-gradient(circle at 70% 60%,rgba(9,186,245,.12),transparent 35%),
    #080d11;
  display: grid;
  place-items: center;
}

.mini-devices {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: rotate(-4deg);
}

.mini-desktop {
  width: 190px;
  height: 120px;
  border: 5px solid #26313a;
  border-radius: 8px;
  padding: 14px;
  background: #05080a;
}

.mini-phone {
  width: 65px;
  height: 125px;
  border: 4px solid #26313a;
  border-radius: 12px;
  padding: 10px 7px;
  background: #05080a;
}

.mini-desktop div,
.mini-phone div {
  width: 65%;
  height: 7px;
  background: var(--green);
  margin-bottom: 12px;
}

.mini-desktop i,
.mini-phone i {
  display: block;
  height: 5px;
  background: rgba(255,255,255,.13);
  margin: 7px 0;
  border-radius: 5px;
}

.mini-desktop i:nth-child(3) {
  width: 75%;
}

.mini-phone i:nth-child(3) {
  width: 70%;
}


/* ---------------------------------------------------------
   06 — CONVERSION
   --------------------------------------------------------- */

.carousel-conversion-art {
  background:
    radial-gradient(circle at 50% 50%,rgba(53,229,162,.09),transparent 35%),
    #090e12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversion-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font: 700 .6rem/1 ui-monospace,monospace;
  letter-spacing: .12em;
}

.conversion-flow span {
  color: #65727a;
}

.conversion-flow b {
  color: var(--blue);
  font-size: .9rem;
}

.conversion-flow strong {
  font-size: 1.25rem;
  color: var(--white);
}

.conversion-flow em {
  font-style: normal;
  color: var(--green);
}

.conversion-line {
  position: absolute;
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  background: linear-gradient(
    transparent,
    rgba(53,229,162,.3),
    transparent
  );
  z-index: -1;
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }

  .carousel-orb,
  .product-shape {
    animation: none;
  }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 680px) {

  .carousel-track {
    gap: 12px;
    padding: 20px 7px 22px;
    animation-duration: 34s;
  }

  .carousel-item {
    width: 285px;
    flex-basis: 285px;
  }

  .carousel-art {
    height: 215px;
  }

  .carousel-hero-lines strong {
    font-size: 2.2rem;
  }

  .mini-desktop {
    width: 150px;
    height: 95px;
  }

  .mini-phone {
    width: 55px;
    height: 110px;
  }
}

/* Message Counter */
#message-counter {
  display: block;
  margin-top: 6px;
  color: #8b98a5;
  font-size: 12px;
  text-align: right;
}
