:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --card: #ffffff;
  --card-2: #f5f7fa;
  --line: #e3e8ef;
  --line-2: #cfd7e2;
  --text: #0f1b2d;
  --muted: #53617a;
  --navy: #0f1b2d;
  --navy-2: #1b2b45;
  --accent: #1a8f78;
  --accent-ink: #137563;
  --accent-soft: rgba(26, 143, 120, .12);
  --accent-2: #3a86c0;
  --paper: #ffffff;
  --ink: #1d2531;
  --ink-2: #6b7482;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 12px 32px -12px rgba(15, 27, 45, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, pre { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(15, 27, 45, .5); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); box-shadow: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--navy); }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; background: linear-gradient(180deg, #fff 55%, var(--bg-2)); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 22px 0 22px; text-wrap: balance; }
.hl-text { color: var(--accent-ink); }
.lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* hero document */
.hero-visual { position: relative; height: 480px; }
.paper { position: absolute; width: 330px; height: 430px; left: 50%; top: 24px; margin-left: -165px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.paper-back { transform: rotate(-9deg) translate(-34px, 10px); opacity: .6; }
.paper-mid { transform: rotate(5deg) translate(30px, 4px); opacity: .85; }
.paper-front { color: var(--ink); padding: 26px 24px; overflow: hidden; transform: rotate(-1.5deg); animation: float 7s ease-in-out infinite; box-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 30px 60px -24px rgba(15, 27, 45, .28); }
@keyframes float { 50% { transform: rotate(-1.5deg) translateY(-10px); } }
.paper-head { text-align: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.paper-head b { display: block; font-size: 15px; letter-spacing: .12em; }
.paper-head small { font-size: 11px; color: var(--ink-2); }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; margin: 11px 0; }
.p-row span { color: var(--ink-2); white-space: nowrap; }
.p-row em { font-style: normal; font-weight: 600; font-size: 12px; }
.p-total { margin-top: 22px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.p-skel { height: 7px; border-radius: 4px; background: #e8ecf2; margin: 12px 0; }
.p-skel.s2 { width: 72%; } .p-skel.s3 { width: 88%; }
.mark { position: relative; padding: 2px 6px; border-radius: 5px; }
.mark::before { content: ""; position: absolute; inset: 0; border-radius: 5px; background: rgba(26, 143, 120, .16); outline: 1.5px solid var(--accent); opacity: 0; transform: scale(.9); }
.mark.on::before { opacity: 1; transform: none; }
.m1::before { animation: hit 6s 1.0s infinite; } .m2::before { animation: hit 6s 1.7s infinite; }
.m3::before { animation: hit 6s 2.4s infinite; } .m4::before { animation: hit 6s 3.4s infinite; }
@keyframes hit { 0%, 4% { opacity: 0; transform: scale(.9); } 9%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; } }
.beam { position: absolute; left: 0; right: 0; top: -80px; height: 80px; background: linear-gradient(to bottom, transparent, rgba(26, 143, 120, .16)); border-bottom: 2px solid var(--accent); animation: scan 6s .4s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes scan { 0% { top: -80px; } 62% { top: 100%; } 100% { top: 100%; } }

.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; font-size: 13px; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); opacity: 0; white-space: nowrap; }
.chip i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.c1 { right: 0; top: 96px; animation: pop 6s 1.1s infinite; }
.c2 { left: 0; top: 150px; animation: pop 6s 1.8s infinite; }
.c3 { right: 6px; top: 208px; animation: pop 6s 2.5s infinite; }
.c4 { left: 4px; top: 300px; animation: pop 6s 3.5s infinite; }
@keyframes pop { 0%, 3% { opacity: 0; transform: translateY(10px) scale(.92); } 8%, 76% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; } }

/* marquee */
.marquee { margin-top: 70px; padding: 20px 0; border-top: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 54px; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 52px; }
.head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.sub { color: var(--muted); font-size: 17px; margin-top: 18px; }
h3 { font-size: 18px; letter-spacing: -.01em; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }


/* ---------- video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 980px; margin-inline: auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); background-size: cover; background-position: center; display: grid; place-items: center; box-shadow: var(--shadow); }
.video-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%); }
.play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: transform .25s, background .2s; }
.play svg { width: 32px; height: 32px; margin-left: 4px; }
.play:hover { transform: scale(1.07); background: var(--navy-2); }
.video-note { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 14px; }
.video.has-poster .video-grid { display: none; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }


/* ---------- slideshow ---------- */
.show { position: relative; }
.show-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.step { position: relative; text-align: left; padding: 16px 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; font-weight: 500; overflow: hidden; transition: color .2s, border-color .2s; }
.step b { font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); font-weight: 600; }
.step i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.step.is-on { color: var(--text); border-color: var(--line-2); }
.step.is-on i { animation: fill var(--dur, 7s) linear forwards; }
.show.is-paused .step.is-on i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.slides { display: grid; border: 1px solid var(--line); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 48px; opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity .55s, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s .55s; }
.slide.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slide h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; margin-bottom: 14px; }
.slide p { color: var(--muted); font-size: 16.5px; }
.slide-art { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; min-height: 300px; padding: 26px; display: grid; place-items: center; }
.show-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.arrow-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.arrow-btn:hover { background: var(--bg-2); border-color: var(--navy); }
.arrow-btn svg { width: 20px; height: 20px; }

.files { display: grid; gap: 10px; width: min(100%, 380px); }
.file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.file u { text-decoration: none; font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 4px 6px; border-radius: 5px; background: rgba(201, 84, 79, .12); color: #b3403b; }
.file u.jpg { background: rgba(58, 134, 192, .14); color: #2a6fa5; }
.file u.eml { background: rgba(26, 143, 120, .14); color: var(--accent-ink); }
.file span { font-family: var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file em { font-style: normal; font-size: 12px; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; }
.file em.ty { color: var(--accent-ink); background: var(--accent-soft); font-weight: 500; }
.slide.is-on .file { animation: rise .5s both; }
.slide.is-on .file:nth-child(2) { animation-delay: .12s; } .slide.is-on .file:nth-child(3) { animation-delay: .24s; } .slide.is-on .file:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.extract { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.mini-paper { width: 210px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: var(--shadow); }
.extract .arrow { width: 44px; color: var(--accent); flex: none; }
.kv { display: grid; gap: 8px; }
.kv div { padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); min-width: 190px; }
.kv small { display: block; font-size: 11px; color: var(--muted); }
.kv b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.slide.is-on .kv div { animation: rise .5s both; }
.slide.is-on .kv div:nth-child(2) { animation-delay: .15s; } .slide.is-on .kv div:nth-child(3) { animation-delay: .3s; }

.code { width: min(100%, 420px); background: var(--navy); color: #d6deeb; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.code-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--mono); font-size: 12px; color: #93a1b8; }
.code-top em { font-style: normal; color: #7fd6c2; }
.code pre { padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; }

/* ---------- features ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s, opacity .8s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- contact ---------- */
.section-contact { background: var(--navy); color: #fff; padding: 120px 0; }
.cta { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.section-contact .kicker { color: #7fd6c2; }
.cta-copy p:not(.kicker) { color: #b6c1d3; font-size: 17.5px; margin-top: 18px; max-width: 46ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 32px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.form .full { grid-column: 1 / -1; }
.form label span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form input.bad { border-color: #c9544f; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
.footer-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { font-size: 18px; }
.footer .logo svg { width: 28px; height: 28px; }
.copy { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 120px; }
  .slide, .cta { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .slide { padding: 32px; gap: 26px; }
  .cta { gap: 36px; }
  .section { padding: 84px 0; }
  .section-contact { padding: 90px 0; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-right .btn { display: none; }
  .nav-right { margin-left: auto; }
  .hero-visual { height: 440px; transform: scale(.9); margin: -10px 0; }
  .c1, .c3 { right: -6px; } .c2, .c4 { left: -6px; }
  .grid { grid-template-columns: 1fr; }
  .show-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .step { flex-direction: column; gap: 2px; padding: 12px 10px 16px; font-size: 12.5px; }
  .slide { padding: 22px; }
  .slide-art { padding: 16px; min-height: 0; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .file { grid-template-columns: auto 1fr; } .file em { grid-column: 1 / -1; justify-self: start; }
  .play { width: 64px; height: 64px; } .play svg { width: 26px; height: 26px; }
  .video-note { bottom: 12px; font-size: 13px; }
  .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .chip, .mark::before { opacity: 1; transform: none; }
  .beam { display: none; }
}
