:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --soft: #f6f8fb;
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --emerald: #10b981;
  --cyan: #0891b2;
  --pour-progress: 0;
  --pour-stream: 0;
  --pour-fill: 0;
  --footer-fill-height: 92px;
  --bottle-left: 79vw;
  --bottle-top: 34vh;
  --bottle-rotate: -14deg;
  --stream-left: 72vw;
  --stream-top: 43vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(16, 185, 129, .16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #eef4f7 100%);
}

a {
  color: inherit;
}

.scroll-pour-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pour-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(79, 70, 229, .32), transparent 22rem),
    radial-gradient(circle at 70% 72%, rgba(16, 185, 129, .18), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(55, 48, 163, .88));
  opacity: calc(.08 + var(--pour-progress) * .46);
}

.checkushka-bottle {
  position: absolute;
  left: var(--bottle-left);
  top: var(--bottle-top);
  width: clamp(116px, 12.5vw, 185px);
  height: auto;
  opacity: calc(.42 + var(--pour-progress) * .5);
  transform: translate(-50%, -50%) rotate(var(--bottle-rotate));
  transform-origin: 50% 18%;
  transition: opacity 160ms linear;
}

.pour-stream {
  position: absolute;
  left: var(--stream-left);
  top: var(--stream-top);
  width: clamp(6px, .62vw, 10px);
  height: calc(var(--pour-stream) * 48vh);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(190, 238, 255, .62), rgba(99, 102, 241, .42));
  box-shadow: 0 0 18px rgba(190, 238, 255, .22);
  opacity: calc(var(--pour-stream) * .74);
  transform: rotate(11deg) scaleY(var(--pour-stream));
  transform-origin: top center;
}

.pour-stream::after {
  content: "";
  position: absolute;
  inset: 14% -45%;
  border-radius: inherit;
  background: rgba(255, 255, 255, .34);
  filter: blur(4px);
}

.screen-liquid {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--pour-fill) * var(--footer-fill-height));
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(125, 211, 252, .32), rgba(79, 70, 229, .54)),
    linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(55, 48, 163, .92));
  box-shadow: 0 -18px 50px rgba(15, 23, 42, .24);
  opacity: calc(var(--pour-fill) * .82);
  overflow: hidden;
}

.liquid-wave {
  position: absolute;
  top: -18px;
  left: -8%;
  width: 116%;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transform: translateX(calc((var(--pour-progress) - .5) * 52px));
}

.liquid-wave.two {
  top: -11px;
  background: rgba(190, 238, 255, .14);
  transform: translateX(calc((.5 - var(--pour-progress)) * 46px));
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 228, 239, .82);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.brand span span {
  color: var(--emerald);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand.small {
  font-size: 18px;
}

.brand.small .brand-mark {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(219, 228, 239, .8);
  border-radius: 999px;
  background: rgba(248, 250, 252, .72);
}

.site-nav a,
.ghost-link,
.solid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a {
  color: #475569;
}

.site-nav a:hover,
.ghost-link:hover {
  background: #eef2ff;
  color: var(--indigo-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-link {
  color: #334155;
}

.solid-link,
.primary-button {
  border: 1px solid rgba(79, 70, 229, .2);
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, .22);
}

.hero {
  position: relative;
  display: block;
  min-height: calc(74svh - 72px);
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 72px) clamp(28px, 5vw, 54px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 8vw, 104px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: #334155;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.hero-actions,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

.secondary-button {
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.secondary-button.light {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1160px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.signal-strip div {
  min-height: 92px;
  padding: 18px;
  background: rgba(255, 255, 255, .86);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.signal-strip span {
  color: var(--muted);
  line-height: 1.4;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 20px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(320px, .7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.body-copy {
  color: #334155;
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p:not(.section-kicker) {
  color: #334155;
  font-size: 18px;
  line-height: 1.64;
}

.case-grid,
.step-grid,
.setup-grid,
.proof-grid {
  display: grid;
  gap: 14px;
}

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

.case-card,
.step-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(219, 228, 239, .92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .82)),
    radial-gradient(circle at 85% 12%, rgba(16, 185, 129, .16), transparent 9rem);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.case-card::after,
.step-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(79, 70, 229, .2);
  border-radius: 50%;
  background: repeating-conic-gradient(from 12deg, rgba(79, 70, 229, .1) 0deg 12deg, rgba(16, 185, 129, .12) 12deg 24deg);
}

.case-token {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 28px;
  border: 5px solid rgba(79, 70, 229, .15);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--indigo));
  box-shadow: 0 12px 22px rgba(16, 185, 129, .22);
}

.case-card p,
.step-card p {
  margin: 0;
  color: #475569;
  line-height: 1.58;
}

.setup-section {
  max-width: 1180px;
}

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

.setup-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(219, 228, 239, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.setup-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 40px;
  border: 1px solid rgba(79, 70, 229, .22);
  border-radius: 50%;
  color: var(--indigo-dark);
  font-size: 12px;
  font-weight: 900;
  background: rgba(238, 242, 255, .92);
}

.setup-card p {
  margin: 0;
  color: #475569;
  line-height: 1.58;
}

.workflow {
  max-width: 1180px;
}

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

.step-card {
  min-height: 250px;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.clarity-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(360px, .82fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.clarity-copy p:not(.section-kicker) {
  color: #334155;
  font-size: 18px;
  line-height: 1.68;
}

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

.proof-grid article {
  min-height: 158px;
  padding: 22px;
  border: 1px solid rgba(219, 228, 239, .92);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .82));
  box-shadow: 0 18px 46px rgba(15, 23, 42, .05);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 12px;
  font-size: 19px;
}

.proof-grid span {
  color: #475569;
  line-height: 1.56;
}

.demo-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  max-width: 1160px;
  margin: clamp(72px, 9vw, 118px) auto 0;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(55, 48, 163, .92)),
    radial-gradient(circle at 82% 10%, rgba(16, 185, 129, .35), transparent 24rem);
  color: #fff;
  overflow: hidden;
}

.demo-band h2 {
  max-width: 780px;
  margin-bottom: 16px;
}

.demo-band p:not(.section-kicker) {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
  line-height: 1.62;
}

.demo-band .section-kicker {
  color: #a7f3d0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(55, 48, 163, .9));
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .two-column,
  .clarity-section,
  .demo-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .case-grid,
  .step-grid,
  .setup-grid,
  .proof-grid,
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-actions {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .pour-gradient {
    opacity: calc(.12 + var(--pour-progress) * .56);
  }

  .checkushka-bottle {
    width: 136px;
    opacity: calc(.22 + var(--pour-progress) * .58);
  }

  .pour-stream {
    width: 9px;
  }

  .site-header {
    position: static;
    padding: 14px 16px;
  }

  .brand {
    font-size: 19px;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    width: 100%;
  }

  .ghost-link,
  .solid-link {
    flex: 1 1 0;
  }

  .hero {
    padding: 28px 16px 16px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(46px, 14vw, 56px);
  }

  .hero-lead {
    font-size: 19px;
  }

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

  .signal-strip,
  .case-grid,
  .step-grid,
  .setup-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
  }

  .case-card,
  .step-card,
  .legal-grid article {
    min-height: 0;
  }

  .demo-band {
    margin: 64px 16px 0;
    padding: 28px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
