:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --sky: #38bdf8;
  --bg: #f8fafc;
  --dark: #081423;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body.intro-active {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.serigo-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(20, 184, 166, 0.18), transparent 28%),
    radial-gradient(circle at 76% 28%, rgba(56, 189, 248, 0.16), transparent 30%),
    linear-gradient(135deg, #06111f 0%, #0b2235 52%, #06111f 100%);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.serigo-intro.is-ready {
  opacity: 1;
  pointer-events: auto;
  animation: introExit 3.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.serigo-intro.is-skipped {
  animation: introSkip 420ms ease forwards;
}

.serigo-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 78%);
}

.intro-skip {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.intro-stage {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 34px));
  height: min(620px, calc(100vh - 92px));
  min-height: 500px;
}

.intro-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 48px rgba(20, 184, 166, 0.42);
  color: #052f34;
  font-size: 44px;
  font-weight: 950;
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
}

.serigo-intro.is-ready .intro-core {
  animation: corePulse 3.15s ease forwards;
}

.intro-node,
.intro-link,
.intro-speed,
.speed-card,
.intro-dashboard,
.intro-text {
  position: absolute;
}

.intro-node {
  min-width: 98px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  opacity: 0;
}

.node-order { left: 18%; top: 25%; }
.node-model { left: 62%; top: 21%; }
.node-cut { left: 72%; top: 52%; }
.node-stock { left: 22%; top: 62%; }
.node-ship { left: 44%; top: 72%; }

.serigo-intro.is-ready .intro-node {
  animation: nodesGather 1.1s ease forwards;
}

.serigo-intro.is-ready .node-model { animation-delay: 80ms; }
.serigo-intro.is-ready .node-cut { animation-delay: 150ms; }
.serigo-intro.is-ready .node-stock { animation-delay: 210ms; }
.serigo-intro.is-ready .node-ship { animation-delay: 260ms; }

.intro-link {
  left: 50%;
  top: 46%;
  height: 1px;
  width: 190px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
  opacity: 0;
  transform-origin: left center;
}

.link-one { transform: rotate(214deg); }
.link-two { transform: rotate(318deg); }
.link-three { transform: rotate(18deg); }
.link-four { transform: rotate(154deg); }
.link-five { transform: rotate(88deg); }

.serigo-intro.is-ready .intro-link {
  animation: linkFlash 1.08s ease forwards;
}

.intro-speed {
  inset: 0;
  opacity: 0;
}

.serigo-intro.is-ready .intro-speed {
  animation: speedScene 1.45s ease 1s forwards;
}

.intro-speed > span {
  position: absolute;
  left: 6%;
  width: 78%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.95), transparent);
  transform: translateX(-30%);
  animation: speedLine 720ms linear 1.06s infinite;
}

.intro-speed > span:nth-child(1) { top: 34%; }
.intro-speed > span:nth-child(2) { top: 44%; animation-delay: 1.14s; }
.intro-speed > span:nth-child(3) { top: 54%; animation-delay: 1.22s; }
.intro-speed > span:nth-child(4) { top: 64%; animation-delay: 1.30s; }

.speed-card {
  left: 12%;
  top: 38%;
  min-width: 150px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.10);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 850;
  opacity: 0;
  transform: translateX(-40px);
}

.serigo-intro.is-ready .speed-card {
  animation: speedCard 760ms ease forwards;
}

.card-one { top: 31%; animation-delay: 1.08s !important; }
.card-two { top: 40%; animation-delay: 1.18s !important; }
.card-three { top: 49%; animation-delay: 1.28s !important; }
.card-four { top: 58%; animation-delay: 1.38s !important; }
.card-five { top: 67%; animation-delay: 1.48s !important; }

.intro-dashboard {
  left: 50%;
  top: 50%;
  width: min(680px, 92%);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 26px;
  padding: 24px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.88);
}

.serigo-intro.is-ready .intro-dashboard {
  animation: dashboardReveal 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.18s forwards;
}

.intro-dash-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.intro-dash-top strong {
  font-size: 24px;
}

.intro-dash-top small {
  color: var(--teal-dark);
  font-weight: 850;
}

.intro-dash-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.intro-dash-grid div {
  min-height: 96px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  opacity: 0;
  transform: translateY(14px);
}

.serigo-intro.is-ready .intro-dash-grid div {
  animation: dashCard 420ms ease forwards;
}

.serigo-intro.is-ready .intro-dash-grid div:nth-child(1) { animation-delay: 2.34s; }
.serigo-intro.is-ready .intro-dash-grid div:nth-child(2) { animation-delay: 2.43s; }
.serigo-intro.is-ready .intro-dash-grid div:nth-child(3) { animation-delay: 2.52s; }
.serigo-intro.is-ready .intro-dash-grid div:nth-child(4) { animation-delay: 2.61s; }
.serigo-intro.is-ready .intro-dash-grid div:nth-child(5) { animation-delay: 2.70s; }

.intro-dash-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.intro-dash-grid b {
  display: block;
  margin-top: 12px;
  color: var(--teal-dark);
  font-size: 30px;
}

.intro-bars {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.intro-bars span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0);
  transform-origin: left center;
}

.serigo-intro.is-ready .intro-bars span {
  animation: barFill 620ms ease 2.78s forwards;
}

.serigo-intro.is-ready .intro-bars span:nth-child(2) { animation-delay: 2.88s; }
.serigo-intro.is-ready .intro-bars span:nth-child(3) { animation-delay: 2.98s; }

.intro-text {
  left: 50%;
  bottom: 7%;
  margin: 0;
  color: #e0f2fe;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.serigo-intro.is-ready .text-one { animation: introText 1s ease 120ms forwards; }
.serigo-intro.is-ready .text-two { animation: introText 1.15s ease 1.08s forwards; }
.serigo-intro.is-ready .text-three { animation: introText 1.1s ease 2.42s forwards; }

.hero-copy,
.hero-visual {
  opacity: 0;
  transform: translateY(18px);
  animation: heroArrive 760ms ease 300ms forwards;
}

.hero-visual {
  animation-delay: 470ms;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 20, 35, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color: #052f34;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.22);
}

.brand strong,
.footer strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #0ea5e9);
  color: #fff;
  box-shadow: 0 22px 44px rgba(14, 165, 233, 0.22);
}

.btn-dark {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 184, 166, 0.30), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.24), transparent 32%),
    linear-gradient(135deg, #081423 0%, #0f2438 54%, #081423 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.88), transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: 58px;
  padding: 82px 0 68px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 22px;
}

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

.benefits span {
  min-height: 74px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 253, 250, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-visual {
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.hero-visual img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 38px 70px rgba(0, 0, 0, 0.34));
}

.section {
  padding: 88px 0;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.two-col,
.demo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.big-card-grid,
.feature-grid,
.audience-grid,
.timeline {
  display: grid;
  gap: 16px;
}

.big-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.big-card,
.feature-grid article,
.audience-grid div,
.timeline article,
.demo-form,
.contact-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.big-card {
  padding: 24px;
  min-height: 230px;
}

.card-icon,
.feature-grid span,
.timeline span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ccfbf1;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.big-card h3,
.feature-grid h3,
.timeline h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.features {
  background: #fff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  padding: 24px;
  min-height: 220px;
}

.audience {
  background:
    radial-gradient(circle at 14% 20%, rgba(20, 184, 166, 0.14), transparent 26%),
    linear-gradient(135deg, #0f172a, #112c3c);
  color: #fff;
}

.audience .section p {
  color: rgba(226, 232, 240, 0.78);
}

.audience p {
  color: rgba(226, 232, 240, 0.78);
}

.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience-grid div {
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  position: relative;
  padding: 24px;
  min-height: 250px;
}

.demo {
  background: #fff;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding: 22px;
  font-weight: 800;
}

.demo-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.demo-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.ok {
  color: var(--teal-dark);
}

.form-status.error {
  color: #b91c1c;
}

.footer {
  padding: 42px 0;
  background: var(--dark);
  color: rgba(226, 232, 240, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer a {
  display: block;
  margin-bottom: 9px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-col,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    transform: none;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .big-card-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes corePulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  44% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  72% { opacity: 0.32; transform: translate(-50%, -50%) scale(0.82); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
}

@keyframes nodesGather {
  0% { opacity: 0; transform: translateY(20px) scale(0.92); }
  28% { opacity: 1; }
  72% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translate(-18px, -14px) scale(0.74); }
}

@keyframes linkFlash {
  0%, 18% { opacity: 0; width: 0; }
  48% { opacity: 1; width: 190px; }
  100% { opacity: 0; width: 90px; }
}

@keyframes speedScene {
  0% { opacity: 0; transform: scale(0.98); }
  14%, 82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

@keyframes speedLine {
  from { transform: translateX(-36%) scaleX(0.34); opacity: 0; }
  35% { opacity: 1; }
  to { transform: translateX(42%) scaleX(1.05); opacity: 0; }
}

@keyframes speedCard {
  0% { opacity: 0; transform: translateX(-70px) scale(0.96); }
  34% { opacity: 1; }
  100% { opacity: 0; transform: translateX(620px) scale(0.92); }
}

@keyframes dashboardReveal {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(0.84); filter: blur(8px); }
  24% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes dashCard {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes barFill {
  to { transform: scaleX(1); }
}

@keyframes introText {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  18%, 72% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

@keyframes introExit {
  0%, 86% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.02); filter: blur(8px); visibility: hidden; }
}

@keyframes introSkip {
  to { opacity: 0; transform: scale(1.02); visibility: hidden; }
}

@keyframes heroArrive {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding: 64px 0 44px;
  }

  .benefits,
  .feature-grid,
  .timeline,
  .big-card-grid,
  .audience-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .section {
    padding: 62px 0;
  }

  .serigo-intro.is-ready {
    animation-duration: 2.9s;
  }

  .intro-stage {
    min-height: 450px;
  }

  .intro-dashboard {
    width: min(520px, 94%);
    padding: 18px;
  }

  .intro-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-node {
    min-width: 82px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .speed-card {
    min-width: 128px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .intro-text {
    bottom: 5%;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand small {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .nav .btn {
    width: auto;
    min-height: 42px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .serigo-intro {
    display: none !important;
  }

  .hero-copy,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
