/* ═══════════════════════════════════════════════════════
   Olectr Ghost Theme — screen.css
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --ink:        #1a4055;
  --ink-dark:   #0d2333;
  --muted:      #6b8a97;
  --hair:       #c8d8e0;
  --bg:         #ffffff;
  --soft:       #edf4f7;
  --accent:     #a9c520;
  --accent-dark:#8aa318;
  --link:       #1a7090;
  --teal:       #0b415d;
  --aqua:       #00c2d4;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Satoshi', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--soft); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ── Layout ──────────────────────────────────────────── */
.wrap { max-width: 1040px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
section { padding: 120px 24px; }

/* ── Typography ──────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2.section-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
p.section-sub {
  font-size: 22px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 64px;
  line-height: 1.4;
}

/* ── Navigation ──────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(11,65,93,0.08);
}
.nav-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.logo img { height: 30px; display: block; }
#site-nav ul {
  display: flex; gap: 24px; list-style: none;
}
#site-nav ul a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  position: relative; opacity: 0.7;
  transition: opacity 0.2s;
}
#site-nav ul a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--aqua);
  transition: width 0.25s;
}
#site-nav ul a:hover { opacity: 1; }
#site-nav ul a:hover::after { width: 100%; }
#site-nav ul a.active { opacity: 1; }
#site-nav ul a.active::after { width: 100%; }
#site-nav ul .nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bg) !important;
  background: var(--teal); padding: 10px 22px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  opacity: 1 !important;
  transition: background 0.2s, transform 0.2s;
}
#site-nav ul .nav-cta::after { display: none !important; }
#site-nav ul .nav-cta:hover { background: #0e5578; transform: scale(1.03); text-decoration: none; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none;
  padding: 6px 4px; -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (FlowSense) ────────────────────────────────── */
.hero {
  text-align: center;
  padding-top: 180px;
  padding-bottom: 140px;
  background: linear-gradient(158deg, #ddeef6 0%, #ffffff 55%);
}
.hero h1 {
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--muted); display: block; }
.hero p.lede {
  font-size: 24px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
  line-height: 1.4;
}
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { background: var(--soft); text-decoration: none; }

/* ── Problem ─────────────────────────────────────────── */
.problem { text-align: center; padding: 140px 24px; }
.problem h2 {
  font-size: 58px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
  max-width: 820px; margin: 0 auto 28px;
}
.problem p {
  font-size: 20px; color: var(--muted);
  max-width: 580px; margin: 0 auto;
}

/* ── Impact metrics ──────────────────────────────────── */
.impact { background: var(--ink); color: #fff; }
.impact .eyebrow { color: #6b9aaa; }
.impact h2.section-title { color: #fff; }
.impact p.section-sub { color: #8abbc8; }
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 24px;
}
.metric { border-top: 1px solid #1d4a60; padding-top: 28px; }
.metric .num {
  font-size: 68px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px;
}
.metric .label { color: #8abbc8; font-size: 15px; line-height: 1.4; }

/* ── Story blocks ─────────────────────────────────────── */
.story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 100px 24px;
  max-width: 1040px; margin: 0 auto;
}
.story.reverse .text { order: 2; }
.story .text h3 {
  font-size: 40px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px;
}
.story .text p { font-size: 18px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.story .text .quote {
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding-top: 20px; margin-top: 20px;
  border-top: 1px solid var(--hair); font-style: italic;
}
.story .visual {
  background: var(--soft); border-radius: 24px;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 88px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); position: relative; overflow: hidden;
}
.story .visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(169,197,32,0.08), transparent 60%);
}
.story .visual .big-num { z-index: 1; }
.story .visual .small {
  font-size: 15px; color: var(--muted); font-weight: 500;
  letter-spacing: 0; margin-top: 12px;
}
.story-band { border-bottom: 1px solid var(--hair); }
.story-band:last-of-type { border-bottom: none; }

/* ── Testimonial ─────────────────────────────────────── */
.testimonial { background: var(--soft); text-align: center; }
.testimonial blockquote {
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2;
  max-width: 800px; margin: 0 auto 32px;
}
.testimonial .cite { color: var(--muted); font-size: 15px; }

/* ── Blog post grid ──────────────────────────────────── */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 40px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(26,64,85,0.12);
  transform: translateY(-2px);
}
.post-card-img {
  display: block; height: 180px;
  background: var(--soft) center/cover no-repeat;
}
.post-card-body { padding: 24px; }
.post-card-tag {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--aqua);
  font-weight: 700; margin-bottom: 10px;
}
.post-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--link); text-decoration: none; }
.post-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.post-card-link { font-size: 13px; font-weight: 600; color: var(--link); }
.post-card-link:hover { text-decoration: underline; }

/* ── Single post ─────────────────────────────────────── */
.post-full { padding-top: 80px; }
.post-header { padding: 80px 24px 56px; text-align: center; }
.post-tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aqua); font-weight: 700; display: inline-block; margin-bottom: 20px;
}
.post-title {
  font-size: 56px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 20px;
}
.post-excerpt {
  font-size: 20px; color: var(--muted);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.5;
}
.post-meta {
  display: flex; align-items: center; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.post-author-img { width: 36px; height: 36px; border-radius: 50%; }
.post-author-name { font-weight: 600; color: var(--ink); }
.post-date::before { content: "·"; margin-right: 12px; }
.post-read-time::before { content: "·"; margin-right: 12px; }
.post-feature-img { max-width: 1040px; margin: 0 auto 48px; padding: 0 24px; }
.post-feature-img img { width: 100%; border-radius: 16px; }
.post-content { padding: 0 24px 80px; }
.post-content h2 { font-size: 32px; font-weight: 700; margin: 48px 0 16px; letter-spacing: -0.02em; }
.post-content h3 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; }
.post-content p { font-size: 17px; line-height: 1.75; color: var(--ink); margin-bottom: 24px; }
.post-content ul, .post-content ol { font-size: 17px; line-height: 1.75; margin: 0 0 24px 24px; }
.post-content blockquote {
  border-left: 3px solid var(--aqua);
  padding: 12px 24px; margin: 32px 0;
  font-size: 20px; font-style: italic; color: var(--muted);
}
.post-content img { border-radius: 12px; margin: 32px 0; }
.post-content a { color: var(--link); text-decoration: underline; }
.post-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px; background: var(--soft);
  padding: 2px 6px; border-radius: 4px;
}
.post-content pre {
  background: var(--ink); color: #e2f0f6;
  padding: 24px; border-radius: 12px; overflow-x: auto; margin-bottom: 24px;
}
.post-content pre code { background: none; padding: 0; font-size: 13px; }

.post-footer { padding: 0 24px 80px; }
.post-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag-pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--hair); border-radius: 980px;
  padding: 5px 14px;
  transition: border-color 0.2s, color 0.2s;
}
.post-tag-pill:hover { border-color: var(--aqua); color: var(--aqua); text-decoration: none; }

.related-posts { padding: 80px 24px; }

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 64px; font-size: 14px;
}
.pagination a {
  padding: 10px 20px; border: 1px solid var(--hair);
  border-radius: 980px; color: var(--ink);
  transition: background 0.2s;
}
.pagination a:hover { background: var(--soft); text-decoration: none; }

/* ── Enterprise page ─────────────────────────────────── */
.ent-hero { padding-top: 180px; padding-bottom: 140px; }
.ent-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.ent-card {
  background: #fff; border: 1px solid var(--hair);
  border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(26,64,85,0.06);
  transition: box-shadow 0.2s;
}
.ent-card:hover { box-shadow: 0 8px 32px rgba(26,64,85,0.12); }
.ent-icon { width: 44px; height: 44px; color: var(--aqua); margin-bottom: 20px; }
.ent-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ent-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Demo Form ────────────────────────────────────────── */
#demo-form { background: var(--soft); display: flex; justify-content: center; }
#ent-demo { background: var(--soft); display: flex; justify-content: center; }
.demo-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 48px 52px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 4px 40px rgba(26,64,85,0.09);
}
.demo-card-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
}
.demo-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #009eb5;
}
.demo-secure {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.demo-card h2 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 8px; line-height: 1.2;
}
.demo-card > p {
  font-size: 14px; color: var(--muted);
  margin-bottom: 28px; line-height: 1.55;
}
.demo-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.demo-field {
  display: flex; flex-direction: column;
  gap: 5px; margin-bottom: 16px;
}
.demo-row .demo-field { margin-bottom: 0; }
.demo-field label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.demo-field .req { color: #c0392b; }
.demo-field input,
.demo-field select,
.demo-field textarea {
  font-family: 'Inter', 'Satoshi', system-ui, sans-serif;
  font-size: 14px; color: var(--ink);
  background: #fff; border: 1.5px solid #d4e0e8;
  border-radius: 10px; padding: 11px 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.demo-field input::placeholder,
.demo-field textarea::placeholder { color: #b4c8d4; }
.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: #009eb5 !important;
  box-shadow: 0 0 0 3px rgba(0,158,181,0.14) !important;
}
.demo-field textarea { min-height: 96px; resize: vertical; }
.demo-submit {
  width: 100%; padding: 16px 24px; border: none;
  border-radius: 980px;
  font-family: 'Inter', 'Satoshi', system-ui, sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  background: linear-gradient(110deg, #00c2d4 0%, #a9c520 100%);
  cursor: pointer; margin-top: 8px; margin-bottom: 16px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.2s;
}
.demo-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.demo-note {
  font-size: 12px; color: var(--muted);
  text-align: center; line-height: 1.55;
}
.demo-note a { color: var(--link); text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────── */
#site-footer {
  background: var(--ink-dark);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 36px;
}
.footer-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px; display: flex; flex-direction: column; gap: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.4); max-width: 240px; margin-top: 12px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.social-link:hover { background: var(--aqua); color: #fff; }
.social-link svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col h5 {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 20px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--aqua); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 12px;
}
.footer-copy { color: rgba(255,255,255,0.35); }
.footer-address { color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }

/* ── Ghost Koenig card widths (required by GScan) ───────── */
.kg-width-wide {
  width: 85vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  #site-nav ul {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 16px 24px 28px;
    flex-direction: column !important;
    gap: 14px !important;
    border-bottom: 1px solid rgba(11,65,93,0.1);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    z-index: 99;
  }
  #site-nav ul.open { display: flex !important; }
  .nav-wrap { padding: 18px 24px; }
  .footer-wrap { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 44px; }
  .hero p.lede { font-size: 18px; }
  h2.section-title { font-size: 36px; }
  p.section-sub { font-size: 18px; }
  .problem h2 { font-size: 36px; }
  .metrics { grid-template-columns: 1fr; gap: 32px; }
  .metric .num { font-size: 52px; }
  .story { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px; }
  .story.reverse .text { order: 1; }
  .story .text h3 { font-size: 28px; }
  .story .visual { font-size: 56px; }
  .testimonial blockquote { font-size: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .ent-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 36px; }
  .demo-card { padding: 32px 20px; }
  .demo-row { grid-template-columns: 1fr; }
  section { padding: 80px 24px; }
  .hero { padding-top: 120px; padding-bottom: 80px; }
}
