@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");

/* RealCut — site styles.

   Flat ink, hard edges, one gold accent that belongs to the brand and one
   per-asset accent that belongs to the product. No gradient washes, no glows,
   no floating shapes: those are what make a page look machine-made. Motion is
   short, arrives once, and is switched off entirely for reduced-motion. */

:root {
  --bg:      #0B0E12;
  --bg-alt:  #0E141B;
  --panel:   #111821;
  --panel-2: #151E28;
  --line:    #1F2A36;
  --line-2:  #2A3947;

  --ink:     #F2F5F7;
  --ink-2:   #C6D0D9;
  --dim:     #8D9AA5;
  --faint:   #67757F;

  --gold:    #E7B93F;
  --gold-2:  #C89A28;
  --accent:  var(--gold);

  --ok:      #56C48C;

  /* names the older pages still use inline */
  --text:      var(--ink);
  --text-dim:  var(--dim);
  --text-faint:var(--faint);
  --border:    var(--line);
  --card:      var(--panel);

  --wrap: 1180px;
  --r: 12px;
  --r-lg: 18px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.reduced-motion { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .12em .42em;
  color: var(--ink-2);
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.dim { color: var(--dim); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.16rem; }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.shown { opacity: 1; transform: none; }
html.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 14, 18, .88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; border-radius: 8px; }
.brand b { color: var(--gold); font-weight: 700; }

.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  color: var(--dim); font-size: .93rem; font-weight: 500;
  padding: 8px 13px; border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--ink); background: var(--panel); }
.main-nav a.active { color: var(--gold); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-family: var(--font); font-size: .94rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-solid, .btn-primary {
  background: var(--gold); color: #14100A; border-color: var(--gold);
}
.btn-solid:hover, .btn-primary:hover { background: #F3C651; border-color: #F3C651; }

.btn-ghost, .btn-outline {
  background: transparent; color: var(--ink-2); border-color: var(--line-2);
}
.btn-ghost:hover, .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */

.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center-head { margin-inline: auto; text-align: center; }
.section-head p { color: var(--dim); margin-top: 12px; }

.eyebrow {
  display: inline-block; color: var(--gold);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 14px;
}

.page-head { padding: 74px 0 44px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--dim); max-width: 640px; margin-top: 12px; }

/* ---------- hero ---------- */

.hero { padding: 104px 0 92px; position: relative; }
.hero-logo svg { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 28px; }
.hero h1 { max-width: 15ch; }
.hero .grad { color: var(--gold); }
.tagline { color: var(--dim); font-size: 1.1rem; max-width: 60ch; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-suite { display: flex; gap: 14px; margin-top: 56px; flex-wrap: wrap; }
.hero-suite img {
  width: 62px; height: 62px; border-radius: 14px; border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.hero-suite a:hover img { transform: translateY(-4px); border-color: var(--gold); }

/* ---------- stats strip ---------- */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.stat .num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--gold); letter-spacing: -.03em; }
.stat .lbl { color: var(--dim); font-size: .86rem; }

/* ---------- cards ---------- */

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { border-color: var(--line-2); }

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

.feature-card .feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--dim); font-size: .95rem; }

.info-tile { display: flex; gap: 16px; align-items: flex-start; }
.info-tile .ico { font-size: 1.3rem; flex: none; }
.info-tile h3 { margin-bottom: 6px; }
.info-tile p { color: var(--dim); font-size: .95rem; }

/* ---------- product grid ---------- */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.product-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); }
html.reduced-motion .product-card:hover { transform: none; }

.product-card .thumb { display: block; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-card .thumb img { width: 100%; aspect-ratio: 1950 / 1300; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.03); }
html.reduced-motion .product-card:hover .thumb img { transform: none; }

.product-card .body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-head { display: flex; gap: 14px; align-items: flex-start; }
.card-icon { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.card-tagline { color: var(--accent); font-size: .9rem; font-weight: 500; margin-top: 2px; }
.product-card .desc { color: var(--dim); font-size: .95rem; flex: 1; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--dim);
}
.tag-live { border-color: rgba(86,196,140,.4); color: var(--ok); }
.tag-review { border-color: rgba(231,185,63,.4); color: var(--gold); }

.price { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-free { color: var(--ok); }

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- product detail ---------- */

.detail-hero { padding: 52px 0 64px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.crumbs { color: var(--faint); font-size: .86rem; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--gold); }

.detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.detail-icon { width: 62px; height: 62px; border-radius: 15px; margin-bottom: 20px; }
.detail-copy h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.detail-copy .lead { color: var(--accent); font-size: 1.15rem; font-weight: 500; margin: 12px 0 22px; }
.detail-copy .meta-row { margin-bottom: 24px; }
.detail-art img { border-radius: var(--r-lg); border: 1px solid var(--line); }

.note { color: var(--faint); font-size: .88rem; margin-top: 16px; max-width: 60ch; }

.detail-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { margin-bottom: 26px; }

.shot img { border-radius: var(--r-lg); border: 1px solid var(--line); width: 100%; }

.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 6px; top: .72em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.check-list strong { color: var(--ink); font-weight: 600; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 15px; align-items: flex-start; color: var(--ink-2); }
.steps li::before {
  content: counter(s); flex: none;
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 420px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); color: var(--dim); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 600; }

.changelog { list-style: none; display: grid; gap: 18px; }
.changelog li { padding-left: 20px; border-left: 2px solid var(--line-2); }
.changelog .ver { font-weight: 700; color: var(--accent); margin-right: 10px; }
.changelog .date { color: var(--faint); font-size: .86rem; }
.changelog p { color: var(--dim); margin-top: 5px; font-size: .95rem; }

details {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); margin-bottom: 11px; overflow: hidden;
}
summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; }
details[open] summary::after { content: "−"; }
.answer { padding: 0 20px 18px; color: var(--dim); font-size: .95rem; }

pre {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; overflow-x: auto;
  margin: 14px 0 20px; line-height: 1.6;
}
pre code {
  background: none; border: 0; padding: 0; color: var(--ink-2);
  font-size: .88rem; white-space: pre;
}
.docs-body pre + p { margin-top: -6px; }

/* ---------- about / docs / support ---------- */

.about-hero { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.avatar {
  width: 76px; height: 76px; flex: none; border-radius: 19px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; font-weight: 800; color: var(--gold); font-size: 1.35rem;
}

.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.docs-nav { position: sticky; top: 92px; display: grid; gap: 3px; }
.docs-nav a { color: var(--dim); padding: 8px 12px; border-radius: 8px; font-size: .93rem; }
.docs-nav a:hover { background: var(--panel); color: var(--ink); }
.docs-body h2 { margin: 34px 0 14px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body p, .docs-body li { color: var(--dim); }
.docs-body ol, .docs-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }

.legal p, .legal li { color: var(--dim); }
.legal h2 { margin: 32px 0 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.updated { color: var(--faint); font-size: .88rem; }

/* ---------- forms ---------- */

.form-grid { display: grid; gap: 16px; }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
input, textarea, select {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); font-family: var(--font); font-size: .95rem;
  transition: border-color .2s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 130px; }
.form-note { color: var(--faint); font-size: .86rem; }
.form-success { color: var(--ok); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band { padding: 78px 0; background: var(--bg-alt); border-top: 1px solid var(--line); text-align: center; }
.cta-band p { color: var(--dim); margin-top: 12px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--dim); font-size: .93rem; margin-top: 14px; max-width: 34ch; }
.footer-store { display: inline-block; margin-top: 14px; color: var(--gold); font-size: .9rem; font-weight: 600; }
.footer-store:hover { text-decoration: underline; }
.site-footer h4 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer ul a { color: var(--dim); font-size: .93rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: var(--faint); font-size: .88rem;
}
.footer-bottom a { color: var(--dim); margin-left: 16px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 14px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .detail-top { grid-template-columns: 1fr; gap: 32px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-2, .grid-3, .product-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
