:root {
  --ink: #061426;
  --muted: #5f6f82;
  --blue: #078df5;
  --blue-deep: #0068cb;
  --blue-soft: #dff2ff;
  --orange: #ff942f;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: rgba(25, 54, 88, 0.13);
  --night: #071629;
  --night-soft: #102b49;
  --shadow: 0 30px 80px rgba(8, 35, 68, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin-top: 0; }

.site-header,
.hero,
.workflow,
.product,
.use-cases,
.download,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand img,
.footer-brand img {
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 98, 203, 0.18);
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

nav a:hover,
nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--blue-deep); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
  min-height: 730px;
  padding: 72px 0 120px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.7rem, 7.5vw, 7.25rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

h1 span { color: var(--blue); }

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 780;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #25aaff, var(--blue));
  box-shadow: 0 18px 42px rgba(7, 141, 245, 0.25);
}

.text-link {
  color: var(--blue-deep);
  font-weight: 760;
}

.text-link span { display: inline-block; margin-left: 5px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 610px;
  margin: 48px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.facts li { display: flex; flex-direction: column; gap: 3px; }
.facts strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 0.82rem; }

.hero-visual {
  position: relative;
  min-height: 540px;
  padding: 42px;
  overflow: hidden;
  border-radius: 42px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 10%, rgba(45, 175, 255, 0.34), transparent 17rem),
    linear-gradient(150deg, var(--night-soft), var(--night));
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
}

.time-card,
.result-card,
.operator-card {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.time-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 58%;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.time-card span,
.result-card span { color: rgba(255,255,255,.68); font-size: 0.82rem; font-weight: 720; }
.time-card strong { font-size: clamp(2.3rem, 5vw, 3.6rem); font-variant-numeric: tabular-nums; }
.time-card-a { top: 52px; left: 36px; transform: rotate(-3deg); }
.time-card-b { top: 198px; right: 35px; transform: rotate(3deg); }

.operator-card {
  top: 168px;
  left: 46%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--orange);
  font-size: 2rem;
  font-weight: 800;
}

.result-card {
  right: 32px;
  bottom: 40px;
  left: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 5px 22px;
  padding: 26px 28px;
  border-radius: 26px;
  background: rgba(7, 141, 245, 0.93);
}

.result-card strong { grid-row: span 2; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.result-card small { color: rgba(255,255,255,.76); }

.workflow { padding: 120px 0; }
.section-heading { max-width: 820px; margin-bottom: 52px; }
.section-heading > p:last-child { max-width: 670px; margin-bottom: 0; color: var(--muted); font-size: 1.12rem; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.workflow-grid article {
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(23, 52, 87, 0.07);
}

.workflow-grid article p,
.feature-list p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.step {
  display: block;
  margin-bottom: 34px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.mini-display,
.operation-row,
.mini-result {
  display: flex;
  align-items: center;
  min-height: 100px;
  margin-bottom: 30px;
}

.mini-display { gap: 10px; }
.mini-display b { padding: 12px 18px; border-radius: 17px; background: var(--blue-soft); color: var(--blue-deep); font-size: 2rem; font-variant-numeric: tabular-nums; }
.mini-display i { color: var(--muted); font-size: 2rem; font-style: normal; }
.operation-row { gap: 9px; }
.operation-row b { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: #ffffff; background: var(--blue); font-size: 1.45rem; }
.operation-row b:nth-child(2) { background: var(--orange); }
.mini-result { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
.mini-result strong { font-size: 2.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-result small { padding: 5px 10px; border-radius: 9px; color: var(--blue-deep); background: var(--blue-soft); font-weight: 760; }

.product {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 10vw, 140px);
  padding: 120px clamp(24px, 5vw, 72px);
  border-radius: 44px;
  background: #eaf4ff;
}

.app-preview {
  width: min(330px, 100%);
  justify-self: center;
  margin-bottom: 0;
  overflow: hidden;
  border: 9px solid #ffffff;
  border-radius: 42px;
  background: #ffffff;
  box-shadow: 0 35px 70px rgba(20, 67, 112, 0.22);
}

.app-preview img { width: 100%; height: auto; }
.product-lead { max-width: 620px; margin-bottom: 36px; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }

.feature-list { display: grid; gap: 13px; }
.feature-list article { display: grid; grid-template-columns: 58px 1fr; gap: 17px; padding: 18px; border: 1px solid rgba(7, 83, 155, 0.12); border-radius: 20px; background: rgba(255,255,255,.72); }
.feature-list article > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: var(--blue-deep); background: var(--blue-soft); font-weight: 850; }
.feature-list h3 { margin-bottom: 4px; font-size: 1.04rem; }
.feature-list p { font-size: 0.93rem; }

.use-cases { padding: 130px 0; }
.section-heading.compact { max-width: 700px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-grid article { display: flex; min-height: 190px; flex-direction: column; justify-content: space-between; padding: 28px; border-top: 3px solid var(--blue); border-radius: 0 0 24px 24px; background: var(--surface); box-shadow: 0 14px 36px rgba(23, 52, 87, 0.07); }
.case-grid strong { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.case-grid span { color: var(--muted); }

.download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 48px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--night-soft), var(--night));
  box-shadow: var(--shadow);
}

.download img { border-radius: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.download .eyebrow { color: #70c8ff; }
.download h2 { max-width: 700px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.button-light { color: var(--night); background: #ffffff; box-shadow: 0 14px 32px rgba(0,0,0,.17); }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 34px 0 42px;
  color: var(--muted);
  font-size: 0.86rem;
}

footer p { margin: 0; }

@media (max-width: 920px) {
  .hero,
  .product { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 60px; }
  .hero-visual { width: min(560px, 100%); justify-self: center; }
  .workflow-grid,
  .case-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 290px; }
  .product { gap: 70px; }
  .download { grid-template-columns: auto 1fr; }
  .download .button { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  .site-header,
  .hero,
  .workflow,
  .product,
  .use-cases,
  .download,
  footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 78px; }
  .brand span { display: none; }
  nav { gap: 13px; font-size: 0.78rem; }
  nav a:first-child { display: none; }
  .hero { padding-bottom: 82px; }
  h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .facts li { flex-direction: row; align-items: baseline; gap: 10px; }
  .hero-visual { min-height: 455px; padding: 24px; border-radius: 30px; }
  .time-card { width: 68%; padding: 18px; }
  .time-card-a { top: 35px; left: 23px; }
  .time-card-b { top: 165px; right: 23px; }
  .operator-card { top: 139px; }
  .result-card { right: 20px; bottom: 24px; left: 20px; padding: 22px; }
  .result-card strong { font-size: 3.35rem; }
  .workflow,
  .use-cases { padding: 88px 0; }
  .product { padding: 76px 20px; border-radius: 30px; }
  .app-preview { width: min(285px, 100%); border-radius: 34px; }
  .download { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .download img { justify-self: center; }
  .download .button { grid-column: auto; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef7ff;
    --muted: #a8b6c6;
    --paper: #07111e;
    --surface: #0e2033;
    --line: rgba(183, 215, 244, 0.14);
    --blue-soft: #113a5c;
  }
  .workflow-grid article,
  .case-grid article { box-shadow: none; }
  .product { background: #0a1b2d; }
  .feature-list article { background: rgba(255,255,255,.04); border-color: var(--line); }
  .button-light { color: #071629; }
}
