/* CellarPoint marketing site — Sea Glass theme */

:root {
  --ink: #10201f;
  --ink-soft: #3c4f4d;
  --ink-faint: #6b7d7a;
  --paper: #f6f8f7;
  --card: #ffffff;
  --sand: #e4ebe8;
  --glass: #17a08d;
  --glass-deep: #0f7c6d;
  --glass-soft: #d8efe9;
  --deep: #0c2b28;
  --deep-2: #0f3531;
  --deep-line: #1e4a44;
  --claret: #7e3b4b;
  --on-deep: #e9f4f1;
  --on-deep-faint: #9db8b2;
  --good: #1e8e5a;
  --warn: #b07d24;
  --crit: #b04a3a;

  --font-display: "Fraunces", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 10px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6efec;
    --ink-soft: #b3c6c1;
    --ink-faint: #7f9691;
    --paper: #0b1514;
    --card: #10201e;
    --sand: #1d3330;
    --glass: #2cc2ab;
    --glass-deep: #35d6bd;
    --glass-soft: #123830;
    --deep: #081e1c;
    --deep-2: #0c2624;
    --deep-line: #1c443f;
    --claret: #c96d80;
    --on-deep: #e9f4f1;
    --on-deep-faint: #8fa9a3;
    --good: #4cc189;
    --warn: #d6a04a;
    --crit: #d97a68;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glass-deep);
  margin: 0 0 14px;
}

h1, h2, h3 { text-wrap: balance; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease var(--d, 0s), transform 0.55s ease var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- sticky site header (credit bar + nav) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
}

/* ---------- topbar credit ---------- */
.topbar {
  background: var(--deep);
  color: var(--on-deep-faint);
  border-bottom: 1px solid var(--deep-line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  max-width: var(--maxw); margin: 0 auto; padding: 8px 28px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.topbar .topbar-sep { color: var(--deep-line); }
.topbar .ai { color: var(--glass); }
.topbar svg { width: 13px; height: 13px; flex: none; }
.topbar .hand { color: var(--on-deep-faint); }
.topbar .spark { color: var(--glass); animation: spark-breathe 3.2s ease-in-out infinite; }
@keyframes spark-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 480px) {
  .topbar-inner { letter-spacing: 0.1em; gap: 7px; }
}

/* ---------- nav ---------- */
.nav {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none;
}
.brand .dot { color: var(--glass); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--glass); color: #04231e; }
.btn-primary:hover { background: var(--glass-deep); color: #ffffff; }
.btn-ghost { border-color: var(--deep-line); color: var(--on-deep); }
.btn-ghost:hover { border-color: var(--glass); }
.nav .btn { padding: 8px 18px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 36px;
  background: none; border: 1px solid var(--sand); border-radius: 8px;
  padding: 8px 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 1px; background: var(--ink); }

@media (max-width: 760px) {
  .nav-inner { justify-content: space-between; gap: 14px; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sand);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 28px; font-size: 15px; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--on-deep);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 78% 18%, color-mix(in srgb, var(--glass) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center;
  padding-top: 92px; padding-bottom: 100px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--glass); }
.hero .lede {
  font-size: 18px; line-height: 1.65;
  color: var(--on-deep-faint);
  max-width: 34em;
  margin: 0 0 32px;
}
.hero .eyebrow { color: var(--glass); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--on-deep-faint); margin-top: 18px; }

/* hero product vignette */
.vignette { display: grid; gap: 16px; }
.panel {
  background: color-mix(in srgb, var(--deep-2) 60%, #0a1f1d);
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}
.panel-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-deep-faint); margin: 0 0 12px;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat b {
  display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--on-deep);
}
.stat span { font-size: 12px; color: var(--on-deep-faint); }
.stat .up { color: var(--glass); font-size: 12px; font-family: var(--font-mono); }

.receipt-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 7px 0; border-bottom: 1px dashed var(--deep-line);
  color: var(--on-deep);
}
.receipt-line:last-child { border-bottom: 0; }
.receipt-line .muted { color: var(--on-deep-faint); }
.receipt-line.total { font-weight: 700; border-top: 1px solid var(--deep-line); border-bottom: 0; margin-top: 4px; padding-top: 10px; }
.tender { color: var(--glass); }

.alert-line { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; color: var(--on-deep); }
.pip { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pip.warn { background: var(--warn); }
.pip.crit { background: var(--crit); }
.pip.good { background: var(--glass); }
.alert-line small { margin-left: auto; color: var(--on-deep-faint); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
}

/* ---------- metrics strip ---------- */
.metrics {
  border-bottom: 1px solid var(--sand);
  background: var(--card);
}
.metrics-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
}
.metric { padding: 26px 18px; text-align: center; border-left: 1px solid var(--sand); }
.metric:first-child { border-left: 0; }
.metric b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.metric span { font-size: 13px; color: var(--ink-faint); }
@media (max-width: 760px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .metric { border-top: 1px solid var(--sand); }
  .metric:nth-child(-n+2) { border-top: 0; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15; font-weight: 700; margin: 0 0 14px;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* modules grid */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.module:hover { border-color: var(--glass); transform: translateY(-2px); }
.module.wide { grid-column: span 2; }
.module h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; margin: 14px 0 8px;
}
.module p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.module .glyph {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--glass-soft); color: var(--glass-deep);
  display: grid; place-items: center;
}
.module .glyph svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .modules { grid-template-columns: 1fr 1fr; }
  .module.wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .modules { grid-template-columns: 1fr; }
  .module.wide { grid-column: span 1; }
}

/* ---------- flow (deep dive) ---------- */
.flow-section { background: var(--card); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  counter-reset: step;
  border: 1px solid var(--sand); border-radius: var(--radius);
  overflow: hidden;
}
.step {
  counter-increment: step;
  padding: 26px 22px;
  border-left: 1px solid var(--sand);
  background: var(--paper);
}
.step:first-child { border-left: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px; color: var(--glass-deep);
  display: block; margin-bottom: 12px;
}
.step h4 { font-size: 15px; margin: 0 0 6px; font-weight: 650; }
.step p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--sand); }
  .step:first-child { border-top: 0; }
}

/* ---------- demo clips ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.demo-card:hover { border-color: var(--glass); }
.demo-slot {
  aspect-ratio: 16 / 10;
  background: var(--deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--on-deep-faint);
  border-bottom: 1px solid var(--sand);
}
.demo-slot svg { width: 44px; height: 44px; opacity: 0.35; }
.demo-slot code {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--on-deep-faint);
  background: color-mix(in srgb, var(--deep-2) 70%, transparent);
  border: 1px dashed var(--deep-line);
  border-radius: 6px; padding: 4px 10px;
}
.demo-card.has-media .demo-slot { border-bottom-color: transparent; }
.demo-slot video, .demo-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.demo-card figcaption { padding: 16px 20px 18px; display: grid; gap: 3px; }
.demo-card figcaption b { font-size: 15px; font-weight: 650; }
.demo-card figcaption span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 720px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- split rows ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 44px 0;
}
.split + .split { border-top: 1px solid var(--sand); }
.split h3 {
  font-family: var(--font-display);
  font-size: 27px; font-weight: 700; margin: 0 0 14px; line-height: 1.2;
}
.split p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 14.5px; }
.ticks li::before {
  content: "";
  width: 16px; height: 16px; flex: none; margin-top: 3px;
  border-radius: 50%;
  background-color: var(--glass-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glass) 50%, transparent);
  background-image: linear-gradient(var(--glass-deep), var(--glass-deep)), linear-gradient(var(--glass-deep), var(--glass-deep));
  background-size: 7px 1.6px, 1.6px 7px;
  background-position: center, center;
  background-repeat: no-repeat;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .visual { order: -1; }
}

/* faux-UI visuals for split rows */
.ui-card {
  background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 18px 44px -30px rgba(10, 40, 36, 0.35);
}
.ui-card .panel-title { color: var(--ink-faint); }
.bar-row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13px; }
.bar-row .name { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.bar { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--glass); }
.bar i.claret { background: var(--claret); }

.serial-tape { font-family: var(--font-mono); font-size: 12.5px; display: grid; gap: 6px; }
.serial-tape .row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 10px; border-radius: 6px;
  background: var(--paper); border: 1px solid var(--sand);
  font-variant-numeric: tabular-nums;
}
.serial-tape .st { font-size: 11px; font-weight: 600; }
.st.sold { color: var(--ink-faint); }
.st.stock { color: var(--good); }

/* ---------- roles band ---------- */
.roles-band { background: var(--deep); color: var(--on-deep); }
.roles-band .section-head h2 { color: var(--on-deep); }
.roles-band .section-head p { color: var(--on-deep-faint); }
.roles-band .eyebrow { color: var(--glass); }
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-card {
  border: 1px solid var(--deep-line); border-radius: var(--radius);
  padding: 22px 20px; background: color-mix(in srgb, var(--deep-2) 70%, transparent);
}
.role-card h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.role-card p { font-size: 13.5px; color: var(--on-deep-faint); margin: 0; line-height: 1.55; }
.role-card .tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--glass); margin-bottom: 10px;
}
.role-card.custom { border-style: dashed; }
@media (max-width: 900px) { .role-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .role-cards { grid-template-columns: 1fr; } }

/* ---------- deploy ---------- */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deploy-grid .module h3 { margin-top: 0; }
@media (max-width: 760px) { .deploy-grid { grid-template-columns: 1fr; } }

/* ---------- final CTA ---------- */
.cta-final { text-align: center; padding: 100px 0; }
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin: 0 0 16px;
}
.cta-final h2 em { font-style: italic; color: var(--claret); }
.cta-final p { color: var(--ink-soft); max-width: 40em; margin: 0 auto 32px; }
.cta-final .btn-primary { font-size: 16px; padding: 14px 34px; }

footer {
  border-top: 1px solid var(--sand);
  padding: 34px 0;
  font-size: 13px; color: var(--ink-faint);
}
.foot-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
}
