/* Kagari — owovo.site
   hand-written, no build step, no external requests */

:root {
  --bg: #08090c;
  --bg-soft: #0c0e13;
  --panel: #0f1218;
  --panel-2: #12161e;
  --line: #1e232e;
  --line-soft: #171b24;
  --fg: #e9ecf3;
  --muted: #8b93a6;
  --dim: #5f6779;
  --accent: #8ef0b0;
  --accent-dim: #5cbf85;
  --accent-glow: rgba(142, 240, 176, .14);
  --radius: 14px;
  --maxw: 1180px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(142, 240, 176, .07), transparent 60%),
    radial-gradient(700px 420px at 8% 12%, rgba(108, 199, 255, .05), transparent 65%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(142, 240, 176, .24); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: linear-gradient(to bottom, rgba(8, 9, 12, .86), rgba(8, 9, 12, .55));
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, #14261b, #0c1310);
  border: 1px solid rgba(142, 240, 176, .35);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
.brand-mark.sm { width: 22px; height: 22px; font-size: 12px; border-radius: 7px; }
.brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--dim);
  font-weight: 400;
}

.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.lang-btn:hover { color: var(--accent); border-color: rgba(142, 240, 176, .4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--accent);
  color: #06120b;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(142, 240, 176, .55);
}
.btn-ghost {
  background: rgba(255, 255, 255, .02);
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(142, 240, 176, .45); color: var(--accent); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; margin-top: auto; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(142, 240, 176, .22);
  background: rgba(142, 240, 176, .05);
  color: #b9f4cd;
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: .02em;
  margin-bottom: 26px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(142, 240, 176, .55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(142, 240, 176, .5); }
  70% { box-shadow: 0 0 0 8px rgba(142, 240, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 240, 176, 0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 8px;
  background: rgba(142, 240, 176, .14);
  z-index: -1;
  border-radius: 2px;
}

.lead {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }

.hero-meta {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg);
  font-weight: 600;
}
.hero-meta span { font-size: 12.5px; color: var(--dim); }

/* ---------- terminal ---------- */
.hero-visual { position: relative; }
.term {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0e13, #07090c);
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.term:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .015);
}
.tl { width: 9px; height: 9px; border-radius: 50%; opacity: .8; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.term-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .04em;
}

.term-body {
  margin: 0;
  padding: 20px 18px 26px;
  font-family: var(--mono);
  font-size: 12.7px;
  line-height: 1.95;
  color: #c8d0e0;
  min-height: 268px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body .c-dim { color: var(--dim); }
.term-body .c-acc { color: var(--accent); }
.term-body .c-cy { color: #7ecbff; }
.term-body .c-warn { color: #ffd479; }
.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.glow {
  position: absolute;
  inset: 8% 4% auto 4%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(142, 240, 176, .16), transparent 75%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
}

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 78px 24px;
  border-top: 1px solid var(--line-soft);
}

.sec-head { margin-bottom: 42px; max-width: 46em; }
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  margin-bottom: 14px;
  letter-spacing: -.025em;
}
.sec-sub { color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 55%), var(--panel);
  transition: border-color .25s ease, transform .25s ease, box-shadow .3s ease;
}
.card:hover {
  border-color: rgba(142, 240, 176, .32);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .1em;
}
.price {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-dim);
  letter-spacing: .02em;
}
.card h3 { font-size: 17.5px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--dim);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- work ---------- */
.work {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .25s ease, transform .25s ease;
}
.work:hover { border-color: rgba(142, 240, 176, .3); transform: translateY(-3px); }
.work-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.work-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--accent-dim);
}
.work-metric {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.work h3 { font-size: 18px; margin-bottom: 10px; }
.work p { color: var(--muted); font-size: 14px; flex: 1; }
.work-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.work-state { color: var(--accent-dim); display: inline-flex; align-items: center; gap: 6px; }
.work-state::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 0 22px 0 0;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 9px; right: 8px;
  width: calc(100% - 40px);
  border-top: 1px dashed var(--line);
}
.step-n {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--bg);
  position: relative;
  z-index: 1;
  padding-right: 12px;
  margin-bottom: 14px;
  letter-spacing: .1em;
}
.steps h3 { font-size: 15.5px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- pricing ---------- */
.price-grid { align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
}
.price-card.featured {
  border-color: rgba(142, 240, 176, .4);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(142, 240, 176, .07), transparent 60%),
    var(--panel-2);
  box-shadow: 0 0 0 1px rgba(142, 240, 176, .06), 0 30px 60px -40px rgba(142, 240, 176, .35);
}
.tag-best {
  position: absolute;
  top: -11px;
  left: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  background: var(--accent);
  color: #06120b;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 700;
}
.price-card h3 { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.amount {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.amount .cur { font-size: 17px; color: var(--muted); font-weight: 400; }
.amount .from {
  font-size: 12px;
  color: var(--dim);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0;
}
.price-desc { color: var(--muted); font-size: 13.5px; min-height: 2.9em; }
.price-card ul { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 20px; }
.price-card li {
  font-size: 13.5px;
  color: #b6bdcc;
  padding-left: 20px;
  position: relative;
}
.price-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-family: var(--mono);
  font-size: 12px;
}

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); max-width: 62em; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  padding: 20px 34px 20px 0;
  font-size: 15.5px;
  font-weight: 550;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 18px;
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  color: var(--muted);
  font-size: 14.5px;
  padding: 0 40px 22px 0;
  max-width: 46em;
}

/* ---------- cta ---------- */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.cta-inner {
  border: 1px solid rgba(142, 240, 176, .22);
  border-radius: 20px;
  padding: 62px 40px 58px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(142, 240, 176, .1), transparent 62%),
    linear-gradient(180deg, #0b0f0d, #090b0e);
  position: relative;
  overflow: hidden;
}
.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(142, 240, 176, .05) 1px, transparent 1px);
  background-size: 44px 100%;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 16px; letter-spacing: -.03em; }
.cta p { color: var(--muted); font-size: 15.5px; max-width: 38em; margin: 0 auto; }
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 34px 0 22px;
}
.cta-note { font-size: 13px; color: var(--dim); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line-soft);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}
.foot-left { display: flex; align-items: center; gap: 10px; }
.foot-right { display: flex; gap: 18px; }
.foot-right a { color: var(--dim); transition: color .2s ease; }
.foot-right a:hover { color: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 46px; padding-top: 58px; }
  .term { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .steps li::after { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 20px 40px; }
  .section { padding: 58px 20px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .cta-inner { padding: 44px 22px; }
  .brand-text { display: none; }
  .lang-btn { padding: 6px 8px; }
  .btn-sm { padding: 8px 12px; }
  .faq details p { padding-right: 8px; }
}

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