:root {
  --bg: #FBFAF7;
  --bg-alt: #F5F3EE;
  --surface: #FFFFFF;
  --text: #16161D;
  --text-2: #55555F;
  --text-3: #8A8A94;
  --border: #E8E5DE;
  --border-strong: #D9D5CC;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-soft: #EEF0FF;
  --success: #12A150;
  --danger: #DC2626;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 22, 29, .04);
  --shadow: 0 1px 2px rgba(22, 22, 29, .04), 0 4px 16px rgba(22, 22, 29, .05);
  --shadow-lg: 0 2px 4px rgba(22, 22, 29, .03), 0 24px 48px -12px rgba(40, 36, 120, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  font: inherit; font-size: 15px; font-weight: 600;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(79, 70, 229, .3); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #BDB8AD; background: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav--scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--primary); color: #fff;
}
.logo__mark svg { width: 17px; height: 17px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--text-2); }
.nav__links a:not(.btn) { transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__cta { color: #fff; margin-left: 8px; }
.nav__toggle {
  display: none; position: relative; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav__toggle span {
  position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.menu-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 700px; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(79, 70, 229, .10), transparent 70%),
    linear-gradient(to right, rgba(22, 22, 29, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(22, 22, 29, .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; margin-bottom: 28px;
  font-size: 13px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.pill:hover { border-color: var(--border-strong); }
.pill svg { width: 14px; height: 14px; color: var(--text-3); }
.pill__tag { padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 12px; }
.hero__title {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.12; font-weight: 750; letter-spacing: -.03em;
  max-width: 820px; margin: 0 auto;
}
.accent {
  background: linear-gradient(120deg, #4F46E5, #7C3AED);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { max-width: 620px; margin: 24px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--text-2); }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 13px; color: var(--text-3); }
/* Product mockup */
.mockup {
  max-width: 980px; margin: 64px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup__bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: #FCFCFA; font-size: 13px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #E6E3DC; }
.mockup__title { margin-left: 10px; font-weight: 600; color: var(--text-2); }
.mockup__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 600; font-size: 12px; }
.mockup__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(18, 161, 80, .15); }
.mockup__body { padding: 16px; overflow-x: auto; }
.grid { display: grid; grid-template-columns: 132px repeat(5, minmax(92px, 1fr)); gap: 8px; min-width: 620px; font-size: 12px; }
.grid__head { padding: 4px 6px; color: var(--text-3); font-weight: 600; }
.grid__name { display: flex; flex-direction: column; justify-content: center; padding: 0 6px; }
.grid__name b { font-size: 13px; font-weight: 600; }
.grid__name small { color: var(--text-3); font-size: 11px; }
.shift {
  display: block; height: 100%; padding: 8px 10px; border-radius: 8px;
  font-weight: 600; line-height: 1.35; border: 1px solid transparent;
}
.shift small { font-weight: 500; opacity: .75; font-size: 11px; }
.shift--a { background: var(--primary-soft); color: #3730A3; border-color: #DDE0FF; }
.shift--b { background: #F0F7FF; color: #1D4ED8; border-color: #DBEAFE; }
.shift--c { background: #FFF7ED; color: #B45309; border-color: #FDE7C8; }
.shift--rest { background: repeating-linear-gradient(-45deg, #FAFAF8, #FAFAF8 6px, #F3F2EE 6px, #F3F2EE 12px); color: var(--text-3); border-color: var(--border); display: grid; place-items: center; }

/* Logos */
.logos { padding: 56px 0 24px; text-align: center; }
.logos p { font-size: 13px; color: var(--text-3); }
.logos__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 48px; margin-top: 20px; }
.logos__list li { font-weight: 700; font-size: 17px; letter-spacing: .02em; color: #A9A69E; }

/* Sections */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: .06em; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.section__desc { margin-top: 16px; font-size: 17px; color: var(--text-2); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 24px; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.feature__icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 10px; background: var(--primary-soft); color: var(--primary);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-2); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; padding: 32px 28px; }
.plan--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); }
.plan__badge {
  position: absolute; top: -12px; left: 28px;
  padding: 3px 10px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 600;
}
.plan h3 { font-size: 18px; font-weight: 650; }
.plan__desc { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.plan__price { display: flex; align-items: baseline; margin: 24px 0; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan__price--text { font-size: 32px; }
.plan__currency { font-size: 22px; margin-right: 2px; font-weight: 600; }
.plan__unit { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan__list { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.plan__list li, .demo__points li { position: relative; padding-left: 28px; }
.plan__list li::before, .demo__points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Demo form */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo__intro .section__desc { max-width: 480px; }
.demo__points { display: grid; gap: 14px; margin-top: 32px; color: var(--text-2); }
.form { position: relative; padding: 32px; box-shadow: var(--shadow-lg); overflow: hidden; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #B3B0A8; }
.field input:hover { border-color: #BDB8AD; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.field__error { min-height: 0; font-size: 13px; color: var(--danger); }
.field__error:not(:empty) { margin-top: 6px; }
.field--invalid input { border-color: var(--danger); }
.field--invalid input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.form .btn { margin-top: 8px; }
.form__hint { margin-top: 14px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.form__success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center; background: var(--surface);
  animation: fade-in .4s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 50%; background: #E7F6EE; color: var(--success);
}
.form__success-icon svg { width: 26px; height: 26px; }
.form__success h3 { font-size: 20px; margin-bottom: 8px; }
.form__success p { color: var(--text-2); font-size: 15px; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 0; background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 48px; }
.footer__cols h4 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; transition: color .2s; }
.footer__cols a:hover { color: var(--primary); }
.footer__bottom { margin-top: 48px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* Responsive */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .demo { gap: 40px; }
}

@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; max-width: 480px; gap: 28px; }
  .demo { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .menu-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .nav { background: var(--bg); border-bottom-color: var(--border); }
  .nav__links a:not(.btn) { padding: 14px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav__cta { margin: 16px 0 0; height: 44px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .mockup { margin-top: 44px; border-radius: var(--radius); }
  .mockup__title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mockup__status { display: none; }
  .logos__list { gap: 12px 28px; }
  .logos__list li { font-size: 15px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .form { padding: 24px 20px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
