:root {
  --paper: #f6f4ef;
  --paper-2: #ecebea;
  --ink: #171719;
  --ink-2: #2b1728;
  --orange: #e6531f;
  --orange-dark: #c94314;
  --muted: #7d6b78;
  --line: #ded9d2;
  --white: #ffffff;
  --green: #dff46b;
  --blue: #8d99ae;
  --shadow: 0 28px 90px rgba(23, 23, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 220px;
  height: 220px;
  pointer-events: none;
  border: 1px solid rgba(230, 83, 31, 0.28);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
}

.site-header {
  position: fixed;
  inset: 18px 20px auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(222, 217, 210, 0.78);
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.76);
  padding: 10px 12px 10px 18px;
  backdrop-filter: blur(22px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.site-header.is-elevated {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(23, 23, 25, 0.12);
}

.brand img {
  width: 112px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #5f5860;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.desktop-nav a:hover {
  background: rgba(230, 83, 31, 0.09);
  color: var(--orange-dark);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-cta,
.primary-button {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(23, 23, 25, 0.18);
}

.header-cta {
  padding: 0 18px;
}

.primary-button {
  padding: 0 24px;
}

.header-cta:hover,
.primary-button:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 22px;
  color: var(--ink-2);
}

.secondary-button:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
}

.menu-button span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 84px 20px auto;
  z-index: 45;
  display: none;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.mobile-nav a {
  display: block;
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: center;
  padding: 132px 20px 64px;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(rgba(246, 244, 239, 0.88), rgba(236, 235, 234, 0.7)),
    url("assets/logo-nokto-square.png") center 55% / min(62vw, 720px) no-repeat;
}

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 23, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 23, 40, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 76%, transparent);
}

.product-rail {
  position: absolute;
  display: flex;
  gap: 12px;
  white-space: nowrap;
  animation: railMove 28s linear infinite;
}

.rail-one {
  top: 26%;
  left: -20%;
}

.rail-two {
  right: -14%;
  bottom: 20%;
  animation-direction: reverse;
}

.rail-pill {
  border: 1px solid rgba(222, 217, 210, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(23, 23, 25, 0.08);
  backdrop-filter: blur(12px);
}

.rail-pill.active,
.rail-pill.dark {
  background: var(--ink);
  color: var(--white);
}

.rail-pill.orange {
  background: var(--orange);
  color: var(--white);
}

.dashboard-hero {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 90px;
  width: min(42vw, 480px);
  min-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  transform-style: preserve-3d;
}

.dashboard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-top img {
  width: 42px;
  border-radius: 12px;
}

.dashboard-top div {
  min-width: 0;
}

.dashboard-top span,
.dashboard-top small,
.preview-head span,
.approval-stack span,
.module-copy span,
.device-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-top strong {
  display: block;
  margin-top: 2px;
}

.dashboard-top small {
  margin-left: auto;
  border-radius: 999px;
  background: #ecffe8;
  padding: 7px 10px;
  color: #28753e;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
  margin-top: 18px;
}

.calendar-preview,
.approval-stack > div {
  border: 1px solid rgba(222, 217, 210, 0.72);
  border-radius: 22px;
  background: rgba(248, 246, 243, 0.78);
  padding: 14px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-head b {
  color: var(--orange);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-grid i {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--white);
}

.calendar-grid i.hot {
  background: var(--orange);
}

.calendar-grid i.ink {
  background: var(--ink-2);
}

.approval-stack {
  display: grid;
  gap: 10px;
}

.approval-stack strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.hero-content {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(78px, 15vw, 210px);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: #463842;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.18;
}

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

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: grid;
  width: 34px;
  height: 54px;
  place-items: start center;
  border: 1px solid rgba(43, 23, 40, 0.24);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--orange);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.proof-strip {
  display: flex;
  gap: 10px;
  overflow: auto;
  border-block: 1px solid var(--line);
  background: var(--ink);
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  scrollbar-width: none;
}

.proof-strip::-webkit-scrollbar {
  display: none;
}

.proof-strip p {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.flow-section,
.modules-section,
.impact-section,
.experience-section,
.faq-section,
.cta-section {
  padding: 100px max(20px, calc((100vw - 1180px) / 2));
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 840px;
}

.section-heading.compact {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-heading h2,
.experience-copy h2,
.cta-inner h2 {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p,
.experience-copy p,
.cta-inner p,
.module-copy p {
  margin: 0;
  color: #5f5860;
  font-size: 18px;
  line-height: 1.55;
}

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

.timeline-step {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 24px;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.timeline-step::before {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms ease;
  content: "";
}

.timeline-step.is-active {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-8px);
}

.timeline-step.is-active::before {
  transform: scaleX(1);
}

.timeline-step span {
  color: var(--orange);
  font-weight: 900;
}

.timeline-step h3 {
  margin: 72px 0 14px;
  font-size: 26px;
}

.timeline-step p {
  margin: 0;
  color: inherit;
  line-height: 1.5;
  opacity: 0.72;
}

.module-tabs {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px;
}

.module-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.module-tabs button.is-selected {
  background: var(--ink);
  color: var(--white);
}

.module-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 42px;
  border-radius: 34px;
  background: var(--ink);
  padding: clamp(24px, 5vw, 64px);
  color: var(--white);
  box-shadow: var(--shadow);
}

.module-copy span {
  color: var(--green);
}

.module-copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
}

.module-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.module-copy ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.module-copy li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.module-copy li::before {
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.module-device {
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: #f8f6f3;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

.device-toolbar {
  display: flex;
  gap: 7px;
  padding: 8px 6px 16px;
}

.device-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ddd4cd;
}

.device-toolbar span:first-child {
  background: var(--orange);
}

.device-content {
  display: grid;
  gap: 12px;
}

.device-row,
.device-metric {
  border: 1px solid #eadfe7;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  padding: 18px;
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-row.hot {
  border-color: rgba(230, 83, 31, 0.35);
  background: #fff4ed;
}

.device-row.dark {
  background: var(--ink-2);
  color: var(--white);
}

.device-row.dark small {
  color: rgba(255, 255, 255, 0.68);
}

.device-metric {
  display: grid;
  min-height: 170px;
  place-items: center;
  text-align: center;
}

.device-metric strong {
  color: var(--orange);
  font-size: 88px;
  line-height: 0.9;
}

.device-metric span {
  color: var(--muted);
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.metric-card,
.feature-tile,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.metric-card {
  min-height: 250px;
  padding: 28px;
}

.metric-card strong,
.metric-card span {
  color: var(--ink-2);
  font-size: clamp(72px, 10vw, 132px);
  font-weight: 900;
  line-height: 0.85;
}

.metric-card span {
  color: var(--orange);
}

.metric-card p {
  max-width: 280px;
  margin: 22px 0 0;
  color: #5f5860;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.experience-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 44px;
  align-items: start;
  background: var(--paper-2);
}

.experience-copy {
  position: sticky;
  top: 120px;
}

.experience-copy p:last-child {
  margin-top: 22px;
}

.feature-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-tile {
  min-height: 230px;
  padding: 24px;
}

.feature-tile span {
  color: var(--orange);
  font-weight: 900;
}

.feature-tile h3 {
  margin: 74px 0 10px;
  color: var(--ink-2);
  font-size: 24px;
}

.feature-tile p {
  margin: 0;
  color: #5f5860;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.faq-item {
  width: 100%;
  border-radius: 22px;
  padding: 0;
  text-align: left;
}

.faq-item span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  color: var(--ink-2);
  font-size: 19px;
  font-weight: 900;
}

.faq-item span::after {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  content: "+";
  display: grid;
  place-items: center;
}

.faq-item[aria-expanded="true"] span::after {
  background: var(--orange);
  content: "-";
}

.faq-item p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 24px;
  color: #5f5860;
  line-height: 1.55;
  transition:
    max-height 220ms ease,
    padding 220ms ease;
}

.faq-item[aria-expanded="true"] p {
  max-height: 120px;
  padding: 0 24px 22px;
}

.cta-section {
  padding-top: 80px;
}

.cta-inner {
  display: grid;
  justify-items: center;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(rgba(23, 23, 25, 0.88), rgba(43, 23, 40, 0.92)),
    url("assets/logo-nokto-square.png") center / 520px no-repeat;
  padding: clamp(34px, 8vw, 110px) 20px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-inner img {
  width: 78px;
  margin-bottom: 22px;
  border-radius: 22px;
}

.cta-inner h2 {
  max-width: 820px;
  color: var(--white);
}

.cta-inner p:not(.section-kicker) {
  max-width: 640px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px max(20px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer img {
  width: 104px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink-2);
}

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

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

@keyframes railMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(260px);
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(24px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero {
    min-height: 94svh;
    padding-top: 116px;
  }

  .dashboard-hero {
    right: 20px;
    bottom: 38px;
    width: min(92vw, 420px);
    min-width: 0;
    opacity: 0.78;
  }

  .hero-content {
    align-self: start;
  }

  .hero-copy {
    max-width: 560px;
  }

  .section-heading.compact,
  .module-showcase,
  .experience-section {
    grid-template-columns: 1fr;
  }

  .module-tabs {
    width: fit-content;
    max-width: 100%;
    overflow: auto;
  }

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

  .experience-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    inset: 12px 12px auto;
    padding-left: 14px;
  }

  .mobile-nav {
    inset: 78px 12px auto;
  }

  .brand img {
    width: 98px;
  }

  .hero {
    min-height: 96svh;
    padding: 108px 14px 48px;
  }

  .hero-scene {
    background-size: 88vw;
    background-position: center 70%;
  }

  .product-rail {
    display: none;
  }

  .dashboard-hero {
    left: 14px;
    right: 14px;
    bottom: 42px;
    width: auto;
    padding: 12px;
    border-radius: 24px;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .approval-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .approval-stack > div {
    min-width: 0;
    padding: 10px;
  }

  .approval-stack strong {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(76px, 24vw, 120px);
  }

  .hero-copy {
    max-width: 92vw;
    font-size: 19px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .flow-section,
  .modules-section,
  .impact-section,
  .experience-section,
  .faq-section,
  .cta-section {
    padding: 72px 14px;
  }

  .section-heading h2,
  .experience-copy h2,
  .cta-inner h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .section-heading p,
  .experience-copy p,
  .cta-inner p,
  .module-copy p {
    font-size: 16px;
  }

  .timeline,
  .metrics-grid,
  .feature-wall {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    min-height: 210px;
  }

  .module-showcase {
    gap: 28px;
    border-radius: 26px;
  }

  .module-tabs {
    width: 100%;
  }

  .module-tabs button {
    flex: 1;
    padding-inline: 10px;
  }

  .module-device {
    min-height: 390px;
    border-radius: 24px;
  }

  .device-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .device-metric strong {
    font-size: 64px;
  }

  .metric-card,
  .feature-tile {
    min-height: 210px;
  }

  .faq-item span {
    gap: 16px;
    font-size: 17px;
  }

  .cta-inner {
    border-radius: 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
