:root {
  --bg: #0b0805;
  --bg-2: #100b07;
  --gold: #ff6a45;
  --orange: #ff3b30;
  --orange-soft: #ff8a6a;
  --text: #f6f1e8;
  --muted: #b3a999;
  --line: rgba(255, 90, 70, 0.14);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Background canvas (wave + gliding stars) ---------- */
#waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1300px 700px at 50% 8%, rgba(255,150,40,0.10), transparent 62%),
    linear-gradient(180deg, rgba(11,8,5,0) 52%, rgba(11,8,5,0.78) 82%, var(--bg) 100%);
}

/* ---------- Nav ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
header.scrolled {
  background: rgba(11, 8, 5, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand img { display: block; height: 36px; }
.brand-foot img { display: block; height: 24px; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
@media (max-width: 720px){ .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 0 80px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  width: fit-content;
  background: rgba(255,204,0,0.03);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px 2px rgba(255,122,24,0.7);
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
h1 .accent {
  background: linear-gradient(100deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
}
.cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(100deg, var(--orange), var(--gold));
  color: #1a1206;
  box-shadow: 0 10px 30px -8px rgba(255,122,24,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255,122,24,0.7); }
.btn-ghost {
  border: 1px solid rgba(255,204,0,0.22);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(255,204,0,0.5); transform: translateY(-2px); }

/* ---------- Sections ---------- */
main { position: relative; z-index: 2; background: var(--bg); }

section { padding: 96px 0; }
.section-head { max-width: 56ch; margin-bottom: 56px; }
.kicker {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-soft); font-weight: 600; margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px){ .grid, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  background: linear-gradient(180deg, rgba(255,204,0,0.035), rgba(255,255,255,0.01));
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(255,204,0,0.32); transform: translateY(-4px); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,122,24,0.12);
  color: var(--gold);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* product cards */
.pcard { display: flex; flex-direction: column; }
.pcard .plogo { height: 34px; width: auto; display: block; margin-bottom: 20px; }
.pcard p { flex: 1; }
.pcard .plink {
  margin-top: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--orange-soft);
  transition: color .2s ease;
}
.pcard:hover .plink { color: var(--gold); }

/* coming-soon product cards */
.pcard.soon { cursor: default; }
.pcard.soon:hover { transform: none; border-color: var(--line); }
.pcard.soon .plogo { opacity: 0.8; }
.soon-badge {
  align-self: flex-start;
  margin-top: 22px;
  padding: 5px 12px;
  border: 1px solid rgba(255,204,0,0.35);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}

/* stats strip */
.stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
@media (max-width: 720px){ .stats { grid-template-columns: 1fr; gap: 30px; text-align: center; } }
.stat .num {
  font-size: clamp(2rem,4vw,2.8rem); font-weight: 800;
  background: linear-gradient(100deg, var(--gold), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* CTA band */
.band {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255,122,24,0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,204,0,0.04), rgba(255,255,255,0.01));
}
.band h2 { max-width: 20ch; margin: 0 auto; }
.band p { color: var(--muted); margin: 16px auto 32px; max-width: 50ch; }
.band .cta { justify-content: center; }

/* ---------- Subpages ---------- */
.page-head {
  position: relative;
  z-index: 2;
  padding: 168px 0 24px;
}
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-head .lede { font-size: clamp(1rem, 1.5vw, 1.15rem); }

.page-body { padding: 40px 0 96px; }

.prose { max-width: 760px; color: var(--muted); }
.prose h2 {
  color: var(--text);
  font-size: 1.45rem;
  margin: 44px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 28px 0 8px; }
.prose p { margin: 14px 0; }
.prose ul { margin: 14px 0 14px 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--orange-soft); transition: color .2s ease; }
.prose a:hover { color: var(--gold); }
.updated { font-size: 0.9rem; color: var(--muted); opacity: 0.8; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px){ .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255,204,0,0.45);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.captcha-row img {
  display: block;
  width: 220px; height: 70px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f2efe9;
}
.captcha-row input { flex: 1; min-width: 130px; }
.captcha-refresh {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,204,0,0.22);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.captcha-refresh:hover { border-color: rgba(255,204,0,0.5); transform: rotate(90deg); }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #9fd49f; }
.form-status.err { color: #e09a8f; }
.form-status a { color: var(--orange-soft); }

.contact-aside .card { position: sticky; top: 96px; }
.contact-aside h3 { font-size: 1.05rem; margin-bottom: 10px; }
.contact-aside p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.contact-aside a.mail {
  color: var(--orange-soft);
  font-weight: 600;
}
.contact-aside a.mail:hover { color: var(--gold); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  margin: 0 auto;
  max-width: 660px;
  z-index: 30;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: rgba(16, 11, 7, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.65);
}
.consent p { flex: 1; min-width: 220px; margin: 0; color: var(--muted); font-size: 0.92rem; }
.consent a { color: var(--orange-soft); }
.consent a:hover { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 46px 0;
}
.foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  color: var(--muted); font-size: 14px;
}
.foot a:hover { color: var(--gold); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }

/* ---------- Code blocks (install / quick-start) ---------- */
.code {
  position: relative;
  background: #0a0705;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 6px 0;
}
.code pre {
  font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e9e2d6;
  white-space: pre;
}
.code .cmt { color: #7d7466; }
.code .kw  { color: #ff8a6a; }
.code .str { color: #d6b98a; }
.copy {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.copy:hover { color: var(--text); border-color: rgba(255,90,70,0.5); }

/* feature list with a check mark */
.feat { list-style: none; margin: 0; padding: 0; }
.feat li { display: flex; gap: 12px; padding: 10px 0; color: var(--muted); }
.feat li::before {
  content: "▸";
  color: var(--orange);
  font-weight: 700;
}
.feat li strong { color: var(--text); font-weight: 600; }

/* two-column: text + code */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px){ .split { grid-template-columns: 1fr; } }

/* ---------- Footer: made-by Stardyn ---------- */
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 13px;
}
.made-by span { opacity: 0.85; }
.made-by img { height: 20px; display: block; opacity: 0.9; transition: opacity .2s ease; }
.made-by:hover img { opacity: 1; }
.foot-copy {
  color: var(--muted);
  font-size: 13px;
  opacity: 0.7;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
