:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1a30;
  --panel: rgba(6, 23, 51, .72);
  --panel-line: rgba(0, 136, 255, .25);
  --text: #f7fbff;
  --muted: #9db9df;
  --yellow: #ffd400;
  --blue: #008cff;
  --cyan: #00b7ff;
  --green: #1fbf5f;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

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

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--yellow);
  color: #10131a;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: .92rem;
}

.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 212, 0, .10), transparent 40%),
    radial-gradient(circle at 12% 20%, rgba(0, 140, 255, .22), transparent 38%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 64px;
}

.hero-text { max-width: 560px; }

.hero-features .grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hero-features .card { padding: 10px; }

.hero-features .icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: .48rem;
  margin-bottom: 6px;
}

.hero-features .icon-badge {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border-width: 2px;
  font-size: .46rem;
  bottom: -5px;
  right: -5px;
}

.hero-features .icon-badge-wide { width: 20px; font-size: .38rem; }

.hero-features .card h3 { font-size: .8rem; margin: 0 0 3px; }
.hero-features .card p { font-size: .7rem; line-height: 1.35; }

.hero-features .badge-pro {
  font-size: .56rem;
  padding: 1px 6px;
  margin-top: 6px;
}

.tools-usage-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.tools-usage-bar span {
  font-size: .74rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-features-cards .card {
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}

.hero-features-cards .card:hover { border-color: var(--blue); }
.hero-features-cards .card:active { transform: scale(.98); }
.hero-features-cards .card.is-busy { opacity: .55; pointer-events: none; }

.tools-toast {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  min-height: 1.1em;
}

.tools-toast a { color: var(--cyan); }
.tools-toast.is-pro { color: var(--yellow); font-weight: 600; }
.tools-toast.is-error { color: #ff8080; }

.hero-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}

h1 .flow { color: var(--yellow); }

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 0 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  font-size: .98rem;
}

.btn-primary { background: var(--yellow); color: #10131a; }
.btn-primary:hover { background: #ffdf40; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-line);
}
.btn-ghost:hover { border-color: var(--blue); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

.trust-item .dot { color: var(--green); font-size: 1rem; }

/* Sections */
section { padding: 76px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.section-head p { color: var(--muted); margin: 0; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 22px;
}

.card .icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: .64rem;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.icon-pdf { background: linear-gradient(160deg, #e2565b, #a52f33); }
.icon-img { background: linear-gradient(160deg, #9c81e3, #6b4cb3); }
.icon-doc { background: linear-gradient(160deg, #5490f5, #2f5fc4); }

.icon-badge {
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 3px solid var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

.icon-badge-wide {
  width: 27px;
  font-size: .5rem;
  letter-spacing: -.03em;
}

.badge-w { background: #2f6fed; }
.badge-x { background: #27ae60; }
.badge-p { background: #c0622a; }
.badge-t { background: #17a2b8; }
.badge-pdf { background: #c0392b; }
.badge-merge { background: #8e5fd6; font-size: .9rem; }
.badge-watermark { background: #17a2b8; font-size: .72rem; }

.card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; }

.badge-pro {
  display: inline-block;
  margin-top: 10px;
  font-size: .68rem;
  font-weight: 800;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 999px;
  padding: 2px 8px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step { position: relative; padding-left: 52px; }

.step .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--yellow);
  color: #10131a;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.platform-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.platform-card .glyph { font-size: 1.8rem; margin-bottom: 10px; }
.platform-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 14px;
}
.platform-card h3 { margin: 0 0 6px; font-size: 1rem; }
.store-badge {
  display: block;
  height: 42px;
  width: auto;
  margin: 16px auto 0;
}
.platform-card .status {
  display: inline-block;
  margin-top: 12px;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-live { background: rgba(31, 191, 95, .18); color: var(--green); }
.status-soon { background: rgba(157, 185, 223, .14); color: var(--muted); }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: 30px;
}

.price-card.pro { border-color: var(--yellow); }

.price-card h3 { margin: 0 0 6px; }
.price-tag { font-size: 2rem; font-weight: 800; margin: 6px 0 18px; }
.price-tag span { font-size: .85rem; color: var(--muted); font-weight: 600; }

.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.price-card li { color: var(--muted); font-size: .9rem; display: flex; gap: 8px; }
.price-card li .dot { color: var(--green); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(0, 140, 255, .14), rgba(255, 212, 0, .08));
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  text-align: center;
}

.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }

/* Footer */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--panel-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 32ch; }

footer h4 { font-size: .85rem; margin: 0 0 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; color: var(--text); font-size: .9rem; }
footer a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: .82rem;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 40px; }
.legal h2 { margin-top: 40px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--muted); font-size: .95rem; }
.legal a { color: var(--cyan); }

/* Responsive */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: none; }
  .tools-usage-bar { justify-content: flex-start; }
}
