:root {
  --ink: #16231e;
  --muted: #65726b;
  --muted-2: #8c968f;
  --paper: #f4efe5;
  --paper-2: #fbf7ef;
  --green: #143d34;
  --green-2: #1d5547;
  --green-3: #2b6a58;
  --coral: #c65d3c;
  --coral-dark: #a9482d;
  --gold: #d5a64d;
  --line: #dcd5c7;
  --soft: #e9e2d4;
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 22px 50px rgba(30, 42, 34, .12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .88em; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 99; }
.skip-link:focus { left: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: 100%; margin: 0 auto;
  padding: 18px max(24px, calc((100vw - 1280px) / 2));
  background: var(--paper);
  border-bottom: 1px solid rgba(220, 213, 199, .55);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: var(--green); color: #f6e7ca; font: 700 15px/1 var(--serif);
  box-shadow: inset 0 0 0 1px rgba(213, 166, 77, .45);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font: 700 17px/1.1 var(--serif); letter-spacing: .1px; }
.brand-copy small { color: var(--muted); font-size: 7.5px; letter-spacing: 1.8px; margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 13px; color: #435149; transition: color .18s ease; }
.site-nav a:hover { color: var(--coral); }
.site-nav .nav-cta {
  background: var(--green); color: #fffdf7; padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; box-shadow: 0 6px 16px rgba(20, 61, 52, .15);
}
.site-nav .nav-cta:hover { background: var(--green-2); color: #fff; }
.site-nav .nav-learn { color: var(--muted); }
.nav-toggle { display: none; width: 40px; height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 3px auto; background: var(--ink); }

/* Shared */
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green-3); font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(198, 93, 60, .12); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }
.section { padding: 108px 0; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 18px 0 0; }
.section-head.light h2 { color: #faf5e9; }
.section-head.light p { color: #b7c9be; }
.section-dark { background: var(--green); color: #f8f2e5; }
.section-dark .eyebrow { color: #8fc4ac; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--coral); color: #fffaf2; box-shadow: 0 12px 28px rgba(198, 93, 60, .18); }
.button-primary:hover { background: var(--coral-dark); }
.button-quiet { border-color: #cfc5b5; color: #3e4c43; background: transparent; }
.button-quiet:hover { background: #ebe3d5; }
.button-light { background: #f8f1e3; color: var(--green); }
.button-light:hover { background: #fff9ed; }
.text-link { color: var(--green); font-weight: 700; font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(20, 61, 52, .25); padding-bottom: 2px; }
.text-link span { color: var(--coral); margin-left: 5px; }

/* Hero */
.hero { display: grid; grid-template-columns: .96fr 1.04fr; gap: 46px; align-items: center; padding-top: 68px; padding-bottom: 74px; }
.hero-copy { padding-top: 14px; }
.hero h1 { font-size: clamp(44px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.05em; white-space: nowrap; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-lede { color: #56645c; max-width: 490px; font-size: 15.5px; line-height: 1.8; margin: 27px 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted-2); font-size: 11px; letter-spacing: .2px; margin: 14px 0 0; }
.hero-facts { display: flex; gap: 30px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font: 400 28px/1 var(--serif); color: var(--green); }
.hero-facts span { font-size: 10px; color: var(--muted); letter-spacing: .4px; margin-top: 7px; }
.hero-visual { position: relative; }
.window-shell { background: #e8e0d2; border: 1px solid #d3c9b8; border-radius: 14px; padding: 8px; box-shadow: var(--shadow); transform: rotate(.4deg); }
.window-bar { display: flex; align-items: center; gap: 5px; height: 25px; padding: 0 8px; color: #7c857e; font-size: 8px; letter-spacing: .2px; }
.window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #cbbfae; }
.window-bar i:first-child { background: #ca8e7a; }
.window-bar i:nth-child(2) { background: #d9b76d; }
.window-bar i:nth-child(3) { background: #8eaf99; }
.window-bar span { margin-left: 9px; }
.window-shell img { border-radius: 7px; border: 1px solid #d7cdbd; width: 100%; }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(255, 252, 244, .95); border: 1px solid #e0d7c9; border-radius: 10px;
  padding: 9px 13px; box-shadow: 0 12px 30px rgba(37, 47, 38, .14); backdrop-filter: blur(8px);
}
.floating-card strong { display: block; font-size: 9px; line-height: 1.2; }
.floating-card small { display: block; font-size: 7px; color: var(--muted); margin-top: 3px; }
.floating-ai { right: -18px; top: 30%; padding-left: 12px; }
.mini-status { width: 7px; height: 7px; border-radius: 50%; background: #5cae86; box-shadow: 0 0 0 4px rgba(92, 174, 134, .14); }
.floating-build { left: -20px; bottom: 13%; }
.floating-check { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e3f0e8; color: #277554; font-size: 12px; }

/* Trust */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251, 247, 239, .55); }
.trust-inner { display: flex; align-items: center; gap: 20px; min-height: 58px; color: #7d8881; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; flex-wrap: wrap; }
.trust-inner span:first-child { color: var(--green); font-weight: 700; letter-spacing: .2px; text-transform: none; font-size: 10.5px; }
.trust-divider { width: 1px; height: 14px; background: var(--line); }
.trust-inner span:not(:first-child):not(.trust-divider) { font-family: var(--serif); font-size: 12px; letter-spacing: -.2px; text-transform: none; color: #58655d; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { position: relative; min-height: 235px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); overflow: hidden; }
.feature-card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--coral), transparent); opacity: .45; }
.feature-card h3 { font-size: 22px; line-height: 1.15; margin: 20px 0 10px; }
.feature-card p { color: var(--muted); font-size: 12.5px; line-height: 1.75; margin: 0; }
.feature-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d8cbb8; border-radius: 8px; color: var(--coral); font-family: var(--serif); font-size: 18px; background: #fcf7eb; }
.feature-large { grid-column: span 1; background: var(--green); color: #f8f2e5; border-color: var(--green); }
.feature-large::after { background: linear-gradient(90deg, var(--gold), transparent); }
.feature-large p { color: #b9cbbf; }
.feature-large .feature-icon { border-color: rgba(244, 231, 205, .25); color: #f0d197; background: rgba(255, 255, 255, .05); }
.feature-wide { grid-column: span 2; min-height: 210px; }
.feature-wide h3 { max-width: 420px; }
.feature-wide p { max-width: 530px; }
.mini-tabs { display: flex; gap: 4px; margin-top: 22px; font: 9px var(--mono); }
.mini-tabs span { padding: 4px 8px; border: 1px solid rgba(244, 234, 214, .16); border-radius: 4px; color: #b6c9bd; }
.mini-tabs .on { background: rgba(244, 234, 214, .11); color: #f6e7c8; border-color: rgba(244, 234, 214, .26); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.chip-row span { font-size: 9.5px; border: 1px solid rgba(255, 255, 255, .19); border-radius: 999px; padding: 4px 9px; color: #e7dcc8; }

/* Templates */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 83% 18%, rgba(101, 161, 127, .18), transparent 35%), radial-gradient(circle at 20% 100%, rgba(198, 93, 60, .08), transparent 40%); pointer-events: none; }
.section-dark .wrap { position: relative; }
.template-showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; }
.template-list { border-top: 1px solid rgba(222, 235, 226, .15); }
.template-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(222, 235, 226, .13); }
.template-row div { flex: 1; }
.template-row strong { display: block; font: 400 18px/1.1 var(--serif); color: #f6eedf; }
.template-row small { display: block; color: #97b3a4; font-size: 10px; margin-top: 5px; }
.pub { display: inline-grid; place-items: center; width: 52px; height: 25px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .2px; color: #fff; flex: 0 0 auto; }
.pub.ieee { background: #315c88; }
.pub.elsevier { background: #b85732; }
.pub.springer { background: #2c745c; }
.pub.nature { background: #3f6b5a; }
.pub.local { background: #8a7a62; }
.template-arrow { color: #83a592; font-size: 14px; }
.template-shot { background: #efe8db; border-radius: 12px; padding: 7px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); transform: rotate(-.5deg); }
.template-shot img { border-radius: 7px; border: 1px solid #d1c5b4; }
.shot-caption { padding: 8px 8px 4px; color: #76847a; font-size: 8px; letter-spacing: .4px; }

/* Assistant */
.assistant-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: center; }
.assistant-copy h2 { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.1; white-space: nowrap; }
.assistant-copy p:not(.eyebrow) { color: var(--muted); max-width: 430px; margin: 22px 0 18px; font-size: 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 20px; color: #445149; font-size: 12px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.assistant-visual { padding: 10px; border-radius: 14px; background: #e9e1d4; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(.3deg); }
.assistant-visual img { border-radius: 8px; border: 1px solid #d7cbbb; }

/* Workflow */
.workflow { padding-top: 88px; padding-bottom: 92px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 26px 30px 0 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; padding-left: 30px; padding-right: 0; }
.step:nth-child(2) { padding-left: 30px; }
.step span { display: block; font: italic 400 17px/1 var(--serif); color: var(--coral); margin-bottom: 18px; }
.step h3 { font-size: 24px; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 12.5px; margin: 0; }

/* Download */
.download-section { background: var(--green); color: #f7f1e4; padding: 92px 0; position: relative; overflow: hidden; }
.download-section::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(240, 224, 194, .16); border-radius: 50%; right: -120px; top: -150px; }
.download-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.download-section h2 { font-size: clamp(40px, 5vw, 66px); line-height: 1.02; }
.download-lede { color: #b9cbbf; font-size: 14px; max-width: 500px; margin: 22px 0 26px; }
.download-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.download-alt { color: #d8e0d8; font-size: 11px; text-decoration: none; border-bottom: 1px solid rgba(220, 230, 222, .3); }
.download-alt:hover { color: #fff; }
.download-progress { max-width: 470px; margin-top: 24px; }
.progress-track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .2s ease; }
.download-progress p { margin: 8px 0 0; font-size: 10px; color: #b9cbbf; }
.download-fallback { max-width: 560px; margin: 14px 0 0; color: #f0c6b5; font-size: 10px; line-height: 1.8; }
.download-fallback a { color: #fff; margin: 0 4px; }
.download-hash { color: #7f9e8d; font-size: 8.5px; margin: 18px 0 0; word-break: break-all; max-width: 650px; }
.download-hash code { color: #9eb6a7; }
.requirements { background: rgba(255, 255, 255, .055); border: 1px solid rgba(231, 240, 232, .18); border-radius: 14px; padding: 27px; }
.req-label { display: block; font-size: 9px; letter-spacing: 1.7px; text-transform: uppercase; color: #9cbaa9; margin-bottom: 15px; }
.requirements ul { list-style: none; margin: 0; padding: 0; }
.requirements li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid rgba(231, 240, 232, .12); }
.requirements li strong { font-size: 11.5px; color: #f2eadb; font-weight: 600; }
.requirements li span { font-size: 9.5px; color: #9fbaa9; margin-top: 3px; }
.req-note { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(231, 240, 232, .12); }
.req-note strong { font-size: 10px; color: #e8cfa5; }
.req-note p { font-size: 9.5px; color: #9fbaa9; line-height: 1.7; margin: 5px 0 0; }

/* FAQ */
.faq { padding-top: 92px; padding-bottom: 90px; }
.faq .section-head { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 400 19px/1.3 var(--serif); color: var(--green); }
.faq details p { color: var(--muted); font-size: 12px; max-width: 760px; margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 26px; justify-content: space-between; flex-wrap: wrap; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
.footer-brand .brand-copy strong { font-size: 14px; }
.footer-brand .brand-copy small { font-size: 6px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 10px; }
.footer-inner a { color: var(--green); text-decoration: none; border-bottom: 1px solid #c7bdad; }
.footer-meta { color: var(--muted-2) !important; }

/* Mobile */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { max-width: 780px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .template-showcase, .assistant-section { grid-template-columns: 1fr; gap: 36px; }
  .assistant-copy { order: 1; }
  .assistant-visual { order: 2; }
  .download-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { width: 100%; padding: 13px 16px; }
  .assistant-copy h2 { white-space: normal; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 15px; box-shadow: var(--shadow); flex-direction: column; gap: 4px; align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 9px 10px; border-radius: 6px; }
  .site-nav a:hover { background: #efe7d9; }
  .site-nav .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
  .hero { padding-top: 44px; padding-bottom: 50px; }
  .hero h1 { font-size: 52px; }
  .hero-lede { font-size: 14px; }
  .hero-facts { gap: 18px; }
  .floating-card { transform: scale(.9); transform-origin: right bottom; }
  .floating-ai { right: -6px; }
  .floating-build { left: -6px; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .feature-card { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2), .step:last-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .step:last-child { border-bottom: 0; }
  .trust-inner { gap: 12px; padding: 8px 0; }
  .trust-inner span:first-child { width: 100%; }
  .trust-divider { display: none; }
  .download-section { padding: 64px 0; }
  .download-section h2 { font-size: 45px; }
  .footer-inner { align-items: flex-start; gap: 14px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 43px; }
  .hero-actions .button { width: 100%; }
  .floating-card { display: none; }
  .template-row strong { font-size: 16px; }
  .template-row small { font-size: 9px; }
  .download-actions .button { width: 100%; }
}
