:root {
  --bg: #f7f8f5;
  --bg-2: #eef3f4;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --line: #d9e1df;
  --line-strong: #aebfba;
  --text: #1d2932;
  --muted: #617079;
  --soft: #33444d;
  --teal: #477d73;
  --lime: #7b9a6d;
  --amber: #b98545;
  --danger: #b45d52;
  --shadow: 0 22px 70px rgba(53, 72, 83, 0.13);
  --shadow-soft: 0 12px 34px rgba(53, 72, 83, 0.09);
  --max: 1240px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(71, 125, 115, 0.08), transparent 34rem),
    linear-gradient(225deg, rgba(97, 126, 154, 0.09), transparent 30rem),
    linear-gradient(180deg, var(--bg), #fbfcfa 44%, var(--bg-2));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(71, 125, 115, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 125, 115, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, black, transparent 62%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.progress-rail {
  position: fixed;
  left: max(18px, calc((100vw - 1390px) / 2));
  top: 95px;
  bottom: 32px;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  color: #789097;
  font-size: 0.78rem;
}

.section-orbit {
  position: fixed;
  right: max(16px, calc((100vw - 1390px) / 2));
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.orbit-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid #b7c5c2;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.orbit-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid transparent;
  border-radius: 50%;
}

.orbit-dot.active {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(71, 125, 115, 0.14);
}

.orbit-dot span {
  position: absolute;
  right: 22px;
  top: 50%;
  opacity: 0;
  width: max-content;
  padding: 6px 8px;
  transform: translateY(-50%) translateX(6px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--soft);
  font-size: 0.76rem;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.orbit-dot:hover span,
.orbit-dot:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.rail-line {
  width: 1px;
  background: #d5dfdd;
  overflow: hidden;
}

.rail-line span {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--teal), #6b89a5, var(--amber));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(250, 252, 249, 0.82);
  border-bottom: 1px solid rgba(174, 191, 186, 0.55);
  backdrop-filter: blur(18px);
}

.brand,
.nav a,
.button,
.link-row a,
.contact-grid a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #eef5f1;
  color: var(--teal);
  box-shadow: inset 0 0 0 4px rgba(71, 125, 115, 0.06);
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--teal);
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.command-open {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--teal);
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.section,
.proof-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 28px;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 58px;
  align-items: center;
  padding-top: 84px;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(3.05rem, 6.4vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.42rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.proof-band p,
.project-copy p,
.services p,
.os-copy p,
.about p,
.contact p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 660px;
  margin: 28px 0 0;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  color: var(--teal);
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 16px 34px rgba(71, 125, 115, 0.2);
}

.hero-system,
.project-spotlight,
.os-console {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 246, 0.9));
  box-shadow: var(--shadow);
}

.hero-system {
  padding: 20px;
  animation: floatPanel 7s ease-in-out infinite;
}

.system-topbar,
.pipeline-strip,
.section-heading,
.proof-band,
.link-row,
.contact-grid {
  display: flex;
}

.system-topbar {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--soft);
  font-weight: 800;
}

.live-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #d6e4dc;
  background: #f0f6f1;
}

.live-status span {
  color: var(--muted);
}

.live-status strong {
  color: var(--teal);
}

.system-topbar button,
.project-controls button,
.command-head button,
.command-list button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--soft);
  cursor: pointer;
}

.system-topbar button {
  padding: 10px 12px;
}

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

.metric-board article,
.service-grid article,
.console-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.metric-board article {
  min-height: 124px;
  padding: 16px;
}

.metric-board span,
.console-grid span,
.contact-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-board strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1;
}

.metric-board small {
  display: block;
  margin-top: 10px;
  color: var(--teal);
}

.chart-stage {
  position: relative;
  min-height: 260px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(71, 125, 115, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 125, 115, 0.08) 1px, transparent 1px),
    #fbfdfb;
  background-size: 100% 25%, 16.66% 100%, auto;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 40px 34px;
  background: linear-gradient(135deg, transparent 0 16%, var(--teal) 16% 18%, transparent 18% 34%, var(--teal) 34% 36%, transparent 36% 48%, #6b89a5 48% 50%, transparent 50% 66%, var(--teal) 66% 68%, transparent 68% 83%, var(--amber) 83% 85%, transparent 85%);
  filter: drop-shadow(0 6px 10px rgba(71, 125, 115, 0.18));
  animation: scanLine 5s ease-in-out infinite;
}

.chart-bars {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 24px;
  height: 42%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 14px;
}

.chart-bars span {
  display: block;
  height: var(--h);
  background: linear-gradient(180deg, var(--teal), rgba(71, 125, 115, 0.16));
}

.pipeline-strip {
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.pipeline-strip span {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--soft);
  text-align: center;
}

.proof-band {
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band > div {
  max-width: 430px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  min-width: min(100%, 620px);
  margin: 0;
}

.proof-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.proof-grid dt {
  font-size: 3rem;
  font-weight: 900;
  color: var(--teal);
}

.proof-grid dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading {
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 440px;
  margin-bottom: 0;
}

.project-shell {
  display: grid;
  gap: 18px;
}

.project-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.project-controls button {
  padding: 11px 14px;
}

.project-controls button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.project-meter {
  height: 2px;
  overflow: hidden;
  background: #d7e0de;
}

.project-meter span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #6b89a5);
  transition: transform 260ms ease;
}

.project-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.project-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  padding: 12px 16px;
  cursor: pointer;
}

.project-tab.active,
.project-tab:hover {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.project-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
  padding: 26px;
}

.project-spotlight.switching {
  animation: projectSwitch 360ms ease;
}

.project-copy > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-copy p {
  margin: 18px 0 0;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 22px;
  color: var(--soft);
}

.result-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--teal);
}

.link-row {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.link-row a {
  color: var(--teal);
  font-weight: 800;
}

.project-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.project-image::before {
  content: attr(data-label);
  display: block;
  height: 42px;
  padding: 12px 18px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22px 20px, var(--amber) 0 5px, transparent 6px),
    radial-gradient(circle at 42px 20px, var(--lime) 0 5px, transparent 6px),
    radial-gradient(circle at 62px 20px, var(--teal) 0 5px, transparent 6px),
    #f1f5f3;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-image img {
  width: 100%;
  height: clamp(280px, 30vw, 388px);
  object-fit: cover;
  object-position: center top;
}

.project-image[data-project="operations"] img {
  object-position: center top;
}

.project-image[data-project="crm"] img,
.project-image[data-project="businessos"] img {
  object-position: left top;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-grid article {
  min-height: 280px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: #f7fbf8;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 44px;
  border: 1px solid #c7d7cf;
  background: #eef5f1;
  color: var(--teal);
  font-weight: 850;
}

.service-grid h3 {
  font-size: 1.32rem;
}

.os-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(500px, 1.28fr);
  gap: 48px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--soft);
}

.os-console {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}

.console-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(240, 246, 241, 0.55);
}

.console-sidebar span {
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.console-sidebar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 12px;
  text-align: left;
}

.console-sidebar button.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.console-main {
  padding: 24px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.console-grid article {
  padding: 16px;
}

.console-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 1.45rem;
}

.activity-list {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.activity-list span {
  color: var(--teal);
  font-weight: 850;
}

.activity-line {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  background: #dce6e2;
}

.activity-line span {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #6b89a5, var(--amber));
  animation: activityPulse 3.5s ease-in-out infinite;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.about-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--soft);
  box-shadow: var(--shadow-soft);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1.3fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 64px;
}

.contact-grid {
  gap: 12px;
}

.contact-grid a {
  flex: 1;
  min-width: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-grid a:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.contact-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.command-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  background: rgba(29, 41, 50, 0.28);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease;
}

.command-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.command-panel {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.command-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.command-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.command-head button {
  padding: 10px 12px;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-list button {
  padding: 16px;
  text-align: left;
  font-weight: 800;
}

.command-list button:hover,
.command-list button:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.command-panel p {
  margin: 18px 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes scanLine {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(8px);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

@keyframes projectSwitch {
  0% {
    opacity: 0.5;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes activityPulse {
  0%,
  100% {
    transform: translateX(-16%);
  }
  50% {
    transform: translateX(12%);
  }
}

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

@media (max-width: 1050px) {
  .progress-rail {
    display: none;
  }

  .section-orbit {
    display: none;
  }

  .hero,
  .project-spotlight,
  .os-section,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 76px;
  }

  .hero-system,
  .project-image,
  .os-console {
    max-width: 720px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    font-size: 0.72rem;
  }

  .command-open {
    align-self: flex-end;
  }

  .section,
  .proof-band {
    padding: 72px 18px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .metric-board,
  .proof-grid,
  .service-grid,
  .console-grid,
  .project-controls {
    grid-template-columns: 1fr;
  }

  .hero-system,
  .project-spotlight,
  .os-console {
    min-width: 0;
  }

  .proof-band,
  .section-heading,
  .contact-grid {
    display: grid;
  }

  .os-console {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
