/* InkGo site. Palette from app/app/src/main/java/com/inkgo/app/ui/theme/Theme.kt */
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/bvp-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/bvp-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/bvp-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --primary: #0963CE;
  --cyan: #43CBFF;
  --blue: #1684FF;
  --indigo: #4656EB;
  --action: linear-gradient(110deg, #0867D8, #414EDD);
  --brand: linear-gradient(135deg, #43CBFF 0%, #1684FF 48%, #4656EB 100%);
  --bg: #F1F5FB;
  --surface: #FFFFFF;
  --text: #17253D;
  --muted: #52627B;
  --outline: #DDE5F0;
  --paper: #ECE9E2;
  --ink: #17191c;
  --radius: 24px;
  --shadow-soft: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 48px -28px rgba(23,37,61,.35), 0 0 0 1px rgba(23,37,61,.05);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 7.4vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* soft background light */
.sky { position: absolute; inset: 0 0 auto 0; height: 980px; overflow: hidden; pointer-events: none; z-index: 0; }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.sky::before { width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(67,203,255,.55), transparent 65%); }
.sky::after { width: 560px; height: 560px; left: -220px; top: 260px; background: radial-gradient(circle, rgba(70,86,235,.30), transparent 65%); }

/* header */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.logo svg { width: 36px; height: 36px; filter: drop-shadow(0 6px 10px rgba(22,132,255,.30)); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.7); }
.nav .lang { border: 1px solid var(--outline); background: rgba(255,255,255,.6); color: var(--text); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 16px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-play { background: var(--text); color: #fff; padding: 11px 22px 11px 16px; box-shadow: 0 14px 28px -14px rgba(23,37,61,.6); }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-play small { font-size: 12px; font-weight: 400; opacity: .8; }
.btn-play b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.btn-ghost { color: var(--primary); padding: 14px 18px; background: rgba(255,255,255,.7); border: 1px solid var(--outline); }
.btn-light { background: #fff; color: var(--text); }

/* hero */
.hero { position: relative; z-index: 1; padding: 12px 0 40px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); background: rgba(255,255,255,.75); border: 1px solid var(--outline); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(22,132,255,.15); }
.hero h1 .grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: 14px; color: var(--muted); background: rgba(255,255,255,.65); border: 1px solid var(--outline); padding: 5px 12px; border-radius: 999px; }
.stage { position: relative; display: grid; place-items: center; padding: 6% 2% 14%; }
@media (min-width: 960px) {
  .hero { padding: 24px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr 1.08fr; gap: 40px; }
  .stage { padding: 10% 0 16%; }
}

/* ---------- the device ---------- */
.device { --rx: 14deg; --ry: -22deg; --rz: 3deg; --gx: 0%; --r: 15%;
  position: relative; width: min(100%, 560px); aspect-ratio: 1.68; perspective: 1500px; }
.device-float { width: 100%; height: 100%; animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
.device-body { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.device.live .device-body { transition: transform .25s ease-out; }
.device-layer { position: absolute; inset: 0; border-radius: var(--r) / calc(var(--r) * 1.68);
  background: linear-gradient(135deg, #2b8df2, #3c45c9); }
.device-layer:nth-child(1) { transform: translateZ(-2.4px); }
.device-layer:nth-child(2) { transform: translateZ(-4.8px); }
.device-layer:nth-child(3) { transform: translateZ(-7.2px); }
.device-layer:nth-child(4) { transform: translateZ(-9.6px); }
.device-layer:nth-child(5) { transform: translateZ(-12.0px); }
.device-layer:nth-child(6) { transform: translateZ(-14.4px); }
.device-layer:nth-child(7) { transform: translateZ(-16.8px); }
.device-layer:nth-child(8) { transform: translateZ(-19.2px); }
.device-layer:nth-child(9) { transform: translateZ(-21.6px); }
.device-layer:nth-child(10) { transform: translateZ(-24.0px); background: linear-gradient(135deg, #2265cf, #2e33a3); }
.device-front { position: absolute; inset: 0; transform: translateZ(0); padding: 6.2%;
  border-radius: var(--r) / calc(var(--r) * 1.68); background: var(--brand);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.55), inset 0 -4px 10px rgba(30,40,150,.35), inset 0 0 0 1px rgba(255,255,255,.12); }
.device-front::before { /* top-left sheen, like the launcher icon */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%); }
.device-bezel { position: relative; height: 100%; padding: 4.2%; border-radius: 9% / 19%;
  background: linear-gradient(150deg, #44536f 0%, #1a2337 38%, #0f1626 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35), inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px -6px rgba(15,22,60,.6); }
.device-screen { position: relative; height: 100%; overflow: hidden; border-radius: 3.5% / 7.5%; background: var(--paper);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.25); }
.device-screen img, .paper img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; mix-blend-mode: multiply; opacity: .92; }
.device-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.42) calc(var(--gx) + 0%), rgba(255,255,255,0) calc(var(--gx) + 34%), rgba(255,255,255,0) calc(var(--gx) + 70%), rgba(255,255,255,.10) calc(var(--gx) + 100%)); }
.device-screen::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; z-index: 1; }
.device-screen.flash::before { animation: einkflash .46s steps(1, end); }
.device-shadow { position: absolute; left: 6%; right: 10%; bottom: -17%; height: 24%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23,37,61,.34), rgba(23,37,61,.10) 60%, transparent);
  filter: blur(10px); animation: shadow 7s ease-in-out infinite; transform: translateX(var(--sx, 4%)); }

/* smaller, calmer devices inside sections */
.device.sm { --rx: 10deg; --ry: -14deg; --rz: 0deg; width: min(100%, 440px); }
.device.sm .device-float, .device.sm .device-shadow { animation: none; }
.device.sm .device-shadow { bottom: -12%; height: 18%; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes einkflash { 0% { opacity: 1; } 33% { opacity: 0; } 50% { opacity: .85; } 75% { opacity: 0; } 100% { opacity: 0; } }

/* sections */
.section { position: relative; z-index: 1; padding: 56px 0; }
.section .wrap { display: grid; gap: 34px; align-items: center; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; display: inline-flex; gap: 8px; align-items: center; }
.kicker svg { width: 20px; height: 20px; }
.section p.lead { font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; background: rgba(22,132,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230963CE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (min-width: 900px) {
  .section { padding: 84px 0; }
  .section .wrap { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section.flip .copy { order: 2; }
}
.visual { display: grid; place-items: center; }

/* fan of three devices (clock faces) */
.fan { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1.05; }
.fan .device { position: absolute; width: 74%; }
.fan .device:nth-child(1) { left: 0; top: 0; --rx: 12deg; --ry: -18deg; --rz: -5deg; z-index: 1; }
.fan .device:nth-child(2) { left: 13%; top: 31%; --rx: 12deg; --ry: -18deg; --rz: -1deg; z-index: 2; }
.fan .device:nth-child(3) { left: 26%; top: 62%; --rx: 12deg; --ry: -18deg; --rz: 3deg; z-index: 3; }

/* switcher */
.switch { display: grid; justify-items: center; gap: 30px; width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--outline); border-radius: 999px; box-shadow: var(--shadow-soft); }
.seg[hidden] { display: none; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--action); color: #fff; }
.caption { font-size: 14px; color: var(--muted); text-align: center; margin: -10px 0 0; }

/* cards */
.cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .cards.two { grid-template-columns: 1fr 1fr; gap: 24px; } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--brand);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 10px 18px -8px rgba(22,132,255,.55); }
.icon svg { width: 26px; height: 26px; }
.icon.soft { background: #EAF2FF; color: var(--primary); box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(23,37,61,.25); }
.progress { margin-top: 22px; height: 10px; border-radius: 99px; background: #EAF0F8; overflow: hidden; }
.progress i { display: block; height: 100%; width: 64%; border-radius: inherit; background: var(--action); animation: load 4s ease-in-out infinite; }
@keyframes load { 0% { width: 8%; } 70%, 100% { width: 100%; } }
.meter { display: flex; gap: 6px; margin-top: 22px; }
.meter i { flex: 1; height: 10px; border-radius: 99px; background: var(--action); }
.meter i:last-child { background: #EAF0F8; }
.split-title { display: grid; gap: 10px; margin-bottom: 30px; max-width: 40em; }
.section.stack .wrap { display: block; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; color: #fff; background: var(--action); }
.steps p { color: var(--muted); margin: 0; }

/* final band */
.band { position: relative; z-index: 1; padding: 30px 0 70px; }
.band .inner { border-radius: 32px; padding: 44px 26px; text-align: center; color: #fff; background: var(--brand); position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(22,90,230,.7); }
.band .inner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.25), rgba(255,255,255,0) 45%); pointer-events: none; }
.band h2 { color: #fff; position: relative; }
.band p { opacity: .9; position: relative; max-width: 30em; margin: 0 auto 26px; }
.band .btn { position: relative; }

/* footer */
.foot { border-top: 1px solid var(--outline); background: #fff; padding: 34px 0 40px; font-size: 15px; color: var(--muted); position: relative; z-index: 1; }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--primary); }
.foot .small { font-size: 14px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* documents */
.doc { position: relative; z-index: 1; padding: 20px 0 64px; }
.doc .wrap { max-width: 800px; }
.doc article { background: var(--surface); border-radius: 28px; padding: 30px 22px; box-shadow: var(--shadow-soft); }
@media (min-width: 700px) { .doc article { padding: 48px 56px; } }
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 1.8em; letter-spacing: -.01em; }
.doc h3 { font-size: 18px; margin-top: 1.4em; }
.doc p, .doc li { color: #2a3953; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .summary { background: #F3F7FD; border: 1px solid var(--outline); border-radius: 18px; padding: 18px 20px; margin: 22px 0 8px; }
.doc .summary ul { margin: 0; }
.doc .faq { border-top: 1px solid var(--outline); padding-top: 4px; }
.doc details { border-bottom: 1px solid var(--outline); padding: 14px 0; }
.doc summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-right: 30px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--primary); }
.doc details[open] summary::after { content: "–"; }
.doc details > *:not(summary) { margin-top: 10px; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tagline { margin: 10px 0 0; }
.gap-top { margin-top: 18px; }
.center { text-align: center; }

/* phone: device first, tighter rhythm */
@media (max-width: 959px) {
  .hero .stage { order: -1; padding: 4% 4% 12%; }
  .hero .device { width: min(100%, 460px); }
  .hero .copy { text-align: left; }
}
@media (max-width: 899px) {
  .section { padding: 44px 0; }
  .cards.three .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; align-items: start; }
  .cards.three .icon { grid-row: span 2; margin: 0; width: 46px; height: 46px; }
  .cards.three h3 { margin: 2px 0 2px; font-size: 18px; }
}
@media (max-width: 420px) {
  .seg button { padding: 8px 10px; font-size: 13px; }
  .lead { font-size: 17px; }
  .cta .btn-ghost { padding: 12px 16px; }
}
@media (min-width: 960px) { .hero { padding-bottom: 24px; } }
