/* ============================================================================
   Schemora — by Eldos Tech
   Hand-authored design system. Restrained, editorial, enterprise.
   Palette: deep navy ground, a single cyan accent, sparing violet.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap");

:root {
  /* Ground & surfaces */
  --bg:            #0a0c16;
  --bg-2:          #0e1122;
  --surface:       rgba(255, 255, 255, 0.025);
  --surface-2:     rgba(255, 255, 255, 0.045);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Ink */
  --ink:        #eef1f8;
  --ink-strong: #ffffff;
  --ink-muted:  #aab2c8;
  --ink-faint:  #76809a;

  /* Accent — used sparingly */
  --accent:      #22d3ee;   /* cyan */
  --accent-deep: #0bb4cf;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --violet:      #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.14);

  /* Type */
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1140px;
  --container-narrow: 760px;
  --radius:   14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(139, 92, 246, 0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink-strong); }

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink-strong); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--ink-muted); }
strong { color: var(--ink); font-weight: 600; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-muted); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }

.gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--accent) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--container-narrow); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin: 16px 0 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 12, 22, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 14px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink-strong); letter-spacing: -0.02em; }
.brand-by { font-size: 0.66rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) {
  font-size: 0.92rem; color: var(--ink-muted); padding: 8px 14px; border-radius: 9px;
  transition: color .18s, background .18s;
}
.nav-links a:not(.btn):hover { color: var(--ink-strong); background: var(--surface-2); }
.nav-links a.active:not(.btn) { color: var(--ink-strong); }
/* Keep the CTA button's own styling — dark text on cyan, full contrast */
.nav-links a.nav-cta.btn-primary { color: #04222a; }
.nav-links a.nav-cta.btn-primary:hover { color: #04222a; background: #3fdef0; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 9px; width: 42px; height: 38px; color: var(--ink); cursor: pointer; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04222a; box-shadow: 0 8px 30px -10px rgba(34, 211, 238, 0.6); }
.btn-primary:hover { background: #3fdef0; box-shadow: 0 10px 36px -8px rgba(34, 211, 238, 0.75); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.btn-link:hover { gap: 11px; }
.btn-link svg { transition: transform .18s; }
.btn-link:hover svg { transform: translateX(3px); }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: clamp(70px, 11vw, 140px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero h1 { margin: 22px 0 24px; max-width: 16ch; }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--ink-faint); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--ink-muted);
  padding: 7px 14px 7px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---- Cards & grids ---------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }
.card .num { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); letter-spacing: .1em; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.icon-badge.violet { background: var(--violet-soft); color: #b69bff; border-color: rgba(139,92,246,0.28); }

/* ---- Pillar (alternating feature blocks) ------------------------------ */
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.pillar + .pillar { margin-top: clamp(64px, 9vw, 120px); }
.pillar.flip .pillar-media { order: -1; }
.pillar h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 14px 0 16px; font-family: var(--display); letter-spacing: -0.02em; }
.pillar ul { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.pillar li { display: flex; gap: 12px; color: var(--ink-muted); font-size: 0.97rem; }
.pillar li svg { flex: none; margin-top: 3px; color: var(--accent); }

/* ---- Code / example panels ------------------------------------------- */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.panel-bar .dot3 { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.panel-bar .tag { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; }
.code { font-family: var(--mono); font-size: 0.82rem; line-height: 1.85; padding: 20px 22px; color: #cdd6ea; overflow-x: auto; white-space: pre; }
.code .k { color: var(--violet); }       /* keyword */
.code .c { color: var(--ink-faint); }     /* comment */
.code .s { color: #6ee7b7; }              /* string/value */
.code .a { color: var(--accent); }        /* accent / mapped */
.code .d { color: #f0a6c0; }              /* deletion-ish */

/* ---- Mapping table ---------------------------------------------------- */
.maptable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.maptable th, .maptable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.maptable th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.maptable td.mono { font-family: var(--mono); font-size: 0.83rem; color: var(--ink); }
.maptable .arrow { color: var(--accent); }
.conf { font-family: var(--mono); font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; }
.conf.high { background: rgba(52,211,153,0.14); color: #6ee7b7; }
.conf.med  { background: rgba(245,158,11,0.14); color: #fbbf24; }

/* ---- Metrics ---------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.metric { padding: 6px 0; }
.metric .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink-strong); letter-spacing: -0.03em; line-height: 1; }
.metric .big .unit { color: var(--accent); }
.metric .lbl { margin-top: 12px; color: var(--ink-muted); font-size: 0.94rem; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: radial-gradient(700px 300px at 50% -40%, rgba(34,211,238,0.16), transparent 70%), var(--surface);
  padding: clamp(46px, 7vw, 84px) 28px; }
.cta-band h2 { max-width: 18ch; margin: 14px auto 18px; }
.cta-band .lead { max-width: 50ch; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Prose (legal / about) ------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-muted); font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose .placeholder { color: #fbbf24; background: rgba(245,158,11,0.10); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 0.85em; }

/* ---- Forms ------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 0.96rem; color: var(--ink);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; transition: border-color .18s, box-shadow .18s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 11px; font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: rgba(52,211,153,0.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.3); }
.form-status.err { background: rgba(248,113,113,0.12); color: #fca5a5; border: 1px solid rgba(248,113,113,0.3); }

/* ---- Pricing ---------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.feature { border-color: rgba(34,211,238,0.4); background: var(--surface-2); position: relative; }
.price-card.feature::before { content: "Most popular"; position: absolute; top: -11px; left: 30px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #04222a; padding: 4px 11px; border-radius: 999px; }
.price-card .tier { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink-strong); }
.price-card .price { font-family: var(--display); font-weight: 800; font-size: 2.4rem; margin: 14px 0 4px; color: var(--ink-strong); letter-spacing: -0.02em; }
.price-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-faint); }
.price-card ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--ink-muted); }
.price-card li svg { flex: none; color: var(--accent); margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---- Logo strip / honesty note --------------------------------------- */
.kicker-line { display: flex; align-items: center; gap: 16px; color: var(--ink-faint); font-size: 0.86rem; }
.kicker-line::before, .kicker-line::after { content: ""; height: 1px; flex: 1; background: var(--border); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.footer-grid h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--ink-muted); font-size: 0.92rem; padding: 5px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--ink-strong); }
.footer-blurb { color: var(--ink-muted); font-size: 0.92rem; max-width: 34ch; margin: 16px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 0.85rem; flex-wrap: wrap; }

/* ---- Reveal ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .pillar, .pillar.flip { grid-template-columns: 1fr; }
  .pillar.flip .pillar-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(10,12,22,0.97); border-bottom: 1px solid var(--border); padding: 12px 18px 20px;
    gap: 2px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Video (lazy YouTube facade) ------------------------------------- */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 920px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #000 center/cover no-repeat; cursor: pointer; box-shadow: 0 30px 70px -28px rgba(0,0,0,.8); }
.video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(10,12,22,.12), rgba(10,12,22,.55)); transition: background .25s; z-index: 1; }
.video:hover::after { background: radial-gradient(circle at 50% 50%, rgba(10,12,22,.04), rgba(10,12,22,.42)); }
.video-play { position: absolute; inset: 0; margin: auto; width: 82px; height: 82px; z-index: 2; border-radius: 50%; background: var(--accent); color: #04222a; display: grid; place-items: center; box-shadow: 0 12px 44px -8px rgba(34,211,238,.7); transition: transform .2s var(--ease), background .2s; }
.video:hover .video-play { transform: scale(1.08); background: #3fdef0; }
.video-play svg { margin-left: 4px; }
.video:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 30px 70px -28px rgba(0,0,0,.8); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
