/* Clehance — shared design system (per-site accent set in :root override) */

:root {
  --ink: #0d1b24;
  --ink-2: #13242f;
  --cream: #f2f2ee;
  --cream-dim: rgba(242, 242, 238, 0.72);
  --cream-faint: rgba(242, 242, 238, 0.45);
  --line-dark: rgba(242, 242, 238, 0.16);
  --line-light: rgba(13, 27, 36, 0.12);
  --ink-dim: rgba(13, 27, 36, 0.7);
  --muted: #69747c;
  --copper: #bf6b3f;
  --azure: #4f81a8;
  --green: #3f7a63;
  --red: #a0353a;
  --purple: #6b5b8a;

  /* site identity (overridden per site / per component) */
  --accent: var(--copper);
  --accent-bright: #d07c4d;
  --accent-glow: rgba(191, 107, 63, 0.2);
  --tint: #f4efe9;

  --radius-card: 12px;
  --radius-ui: 6px;
  --font-serif: "Literata", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* typography helpers */
.serif { font-family: var(--font-serif); font-weight: 300; letter-spacing: -0.022em; }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker { color: var(--accent); margin-bottom: 16px; }
.dark .kicker, .kicker.on-dark { color: var(--accent-bright); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 300; letter-spacing: -0.022em; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 27, 36, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--cream);
}
.brand-name .brand-sub { color: var(--accent-bright); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 13px; color: var(--cream-dim); transition: color 0.2s; }
.nav a:hover { color: var(--cream); }
.nav .nav-cta {
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 10px 18px;
  border-radius: var(--radius-ui);
  transition: filter 0.2s;
}
.nav .nav-cta:hover { filter: brightness(1.1); color: #fff; }
.nav .nav-ext { color: var(--cream-faint); font-size: 12px; }
.nav .nav-ext:hover { color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-ui);
  color: var(--cream);
  width: 40px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.dark {
  background:
    radial-gradient(800px 400px at 110% 0%, var(--accent-glow), transparent 60%),
    var(--ink);
  color: var(--cream);
}
.section.dark.flat { background: var(--ink); }
.section.cream { background: var(--tint); color: var(--ink); }

.section-title { font-size: clamp(26px, 4vw, 36px); line-height: 1.14; max-width: 26ch; }
.dark .section-title { color: var(--cream); }
.section-lede { font-size: 15px; line-height: 1.65; max-width: 62ch; margin-top: 14px; color: var(--ink-dim); }
.dark .section-lede { color: var(--cream-dim); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 88% -12%, var(--accent-glow), transparent 62%),
    radial-gradient(700px 420px at -12% 115%, rgba(79, 129, 168, 0.14), transparent 60%),
    var(--ink);
  color: var(--cream);
  padding: 96px 0 0;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .hero-lede { font-size: 16px; line-height: 1.65; color: var(--cream-dim); max-width: 56ch; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-ui);
  padding: 8px 12px;
  background: rgba(242, 242, 238, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: var(--radius-ui);
  transition: filter 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line-dark); }
.btn-ghost:hover { border-color: var(--cream-faint); }

.trustbar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line-dark);
}
.trustbar .mono { color: var(--cream-faint); letter-spacing: 0.13em; line-height: 1.7; }

/* ---------- product cards ---------- */
.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-card);
  background: rgba(242, 242, 238, 0.03);
  padding: 34px;
  margin-top: 26px;
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
}
.product-card:hover { border-color: rgba(242, 242, 238, 0.36); border-top-color: var(--accent-bright); background: rgba(242, 242, 238, 0.05); transform: translateY(-2px); }

.pc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pc-num { color: var(--accent-bright); }
.pc-name { color: var(--cream); }
.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 3px 10px;
  background: rgba(242, 242, 238, 0.03);
}
.badge.live { color: #8fd0b4; border-color: rgba(63, 122, 99, 0.7); }

.pc-title { font-size: clamp(22px, 3vw, 28px); line-height: 1.14; color: var(--cream); margin-bottom: 12px; }
.pc-body { font-size: 14px; line-height: 1.65; color: var(--cream-dim); margin-bottom: 20px; }
.pc-points { list-style: none; margin: 0 0 22px; padding: 14px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: grid; gap: 9px; }
.pc-points li { font-size: 13px; color: var(--cream-dim); display: flex; gap: 10px; }
.pc-points li::before { content: "\2192"; font-family: var(--font-mono); color: var(--accent-bright); flex: none; }

/* product visual panels */
.panel {
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #e9e9e2;
  border-bottom: 1px solid var(--line-light);
}
.panel-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(13, 27, 36, 0.16); }
.panel-bar .addr { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.panel-body { padding: 18px; }

.code-panel { background: #0a161e; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28); }
.code-panel .panel-bar { background: rgba(242, 242, 238, 0.06); border-bottom: 1px solid var(--line-dark); }
.code-panel .panel-bar i { background: rgba(242, 242, 238, 0.2); }
.code-panel .panel-bar .addr { color: var(--cream-faint); }
.code-panel pre {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--cream-dim);
  overflow-x: auto;
}
.code-panel .c-key { color: #9fc0dd; }
.code-panel .c-str { color: #d8a882; }
.code-panel .c-cmt { color: var(--cream-faint); }

/* ---------- step grid ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.step { border-top: 3px solid var(--accent); padding-top: 16px; }
.step .mono { display: block; margin-bottom: 16px; color: var(--muted); }
.dark .step .mono { color: var(--cream-faint); }
.step h3 { font-size: 17px; margin-bottom: 8px; font-weight: 400; }
.step p { font-size: 13.5px; line-height: 1.65; color: var(--ink-dim); }
.dark .step p { color: var(--cream-dim); }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.features.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(13, 27, 36, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13, 27, 36, 0.09); }
.dark .feature { border-color: var(--line-dark); background: rgba(242, 242, 238, 0.04); box-shadow: none; }
.feature .f-bar { width: 28px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
.feature h3 { font-size: 17px; font-weight: 400; margin-bottom: 8px; }
.dark .feature h3 { color: var(--cream); }
.feature p { font-size: 13.5px; line-height: 1.65; color: var(--ink-dim); }
.dark .feature p { color: var(--cream-dim); }
.feature ul { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.feature ul li { font-size: 13px; color: var(--ink-dim); display: flex; gap: 9px; }
.dark .feature ul li { color: var(--cream-dim); }
.feature ul li::before { content: "\2192"; font-family: var(--font-mono); color: var(--accent); flex: none; }

/* ---------- numbered list ---------- */
.numlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin-top: 40px; }
.numitem { display: flex; gap: 16px; }
.numitem .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 4px;
  flex: none;
}
.dark .numitem .n { color: var(--accent-bright); }
.numitem h3 { font-size: 16px; font-weight: 400; margin-bottom: 6px; }
.dark .numitem h3 { color: var(--cream); }
.numitem p { font-size: 13.5px; line-height: 1.65; color: var(--ink-dim); }
.dark .numitem p { color: var(--cream-dim); }

/* ---------- glyph flags ---------- */
.gl {
  width: 17px; height: 17px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: #fff; flex: none;
}
.flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 36px; }
.flag { border: 1px solid var(--line-light); border-radius: var(--radius-card); padding: 18px; background: #fff; }
.dark .flag { border-color: var(--line-dark); background: rgba(242, 242, 238, 0.04); }
.flag .flag-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.flag h3 { font-size: 14px; font-weight: 500; font-family: var(--font-sans); }
.dark .flag h3 { color: var(--cream); }
.flag p { font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.dark .flag p { color: var(--cream-dim); }

/* ---------- contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; margin-top: 8px; align-items: start; }
.contact-side p { font-size: 14px; line-height: 1.7; color: var(--cream-dim); margin-top: 14px; max-width: 44ch; }
.contact-side .mail { display: inline-block; margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--accent-bright); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); }
.form-field input, .form-field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--cream);
  background: rgba(242, 242, 238, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-ui);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent-bright); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 13px; color: var(--cream-dim); min-height: 20px; }
.form-status--success { color: #8fd0b4; }
.form-status--error { color: #e0968f; }
.contact-fallback { margin-top: 18px; font-size: 12.5px; color: var(--cream-faint); }
.contact-fallback a { color: var(--cream-dim); border-bottom: 1px solid var(--line-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); border-top: 1px solid var(--line-dark); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: var(--cream-dim); }
.footer-links a:hover { color: var(--cream); }
.footer-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--cream-faint); }

/* ---------- reveal animations ---------- */
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .product-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .numlist { grid-template-columns: 1fr; }
  .features, .features.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .nav {
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 15px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .contact-form { grid-template-columns: 1fr; }
}

/* Connect identity: azure */
:root {
  --accent: #4f81a8;
  --accent-bright: #7aa7c9;
  --accent-glow: rgba(79, 129, 168, 0.22);
  --tint: #edf1f5;
}
