/* WebDragon — site stylesheet
   Layout concept: navy "control room" bands (hero, solutions console, contact) alternating
   with calm Cloud reading sections; one bold moment = the live AI work log in the hero. */
:root {
  --navy: #0D1B2A;
  --deep: #081420;
  --ember: #E8622C;
  --ember-ink: #B8461A;   /* ember darkened for text on light backgrounds */
  --jade: #2E8B67;
  --jade-soft: #7FD1AE;   /* jade lifted for text on navy */
  --cloud: #F4F6F8;
  --mist: #D9DEE4;
  --ink: #1A1F26;
  --muted: #56616E;
  --paper: #FFFFFF;
  --dragon: #1A9BE0;     /* logo blue, sampled from the dragon mark */
  --dragon-soft: #6CC4F2;
  --on-navy: #E9EEF3;
  --on-navy-muted: #9FB0C2;
  --line-navy: rgba(217, 222, 228, 0.14);

  --f-display: Georgia, "Times New Roman", Times, serif;
  --f-body: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 10px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--ember-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="tab"]:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ember); color: var(--deep); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--deep { background: var(--deep); color: var(--on-navy); }
.band--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin-bottom: 14px;
  display: inline-block;
}
.band--navy .eyebrow, .band--deep .eyebrow, .hero .eyebrow { color: var(--ember); }
.lede { font-size: 1.2rem; max-width: 62ch; color: var(--muted); }
.band--navy .lede, .band--deep .lede { color: var(--on-navy-muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn--ember { background: var(--ember); color: var(--deep); }
.btn--ember:hover { background: #F07A48; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(233, 238, 243, 0.35); color: var(--on-navy); background: transparent; }
.btn--ghost:hover { border-color: var(--on-navy); }
.btn--ink { background: var(--navy); color: var(--paper); }
.btn--ink:hover { background: var(--deep); }
.btn--line { border-color: var(--mist); color: var(--ink); background: var(--paper); }
.btn--line:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-navy);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--f-display); font-size: 1.35rem; }
.brand img { width: 44px; height: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(26, 155, 224, 0.35)); }
.site-footer .brand img { width: 56px; }
.site-footer .brand { font-size: 1.6rem; }
.brand .brand-ai { color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-navy); text-decoration: none; font-size: 0.98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ember); }
.nav-cta { padding: 9px 18px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-navy); color: var(--on-navy); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-navy); padding: 8px var(--gutter-r) 18px var(--gutter); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-navy); }
  .nav-links li:last-child a { border: 2px solid transparent; margin-top: 12px; text-align: center; justify-content: center; }
  .site-header { position: sticky; }
  .nav { position: relative; }
}

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 104px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 155, 224, 0.22), rgba(26, 155, 224, 0) 65%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; left: -90px; bottom: -110px; width: 420px; height: 390px;
  background: url("/assets/img/webdragon-logo.png") no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}
@media (max-width: 640px) { .hero::before { width: 300px; height: 280px; left: auto; right: -80px; bottom: -60px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .lede { margin-top: 22px; font-size: 1.25rem; color: var(--on-navy-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-langs { margin-top: 26px; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--on-navy-muted); }
.hero-langs b { color: var(--on-navy); font-weight: 500; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* AI work log */
.log {
  background: var(--deep); border: 1px solid var(--line-navy); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  font-family: var(--f-mono); font-size: 0.86rem;
}
.log-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-navy); color: var(--on-navy-muted); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.log-live { display: inline-flex; align-items: center; gap: 8px; color: var(--jade-soft); }
.log-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade-soft); box-shadow: 0 0 0 0 rgba(127, 209, 174, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 209, 174, .55); } 70% { box-shadow: 0 0 0 9px rgba(127, 209, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 174, 0); } }
.log ol { list-style: none; margin: 0; padding: 6px 0; }
.log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 11px 16px; color: var(--on-navy); line-height: 1.45; border-bottom: 1px dashed rgba(217, 222, 228, 0.08); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }
.log .tag { display: inline-block; margin-top: 4px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.log li.is-new { animation: slidein .5s ease both; }
@keyframes slidein { from { opacity: .2; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.log-foot { padding: 10px 16px; border-top: 1px solid var(--line-navy); color: var(--on-navy-muted); font-size: 0.72rem; }
@media (prefers-reduced-motion: reduce) { .log-live::before, .log li.is-new { animation: none; } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--mist); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: var(--paper); padding: 22px 24px; display: grid; gap: 2px; }
.stat b { font-family: var(--f-display); font-size: 2rem; font-weight: 400; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Pain points */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pain { border-top: 2px solid var(--navy); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.pain h3 { font-size: 1.2rem; }
.pain p { color: var(--muted); font-size: 1rem; }
.pain .fix { color: var(--jade); font-weight: 700; font-size: 0.95rem; }
@media (max-width: 960px) { .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pains { grid-template-columns: minmax(0, 1fr); } }

/* Solutions console */
.console { display: grid; grid-template-columns: 280px minmax(0, 1fr); border: 1px solid var(--line-navy); border-radius: 14px; overflow: hidden; background: var(--deep); }
.tablist { display: flex; flex-direction: column; border-right: 1px solid var(--line-navy); padding: 10px; gap: 4px; }
.tab {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: transparent; border: 0; border-radius: 8px; padding: 13px 14px; cursor: pointer;
  color: var(--on-navy-muted); font: inherit; font-size: 1.02rem;
}
.tab .num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--on-navy-muted); width: 22px; }
.tab:hover { color: var(--on-navy); background: rgba(255, 255, 255, 0.04); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--paper); box-shadow: inset 3px 0 0 var(--ember); }
.tab[aria-selected="true"] .num { color: var(--ember); }
.panel { padding: clamp(24px, 4vw, 44px); display: grid; gap: 26px; align-content: start; }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--paper); }
.panel .panel-intro { color: var(--on-navy-muted); max-width: 60ch; }
.pdo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 22px; }
.pdo > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pdo h4 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.pdo .k-pain h4 { color: #F4A582; }
.pdo .k-ai h4 { color: var(--ember); }
.pdo .k-win h4 { color: var(--jade-soft); }
.pdo p, .pdo li { color: var(--on-navy); font-size: 1rem; }
.pdo ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pdo .k-ai { background: var(--navy); border: 1px solid var(--line-navy); border-radius: var(--radius); padding: 18px; }
.panel-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--on-navy-muted); font-size: 0.95rem; }
.js .panel[hidden] { display: none !important; }
@media (max-width: 960px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .tablist { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-navy); scrollbar-width: thin; }
  .tab { white-space: nowrap; width: auto; }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--ember); }
  .pdo { grid-template-columns: minmax(0, 1fr); }
}

/* Industries */
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.industry { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--mist); }
.industry .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--ember); display: grid; place-items: center; }
.industry .ico svg { width: 22px; height: 22px; }
.industry h3 { font-size: 1.2rem; margin-bottom: 4px; }
.industry p { color: var(--muted); font-size: 1rem; }
.industry .uses { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: var(--cloud); border: 1px solid var(--mist); color: var(--ink); }
.band--paper .chip { background: var(--cloud); }
@media (max-width: 760px) { .industries { grid-template-columns: minmax(0, 1fr); } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 0 24px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step .n { font-family: var(--f-mono); color: var(--ember-ink); font-size: 0.85rem; letter-spacing: 0.1em; display: flex; align-items: center; gap: 10px; }
.step .n::after { content: ""; flex: 1; height: 1px; background: var(--mist); }
.step:last-child .n::after { display: none; }
.step p { color: var(--muted); font-size: 1rem; }
.step .when { font-size: 0.85rem; color: var(--jade); font-weight: 700; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.why-list li { padding: 18px 0; border-bottom: 1px solid var(--line-navy); display: grid; gap: 4px; }
.why-list li:first-child { padding-top: 0; }
.why-list h3 { font-size: 1.15rem; color: var(--paper); }
.why-list p { color: var(--on-navy-muted); font-size: 1rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* Meet Amy */
.amy-card { margin-top: 32px; background: var(--navy); border: 1px solid var(--line-navy); border-radius: 14px; padding: 22px; display: grid; gap: 14px; }
.amy-row { display: flex; align-items: center; gap: 14px; }
.amy-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--deep); border: 2px solid var(--dragon); display: grid; place-items: center; flex: none; overflow: hidden; }
.amy-avatar img { width: 40px; height: auto; }
.amy-row b { color: var(--paper); font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; display: block; }
.amy-row span { color: var(--on-navy-muted); font-size: 0.95rem; }
.amy-card p { color: var(--on-navy); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.quote { margin: 0; display: grid; gap: 14px; align-content: space-between; padding: 26px; background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.45; }
.quote figcaption { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* Blog teaser + blog list */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; padding-top: 18px; border-top: 2px solid var(--navy); }
.post-card:hover h3 { color: var(--ember-ink); }
.post-meta { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.post-meta .cat { color: var(--ember-ink); }
.post-card h3 { font-size: 1.3rem; transition: color .15s; }
.post-card p { color: var(--muted); font-size: 1rem; }
.post-cover { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; object-fit: cover; border-radius: 8px; background: var(--mist); }
.blog-head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.post-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; text-decoration: none; color: inherit; padding: 28px; background: var(--paper); border: 1px solid var(--mist); border-radius: 14px; margin-bottom: 48px; }
.post-feature h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-feature:hover h2 { color: var(--ember-ink); }
.post-feature .feature-art { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 10px; background: var(--navy); display: grid; place-items: center; overflow: hidden; }
.post-feature .feature-art img { width: 100%; height: 100%; object-fit: cover; }
.feature-art .art-word { font-family: var(--f-display); color: var(--ember); font-size: clamp(1.4rem, 3vw, 2rem); padding: 24px; text-align: center; }
@media (max-width: 760px) { .post-feature { grid-template-columns: minmax(0, 1fr); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a { text-decoration: none; color: var(--ink); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--mist); background: var(--paper); font-size: 0.95rem; }
.filters a[aria-current="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 48px; }

.page-hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(48px, 7vw, 80px); }
.page-hero .lede { color: var(--on-navy-muted); margin-top: 14px; }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article-head { display: grid; gap: 16px; }
.article-head .post-meta { color: var(--on-navy-muted); }
.article-head .post-meta .cat { color: var(--ember); }
.prose { font-size: 1.14rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ember); font-family: var(--f-display); font-size: 1.25rem; color: var(--navy); }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: var(--paper); border: 1px solid var(--mist); padding: 1px 6px; border-radius: 4px; }
.prose img { border-radius: 10px; display: block; }
.prose hr { border: 0; border-top: 1px solid var(--mist); margin: 2em 0; }
.article-cover { width: 100%; max-width: 100%; border-radius: 12px; margin-bottom: 36px; }
.article-cta { margin-top: 56px; background: var(--navy); color: var(--on-navy); border-radius: 14px; padding: 28px; display: grid; gap: 12px; }
.article-cta h2 { font-size: 1.6rem; color: var(--paper); }
.article-cta p { color: var(--on-navy-muted); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.share a { color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; display: grid; }
.faq details { border-bottom: 1px solid var(--mist); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--ember-ink); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-points li { display: flex; gap: 10px; color: var(--on-navy); }
.contact-points li::before { content: "→"; color: var(--ember); }
.contact-direct { margin-top: 28px; color: var(--on-navy-muted); font-size: 0.98rem; }
.contact-direct a { color: var(--on-navy); }
.form { background: var(--paper); color: var(--ink); border-radius: 14px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--mist); border-radius: 8px; background: var(--cloud); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); background: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.checks label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--mist); border-radius: 999px; cursor: pointer; font-size: 0.95rem; background: var(--cloud); }
.checks input { accent-color: var(--ember); width: auto; margin: 0; }
.checks label:has(input:checked) { border-color: var(--navy); background: var(--paper); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { font-weight: 700; padding: 12px 14px; border-radius: 8px; }
.form-status.ok { background: #E3F3EC; color: #1E5E45; }
.form-status.err { background: #FBE7DE; color: #8A3412; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-navy-muted); padding-block: 48px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 12px; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--on-navy-muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ember); }
.slogan { font-family: var(--f-display); font-style: italic; color: var(--on-navy); font-size: 1.15rem; margin-top: 12px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-navy); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.88rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Amy — n8n chat widget theming */
:root {
  --chat--color--primary: var(--ember);
  --chat--color--primary-shade-50: #D4561F;
  --chat--color--primary--shade-100: #B8461A;
  --chat--color--secondary: var(--navy);
  --chat--color-secondary-shade-50: var(--deep);
  --chat--color-dark: var(--navy);
  --chat--color-light: var(--cloud);
  --chat--font-family: var(--f-body);
  --chat--border-radius: 12px;
  --chat--header--background: var(--navy);
  --chat--header--color: var(--paper);
  --chat--heading--font-size: 1.5em;
  --chat--message--user--background: var(--navy);
  --chat--message--user--color: var(--paper);
  --chat--message--bot--background: var(--paper);
  --chat--message--bot--color: var(--ink);
  --chat--toggle--background: var(--ember);
  --chat--toggle--hover--background: #D4561F;
  --chat--toggle--color: var(--deep);
  --chat--window--width: min(400px, calc(100vw - 32px));
  --chat--window--height: min(600px, calc(100vh - 120px));
  --chat--window--bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  --chat--window--right: calc(16px + env(safe-area-inset-right, 0px));
}
.chat-heading h1, .chat-header h1 { font-family: var(--f-display) !important; font-weight: 400 !important; }
.chat-header {
  background-image: url("/assets/img/webdragon-logo.png") !important;
  background-repeat: no-repeat !important;
  background-size: 46px auto !important;
  background-position: left 16px center !important;
  padding-left: 76px !important;
}
.chat-window-toggle { box-shadow: 0 8px 24px -6px rgba(232, 98, 44, 0.6); }

/* Admin */
.admin-body { background: var(--cloud); }
.admin-bar { background: var(--navy); color: var(--on-navy); }
.admin-bar .nav { min-height: 60px; }
.admin-bar a { color: var(--on-navy); }
.admin-main { padding-block: 40px 80px; }
.admin-card { background: var(--paper); border: 1px solid var(--mist); border-radius: 12px; padding: clamp(18px, 3vw, 28px); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.admin-table th { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.admin-table td { font-variant-numeric: tabular-nums; }
.pill { font-size: 0.78rem; padding: 2px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.pill.pub { background: #E3F3EC; color: #1E5E45; }
.pill.draft { background: var(--cloud); color: var(--muted); border: 1px solid var(--mist); }
.pill.sched { background: #FBE7DE; color: #8A3412; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.editor-grid textarea#body { min-height: 460px; font-family: var(--f-mono); font-size: 0.95rem; line-height: 1.6; }
.cheat { font-size: 0.9rem; display: grid; gap: 10px; }
.cheat code { font-family: var(--f-mono); font-size: 0.85rem; background: var(--cloud); padding: 1px 5px; border-radius: 4px; }
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 700; }
.notice.ok { background: #E3F3EC; color: #1E5E45; }
.notice.err { background: #FBE7DE; color: #8A3412; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ember-ink); font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } }

/* WebDragon Studio — visuals, video & animation */
.studio-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }
.studio-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dragon); }
.studio-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2); }
.studio-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.studio-col { background: var(--paper); border: 1px solid var(--mist); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.studio-frame { aspect-ratio: 16 / 9; max-width: 100%; background: var(--navy); position: relative; display: grid; place-items: center; overflow: hidden; }
.studio-frame svg { width: 70%; height: 70%; }
.studio-frame .tc { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }
.studio-frame .ratio { position: absolute; right: 12px; top: 10px; font-family: var(--f-mono); font-size: 0.7rem; color: var(--dragon-soft); border: 1px solid rgba(108, 196, 242, 0.4); border-radius: 4px; padding: 1px 6px; }
.studio-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.studio-body h3 { font-size: 1.35rem; }
.studio-body p { color: var(--muted); font-size: 1rem; }
.studio-body ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 1rem; }
.formats { margin-top: 36px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 20px; align-items: center; padding: 20px 22px; background: var(--paper); border: 1px solid var(--mist); border-radius: 12px; }
.formats strong { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.formats .uses { display: flex; flex-wrap: wrap; gap: 8px; }
.formats .chip b { font-family: var(--f-mono); font-weight: 500; color: var(--dragon); margin-right: 4px; }
.studio-flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.studio-flow li { display: grid; gap: 4px; padding: 14px 16px; border-left: 3px solid var(--dragon); background: var(--paper); border-radius: 0 8px 8px 0; }
.studio-flow b { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; }
.studio-flow span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .studio-cols { grid-template-columns: minmax(0, 1fr); } .studio-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .studio-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .studio-flow { grid-template-columns: minmax(0, 1fr); } .formats { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   THEME: "Dragon scale" — restores the original webdragon.ai look:
   dark navy with a fish-scale (dragon skin) texture, warm ember + jade
   glows, bold DM Sans headlines, jade eyebrows and window-style cards.
   Layout concept: one continuous dark scaled surface; sections are
   separated by tone and glow rather than by light/dark bands.
   ===================================================================== */
:root {
  --bg: #111C2B;
  --bg-deep: #0C1521;
  --surface: #172538;
  --surface-2: #1D2D43;
  --line-strong: #2A3B52;
  --text: #EDF1F5;
  --text-muted: #A3AFBD;
  --ember-text: #F2895A;
  --jade-text: #5DC79B;
  --scale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='%23A9C1DA' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M0 22a22 22 0 0 1 44 0'/%3E%3Cpath d='M-22 11a22 22 0 0 1 44 0'/%3E%3Cpath d='M22 11a22 22 0 0 1 44 0'/%3E%3C/g%3E%3C/svg%3E");

  /* remap the original tokens onto the dark scale theme */
  --cloud: var(--bg);
  --paper: var(--surface);
  --ink: var(--text);
  --muted: var(--text-muted);
  --mist: var(--line-strong);
  --ember-ink: var(--ember-text);
  --navy: #0E1826;
  --deep: #0A121D;
  --on-navy: var(--text);
  --on-navy-muted: var(--text-muted);

  --f-display: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  background-image: var(--scale);
  background-size: 44px 22px;
  color: var(--text);
}
body::before { background: var(--bg); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -0.05em; }
h2 { line-height: 1.1; }
h3 { letter-spacing: -0.02em; }

/* Eyebrows: jade, letter-spaced, with a dot */
.eyebrow, .band--navy .eyebrow, .band--deep .eyebrow, .hero .eyebrow {
  font-family: var(--f-body); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.22em;
  color: var(--jade-text); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--jade-text); }

/* Bands: share the scaled surface, separated by tone */
.band--navy { background: rgba(6, 12, 20, 0.35); }
.band--deep { background: rgba(4, 9, 16, 0.5); }
.band--paper { background: rgba(255, 255, 255, 0.025); }
.band, .page-hero { position: relative; }
.band--navy, .band--deep, .band--paper { border-block: 1px solid rgba(255, 255, 255, 0.04); }

/* Header */
.site-header { background: rgba(17, 28, 43, 0.82); border-bottom-color: rgba(255, 255, 255, 0.06); }
.brand { font-family: var(--f-body); font-weight: 700; letter-spacing: -0.02em; font-size: 1.3rem; }
.brand .brand-ai { color: inherit; }
.nav-links a { font-weight: 500; }

/* Buttons */
.btn { font-weight: 700; }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: #F07438; }
.btn--jade { background: var(--jade); color: #fff; }
.btn--jade:hover { background: #349A73; }
.btn--ink { background: var(--jade); color: #fff; }
.btn--ink:hover { background: #349A73; }
.btn--ghost { border-color: rgba(237, 241, 245, 0.3); }
.btn--line { background: transparent; }

/* Hero: warm ember glow bottom-left, jade glow top-right */
.hero { background: transparent; padding-block: clamp(64px, 9vw, 120px) clamp(64px, 8vw, 104px); }
.hero::after {
  right: -220px; top: -200px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(46, 139, 103, 0.24), rgba(46, 139, 103, 0) 62%);
}
.hero::before {
  left: -260px; bottom: -260px; width: 640px; height: 640px; opacity: 1;
  background: radial-gradient(circle, rgba(232, 98, 44, 0.20), rgba(232, 98, 44, 0) 62%);
}
@media (max-width: 640px) { .hero::before { width: 420px; height: 420px; left: -200px; right: auto; bottom: -200px; } }
.hero h1 em { font-style: normal; color: var(--ember-text); }
.hero .lede { color: var(--text-muted); }
.hero-langs { font-family: var(--f-body); letter-spacing: 0.04em; }

/* Stats: plain, under the hero buttons */
.stats { margin-top: 44px; background: none; border: 0; border-radius: 0; overflow: visible; display: flex; flex-wrap: wrap; gap: 28px 64px; }
.stat { background: none; padding: 0; }
.stat b { font-family: var(--f-body); font-weight: 700; font-size: 2.1rem; color: var(--text); letter-spacing: -0.03em; }
.stat span { font-size: 0.9rem; }

/* Hero card: browser window with tiles */
.log { background: rgba(23, 37, 56, 0.92); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; font-family: var(--f-body); font-size: 0.97rem; padding: 6px 22px 10px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.log-head { padding: 18px 2px 16px; text-transform: none; letter-spacing: 0; font-size: 0.85rem; border-bottom-color: rgba(255, 255, 255, 0.08); }
.log-head .win { display: inline-flex; align-items: center; gap: 7px; }
.log-head .win i { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); display: inline-block; }
.log-head .win i:nth-child(2) { background: #D49A3A; }
.log-head .win i:nth-child(3) { background: var(--jade); margin-right: 14px; }
.log-live { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.log ol { padding: 14px 0 4px; display: grid; gap: 10px; }
.log li { background: rgba(255, 255, 255, 0.045); border: 0; border-radius: 10px; padding: 13px 16px; grid-template-columns: 50px minmax(0, 1fr); }
.log time { font-family: var(--f-mono); font-size: 0.82rem; padding-top: 2px; }
.log .tag { font-family: var(--f-body); font-weight: 700; color: var(--jade-text); letter-spacing: 0.1em; }
.log-foot { border-top: 0; padding: 8px 2px 10px; font-family: var(--f-body); }

/* Lines and cards on the dark surface */
.pain { border-top-color: var(--line-strong); }
.pain .fix { color: var(--jade-text); }
.post-card { border-top-color: var(--line-strong); }
.step .when { color: var(--jade-text); }
.step .n { color: var(--ember-text); }
.industry { border-bottom-color: var(--line-strong); }
.industry .ico { background: var(--surface-2); color: var(--ember-text); }
.chip { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.quote { background: var(--surface); border-color: rgba(255, 255, 255, 0.06); }
.quote blockquote { font-size: 1.12rem; letter-spacing: -0.01em; }
.console { background: rgba(10, 18, 29, 0.85); border-color: rgba(255, 255, 255, 0.07); }
.tab[aria-selected="true"] { background: var(--surface); }
.pdo .k-ai { background: var(--surface); }
.amy-card { background: var(--surface); }
.amy-row b { font-family: var(--f-body); font-weight: 700; }
.why-list li { border-bottom-color: rgba(255, 255, 255, 0.08); }
.slogan { font-family: var(--f-body); }
.feature-art .art-word { font-family: var(--f-body); font-weight: 700; }
.faq summary { font-family: var(--f-body); font-weight: 700; font-size: 1.12rem; }
.faq details { border-bottom-color: var(--line-strong); }

/* Studio */
.studio-col { background: var(--surface); border-color: rgba(255, 255, 255, 0.06); }
.studio-frame { background: var(--bg-deep); }
.studio-flow li { background: var(--surface); }
.studio-flow b { font-family: var(--f-body); font-weight: 700; }
.formats { background: var(--surface); border-color: rgba(255, 255, 255, 0.06); }

/* Contact: warm glow behind the form */
#contact { overflow: hidden; }
#contact::before {
  content: ""; position: absolute; right: -240px; bottom: -280px; width: 680px; height: 680px; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 98, 44, 0.16), rgba(232, 98, 44, 0) 62%);
}
#contact .wrap { position: relative; }
.form { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--text); }
.field input, .field textarea, .field select { background: var(--bg-deep); border-color: var(--line-strong); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { background: var(--bg); border-color: var(--jade-text); }
.checks label { background: rgba(255, 255, 255, 0.03); }
.checks label:has(input:checked) { background: rgba(46, 139, 103, 0.18); border-color: var(--jade-text); }
.form-status.ok { background: rgba(46, 139, 103, 0.2); color: #9BE3C2; }
.form-status.err { background: rgba(232, 98, 44, 0.18); color: #F7B596; }
.contact-points li::before { color: var(--jade-text); }

/* Blog and article pages */
.page-hero { background: transparent; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -200px; top: -220px; width: 560px; height: 560px; pointer-events: none;
  background: radial-gradient(circle, rgba(46, 139, 103, 0.2), rgba(46, 139, 103, 0) 62%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.filters a { background: rgba(255, 255, 255, 0.03); }
.filters a[aria-current="true"] { background: var(--jade); border-color: var(--jade); color: #fff; }
.post-feature { background: var(--surface); border-color: rgba(255, 255, 255, 0.06); }
.prose blockquote { color: var(--text); font-family: var(--f-body); font-style: italic; border-left-color: var(--ember); }
.prose code { background: var(--surface-2); border-color: var(--line-strong); }
.article-cta { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); }

/* Footer */
.site-footer { background: rgba(4, 9, 16, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* Admin */
.admin-body { background-color: var(--bg); }
.admin-bar { background: rgba(10, 18, 29, 0.9); }
.admin-card { background: var(--surface); border-color: rgba(255, 255, 255, 0.07); }
.notice.ok, .pill.pub { background: rgba(46, 139, 103, 0.2); color: #9BE3C2; }
.notice.err, .pill.sched { background: rgba(232, 98, 44, 0.18); color: #F7B596; }
.pill.draft { background: rgba(255, 255, 255, 0.05); }
.cheat code { background: var(--bg-deep); }

/* Amy chat on the dark theme */
:root {
  --chat--color-dark: #0E1826;
  --chat--color-light: #172538;
  --chat--color-light-shade-50: #1D2D43;
  --chat--header--background: #0E1826;
  --chat--message--bot--background: #1D2D43;
  --chat--message--bot--color: #EDF1F5;
  --chat--message--user--background: #2E8B67;
  --chat--message--user--color: #fff;
  --chat--toggle--color: #fff;
  --chat--font-family: var(--f-body);
}
.brand, .admin-bar .brand { color: var(--text); }

/* Dark-theme text fixes: headings that used the old light "paper" colour */
.tab[aria-selected="true"], .panel h3, .why-list h3, .amy-row b, .article-cta h2 { color: var(--text); }
:root {
  --chat--header--color: #EDF1F5;
  --chat--color-white: #172538;
  --chat--textarea--color: #EDF1F5;
}
.chat-header, .chat-header h1, .chat-header p, .chat-heading { color: #EDF1F5 !important; }
.chat-header p { opacity: 0.75; }
.chat-inputs, .chat-inputs textarea { background: #0C1521 !important; color: #EDF1F5 !important; }
.chat-inputs textarea::placeholder { color: #A3AFBD; }
