/* COREON marketing — Operational Topology
   Warm paper, graphite ink, COREON blue, network nodes as motif.
   Not a SaaS template: logbook rhythm + real UI as proof. */

:root {
  --ink: #1c2430;
  --ink-soft: #4a5564;
  --paper: #f3f0e6;
  --surface: #fffcf6;
  --line: #d9d2c3;
  --accent: #2451b8;
  --accent-deep: #1a3d8f;
  --signal: #1f6f64;
  --good: #1f7a4d;
  --warn: #9a5b12;
  --header-h: 72px;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(28, 36, 48, 0.08);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -40px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(243, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-mark { color: var(--accent); display: flex; }
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: flex; align-items: center;
  min-height: 40px; padding: 0 10px;
  text-decoration: none; color: var(--ink);
  font-size: 0.94rem; font-weight: 600;
  border-radius: 8px;
}
.site-nav a:hover { background: rgba(36, 81, 184, 0.08); color: var(--accent-deep); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  font-weight: 650; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

main { flex: 1; }
.is-home main { padding: 0; }
.is-inner main { padding: 32px 0 64px; }

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--signal); font-weight: 700; margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42rem; margin: 0 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.free-line {
  margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--signal);
  background: rgba(31, 111, 100, 0.08); border-radius: 0 10px 10px 0;
  font-size: 0.98rem;
}
.trust-line { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.hero-stage { position: relative; min-height: 280px; }
.topo {
  position: absolute; inset: -8% -6%;
  pointer-events: none; opacity: 0.45;
}
.shot-stack { position: relative; z-index: 1; }
.shot-frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.shot-frame img, .shot-frame picture { width: 100%; }
.shot-frame--main { transform: translate(0, 0); }
.shot-frame--back {
  position: absolute; right: -6%; top: 18%; width: 58%;
  transform: rotate(3deg); z-index: -1; opacity: 0.9;
}
.shot-cap {
  margin: 10px 2px 0; font-size: 0.82rem; color: var(--ink-soft);
}

/* Sections */
.section { padding: 64px 0; }
.section-muted { background: rgba(255, 252, 246, 0.55); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em;
  line-height: 1.2; margin: 0 0 12px;
}
.section-lead { color: var(--ink-soft); max-width: 46rem; margin: 0 0 28px; }
.num {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.08em; display: block; margin-bottom: 8px;
}

.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.problem-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.problem-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.problem-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Contour */
.contour {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start;
}
.hub {
  background: var(--ink); color: #f3f0e6; border-radius: 16px; padding: 24px;
  text-align: center;
}
.hub strong { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.hub span { font-size: 0.88rem; opacity: 0.8; }
.nodes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.node {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; min-height: 92px;
}
.node b { display: block; margin-bottom: 4px; }
.node span { color: var(--ink-soft); font-size: 0.9rem; }
.flow {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.flow span, .flow a {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-size: 0.88rem;
  text-decoration: none; color: var(--ink);
}
.flow .arrow { border: 0; background: none; color: var(--signal); padding: 0 2px; font-weight: 700; }

/* Features */
.feat-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.feat-nav a {
  min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; font-size: 0.9rem;
}
.feat-nav a:hover, .feat-nav a.is-active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.feat-panel {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start;
  padding: 8px 0 28px; border-top: 1px solid var(--line);
}
.feat-panel h3 { margin: 0 0 8px; font-size: 1.35rem; }
.feat-panel ul { margin: 12px 0 16px; padding-left: 1.1rem; }
.feat-panel li { margin: 6px 0; }
.feat-panel .more { font-weight: 650; }

/* Roles */
.role-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.role-switch button {
  min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 650;
}
.role-switch button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.role-panel[hidden] { display: none; }
.no-js .role-panel[hidden] { display: block; }

/* Chips / integrations */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 12px; font-size: 0.9rem; font-weight: 650;
}
.chip--net { border-color: rgba(31,111,100,.35); color: var(--signal); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.price-card .sum {
  font-size: 1.8rem; font-weight: 750; letter-spacing: -0.03em; margin: 8px 0;
}
.price-card--accent { border-color: var(--signal); background: rgba(31,111,100,0.07); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.step .n { font-family: var(--mono); color: var(--accent); font-weight: 700; }

/* Trust */
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust-item {
  border: 1px dashed var(--line); border-radius: 12px; padding: 16px; background: var(--surface);
}
.trust-item b { display: block; margin-bottom: 4px; }
.note { color: var(--warn); font-size: 0.88rem; }

/* Form */
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 650; margin-bottom: 6px; }
.req { color: #9a2b2b; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: inherit;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36,81,184,.15); outline: none;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 12px; padding: 12px; border-radius: 10px; }
.form-status.ok { background: rgba(31,122,77,.1); color: var(--good); }
.form-status.err { background: rgba(154,43,43,.08); color: #8a1f1f; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: auto; min-height: 20px; margin-top: 3px; }

/* FAQ */
.faq-list { display: grid; gap: 8px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center;
}
.faq-list details p { color: var(--ink-soft); margin: 0 0 14px; }

/* Footer */
.site-footer {
  background: #161b24; color: #e8e4d8; padding: 48px 0 20px; margin-top: auto;
}
.site-footer a { color: #dbe4ff; }
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa3b2; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-tagline, .footer-legal { color: #b7b3a8; font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
  color: #9aa3b2; font-size: 0.88rem;
}
.logo--footer { color: #f3f0e6; margin-bottom: 10px; }

/* Inner pages */
.page-content { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero { margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; }
.crumbs a { color: var(--ink-soft); }
.prose { max-width: 46rem; }
.prose p { color: var(--ink-soft); }
.shot-solo { margin: 20px 0 8px; max-width: 860px; }
a.node { text-decoration: none; color: inherit; display: block; }
a.node:hover { border-color: var(--accent); color: inherit; }

/* Gallery leftovers */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.shot-card__body { padding: 12px 14px 16px; }
.shot-card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.shot-card__title { margin: 4px 0; font-size: 1.02rem; }
.shot-card.is-hidden { display: none; }
.shot-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.shot-filter { min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 12px; cursor: pointer; font-weight: 650; }
.shot-filter.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.changelog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.changelog-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.changelog-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .2rem .5rem; border-radius: 8px; color: #fff; }
.changelog-badge--added { background: var(--signal); }
.changelog-badge--changed { background: var(--accent); }
.changelog-badge--fixed { background: var(--warn); }
.lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(22,27,36,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none !important; }
.lightbox__figure { max-width: min(1100px, 96vw); margin: 0; text-align: center; color: #f3f0e6; }
.lightbox__figure img { max-height: 78vh; border-radius: 12px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 1.6rem;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.mobile-band {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
}
.phone-note {
  border: 1px dashed var(--line); border-radius: 16px; padding: 22px; background: var(--surface);
}

@media (max-width: 1024px) {
  .hero-grid, .feat-panel, .demo-grid, .contour, .mobile-band { grid-template-columns: 1fr; }
  .shot-frame--back { display: none; }
  .hub { margin-bottom: 8px; }
  .nodes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav, .header-actions { display: none; }
  .site-nav.is-open, .header-actions.is-open {
    display: flex; flex-direction: column; width: 100%;
  }
  .header-bar { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; width: 100%; padding-bottom: 8px; }
  .site-nav a, .header-actions .btn { width: 100%; }
  .problem-grid, .price-grid, .steps, .footer-grid, .trust-list, .nodes {
    grid-template-columns: 1fr;
  }
  .hero { padding: 28px 0 36px; }
  .section { padding: 40px 0; }
  .flow span { width: 100%; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 20px); }
  .hero h1 { font-size: 1.7rem; }
}
