:root {
  --bg: #0a0d10;
  --bg-2: #11171d;
  --panel: #171d23;
  --panel-2: #202830;
  --text: #f4f7fb;
  --muted: #a6b4c1;
  --soft: #d7e3ee;
  --line: rgba(255,255,255,0.12);
  --green: #42f5a1;
  --green-bright: #58ff9c;
  --green-deep: #189e55;
  --duck: #111;
  --shadow: 0 24px 80px rgba(0,0,0,0.38);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 10%, rgba(66,245,161,0.18), transparent 30%),
    radial-gradient(circle at 10% 30%, rgba(35,184,113,0.10), transparent 34%),
    linear-gradient(180deg, #090b0e 0%, #10151a 44%, #0a0d10 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1;
  background: #151515;
  color: var(--green-bright);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.brand-text { font-size: 20px; }
.brand-text span { color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: var(--text); }

.nav-download,
.button-beveled {
  color: #06100a !important;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #9affc4 0%, var(--green-bright) 34%, #2ce879 62%, var(--green-deep) 100%);
  border: 1px solid #baffd5;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -2px 0 rgba(0,0,0,0.34),
    0 0 18px rgba(66,245,161,0.33),
    0 8px 20px rgba(0,0,0,0.22);
  text-shadow: 0 1px 0 rgba(255,255,255,0.42);
}
.nav-download {
  padding: 9px 13px;
  border-radius: 4px;
}
.nav-download:hover,
.button-beveled:hover {
  color: #06100a !important;
  filter: brightness(1.07);
}
.nav-cta {
  color: var(--text) !important;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.section-pad {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 58px;
  min-height: 760px;
  padding-top: 48px;
}

.eyebrow {
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 16px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-bottom: 26px;
}
h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.hero-subhead,
.large-copy,
.section-heading p,
.beta-box p,
.callout p {
  color: var(--soft);
  font-size: 19px;
  line-height: 1.62;
}
.hero-subhead { max-width: 690px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, filter .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--green-bright);
  color: #06100a;
  box-shadow: 0 18px 50px rgba(66,245,161,0.22);
}
.button-secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
  color: var(--text);
}
.hero-note, .microcopy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-panel { position: relative; min-height: 590px; }
.screenshot-stack { position: relative; min-height: 590px; }
.screen {
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  background: #111;
}
.screen-main {
  position: absolute;
  right: 0;
  top: 0;
  width: min(100%, 560px);
}
.screen-secondary {
  position: absolute;
  left: -70px;
  bottom: 0;
  width: min(68%, 380px);
}

.section-heading { max-width: 850px; margin-bottom: 34px; }
.section-heading.compact { max-width: 780px; }
.problem-section,
.comparison-section,
.resources-section,
.faq-section,
.products-section,
.academic-section { border-top: 1px solid var(--line); }

.card-grid { display: grid; gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card, .download-card, .product-card, .callout, .beta-box, .comparison-table, .faq-list details {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0,0,0,0.22);
}
.card { padding: 28px; }
.card p,
.product-card li,
.product-line,
.faq-list p,
.comparison-table,
.download-card p,
.check-list {
  color: var(--muted);
  line-height: 1.58;
}

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product-grid.three-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { padding: 32px; }
.product-card.featured-free {
  border-color: rgba(66,245,161,0.42);
  background:
    radial-gradient(circle at 84% 14%, rgba(66,245,161,0.18), transparent 40%),
    linear-gradient(180deg, rgba(66,245,161,0.12), rgba(255,255,255,0.04));
}
.product-card.paid-product {
  border-color: rgba(255,255,255,0.18);
}
.product-kicker {
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
}
.product-card ul { margin: 20px 0 26px; padding-left: 20px; }
.product-card li { margin-bottom: 10px; }
.text-link { color: var(--green-bright); font-weight: 900; }

.comparison-table { overflow: hidden; }
.row {
  display: grid;
  grid-template-columns: 180px 150px 1.1fr 1.1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row > div {
  padding: 20px;
  border-left: 1px solid var(--line);
}
.row > div:first-child { border-left: 0; }
.row.header {
  color: var(--text);
  font-weight: 900;
  background: rgba(255,255,255,0.05);
}

.resource-card { min-height: 190px; }

.callout {
  padding: clamp(30px, 6vw, 64px);
  background:
    radial-gradient(circle at 85% 12%, rgba(66,245,161,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
}
.callout p { max-width: 850px; }
.callout .button { margin-top: 14px; }

.beta-section { padding-top: 0; }
.beta-box {
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.beta-box p { max-width: 720px; margin-bottom: 0; }

.faq-list { overflow: hidden; background: transparent; }
.faq-list details {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 22px 24px;
  box-shadow: none;
}
.faq-list details:first-child { border-top: 0; }
.faq-list summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.faq-list p { margin: 14px 0 0; max-width: 860px; }

.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 54px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.site-footer strong { color: var(--text); }
.site-footer p { margin: 8px 0 0; max-width: 560px; line-height: 1.5; }
.footer-links { display: flex; align-items: center; gap: 18px; font-weight: 800; }
.footer-links a:hover { color: var(--text); }

.free-tool-page .hero { min-height: auto; padding-top: 84px; }
.generator-placeholder {
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 20% 0%, rgba(66,245,161,0.18), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.generator-placeholder h2 { font-size: clamp(30px, 4vw, 50px); }
.generator-placeholder p { color: var(--soft); line-height: 1.6; }
.placeholder-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

@media (max-width: 1100px) {
  .product-grid.three-products { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav { display: flex; gap: 10px; }
  .nav a:not(.nav-download) { display: none; }
  .hero,
  .split-section,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-panel { min-height: 560px; }
  .screen-secondary { left: 0; width: min(64%, 360px); }
  .card-grid.three { grid-template-columns: 1fr; }
  .download-card { position: static; }
  .row { grid-template-columns: 1fr; }
  .row > div { border-left: 0; border-top: 1px solid var(--line); }
  .row > div:first-child { border-top: 0; }
  .row.header { display: none; }
  .beta-box, .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .section-pad { width: min(100% - 24px, var(--max)); padding: 58px 0; }
  .site-header { width: min(100% - 24px, var(--max)); }
  .hero-panel, .screenshot-stack { min-height: 480px; }
  .screen-main { width: 100%; }
  .screen-secondary { width: 72%; }
  .hero-actions .button { width: 100%; }
  .product-card, .card, .download-card, .beta-box { padding: 24px; }
}


/* Publii theme additions */
.page-render--landing > section:first-child { margin-top: 0; }
.content-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}
.content-page__header { margin-bottom: 34px; }
.content-page__body {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.7;
}
.content-page__body h2,
.content-page__body h3 {
  color: var(--text);
  margin-top: 1.35em;
}
.content-page__body a { color: var(--green-bright); font-weight: 800; }
.content-page__body img {
  border-radius: 13px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 28px 0;
}
.resources-index { border-top: 1px solid var(--line); }
.pagination { margin-top: 34px; color: var(--muted); }
.pagination a { color: var(--green-bright); font-weight: 800; }
.tag-label {
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
}
.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.ducktc-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  padding: 22px;
}
.simple-hero {
  padding-top: 84px;
  min-height: auto;
}
.editing-note {
  width: min(var(--max), calc(100% - 36px));
  margin: 24px auto;
  color: var(--muted);
  border: 1px dashed rgba(88,255,156,.4);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(88,255,156,.06);
}
@media (max-width: 980px) {
  .site-header { position: relative; }
}


/* v3 Publii compatibility + editable content helpers */
body.page-template .page-render--landing,
body.home-template .page-render--landing { min-height: 60vh; }
.nav-download { white-space: nowrap; }
.card a, .product-card a { color: var(--green-bright); font-weight: 800; }
.content-page__body ul { color: var(--soft); line-height: 1.7; }
.content-page__body li { margin: 0.45rem 0; }
.resources-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 30px; }
.resources-page-grid .card { min-height: 0; }
.site-header { background: linear-gradient(180deg, rgba(10,13,16,.90), rgba(10,13,16,.60)); }
@media (max-width: 760px) {
  .resources-page-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-download { padding: 8px 11px; font-size: 13px; }
}


/* v5 image aspect-ratio fix: Publii adds width/height attributes; force responsive scaling to preserve the uploaded image ratio. */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.screen, .post__image.screen { margin: 0; overflow: hidden; }
.screen > img, .screen img { width: 100%; height: auto !important; object-fit: contain; }
.post__image img, .content-page__body img { height: auto !important; }


/* v6 menu-driven navigation + favicon theme support
   Navigation now comes from Publii Menus > Main menu. Use a menu item CSS class to style individual items:
   - nav-download = neon green beveled button
   - nav-cta or nav-beta = rounded outline CTA button
*/
.site-header {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13,17,21,.88), rgba(10,13,16,.68));
  box-shadow: 0 18px 60px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.06);
}
.brand-mark {
  background: rgba(88,255,156,0.09);
  color: var(--green-bright);
}
.brand-mark svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: var(--green-bright);
  filter: drop-shadow(0 0 10px rgba(88,255,156,.25));
}
.nav { display: flex; align-items: center; }
.nav-menu,
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.nav-menu > li,
.nav-submenu > li {
  position: relative;
  margin: 0;
}
.nav-menu a,
.nav-menu .is-separator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .is-separator:hover,
.nav-menu .is-separator:focus {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  outline: none;
}
.nav-menu li.has-submenu > a::after,
.nav-menu li.has-submenu > .is-separator::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .8;
  transform: translateY(1px);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  background: rgba(12,16,20,0.97);
  box-shadow: 0 22px 55px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 0;
  right: 0;
  height: 11px;
}
.nav-submenu .nav-submenu {
  top: -8px;
  left: calc(100% + 8px);
}
.nav-menu li:hover > .nav-submenu,
.nav-menu li:focus-within > .nav-submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-submenu a,
.nav-submenu .is-separator {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  border-radius: 9px;
}
.nav-menu > li.nav-download {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.nav-menu > li.nav-download > a,
.nav-menu > li.nav-green > a {
  color: #06100a !important;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 9px 13px;
  border-radius: 4px;
  background: linear-gradient(180deg, #9affc4 0%, var(--green-bright) 34%, #2ce879 62%, var(--green-deep) 100%);
  border: 1px solid #baffd5;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -2px 0 rgba(0,0,0,0.34),
    0 0 18px rgba(66,245,161,0.33),
    0 8px 20px rgba(0,0,0,0.22);
  text-shadow: 0 1px 0 rgba(255,255,255,0.42);
}
.nav-menu > li.nav-download > a:hover,
.nav-menu > li.nav-download > a:focus,
.nav-menu > li.nav-green > a:hover,
.nav-menu > li.nav-green > a:focus {
  color: #06100a !important;
  filter: brightness(1.07);
  background: linear-gradient(180deg, #afffd0 0%, #72ffab 34%, #39f484 62%, #1fb363 100%);
}
.nav-menu > li.nav-cta > a,
.nav-menu > li.nav-beta > a,
.nav-menu > li.nav-pill > a {
  color: var(--text) !important;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}
.nav-menu > li.nav-cta > a:hover,
.nav-menu > li.nav-beta > a:hover,
.nav-menu > li.nav-pill > a:hover,
.nav-menu > li.nav-cta > a:focus,
.nav-menu > li.nav-beta > a:focus,
.nav-menu > li.nav-pill > a:focus {
  border-color: rgba(88,255,156,.45);
  box-shadow: 0 0 18px rgba(66,245,161,0.13);
}
.footer-contact { color: var(--muted); font-size: 14px; }
.footer-contact a { color: var(--green-bright); font-weight: 800; }
.footer-links { flex-wrap: wrap; }
@media (max-width: 980px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .nav { width: 100%; }
  .nav-menu {
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-menu > li.has-submenu { position: relative; }
  .nav-submenu {
    min-width: 190px;
    max-width: calc(100vw - 48px);
  }
}
@media (max-width: 620px) {
  .site-header {
    margin-top: 10px;
    padding: 10px;
  }
  .brand { width: 100%; }
  .nav-menu a,
  .nav-menu .is-separator {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
  }
  .nav-menu > li.nav-download > a,
  .nav-menu > li.nav-green > a {
    padding: 8px 10px;
  }
}
