/* Anamanti website: shared styles for every page.
   Brand: warm "hearth" amber on near-black, Irish sea-green as the second accent.
   Display type is Fraunces, UI/body is Inter. No build step: plain CSS. */

/* Self-hosted fonts (SIL OFL 1.1, licenses in assets/fonts/). Latin subset, variable weight. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter.woff2) format('woff2'); }

:root {
  --bg:        #0e0f13;
  --bg-soft:   #14161c;
  --panel:     #1a1d26;
  --panel-2:   #20242f;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --text:      #eef0f4;
  --muted:     #a3a9b8;
  --faint:     #737a8a;
  --accent:    #e8a35c;   /* warm hearth */
  --accent-2:  #6db0a6;   /* irish sea-green */
  --accent-3:  #c98b6b;
  --blue:      #7fb8ff;   /* the display's listening ring */
  --glow:      rgba(232,163,92,0.18);
  --local:     #6db0a6;
  --lan:       #7fa8e8;
  --cloud:     #e8a35c;
  --radius:    18px;
  --maxw:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; }
h4 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 600; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .link { color: var(--accent); }
p a:hover, li a:hover, td a:hover, .link:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; color: #d9dce4;
  background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.seagreen { color: var(--accent-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- HEADER (shared) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(14,15,19,0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: radial-gradient(circle at 32% 28%, var(--accent), var(--accent-3) 70%);
  box-shadow: 0 0 22px var(--glow);
  display: grid; place-items: center;
}
.brand .mark span { width: 11px; height: 11px; border-radius: 50%; background: #0e0f13; opacity: 0.85; }
.nav-links { display: flex; gap: 4px; align-items: center; font-size: 0.92rem; color: var(--muted); }
.nav-links a { padding: 7px 12px; border-radius: 999px; transition: .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(232,163,92,0.12); box-shadow: inset 0 0 0 1px rgba(232,163,92,0.28); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-2); color: var(--text); border-radius: 10px; padding: 7px 11px; font: inherit; cursor: pointer; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(14,15,19,0.97); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; gap: 2px; }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 14px; border-radius: 10px; }
}

/* ---------- PAGE HERO ---------- */
.page-hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 560px;
  background: radial-gradient(ellipse 55% 100% at 50% 0%, var(--glow), transparent 68%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero.center { text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin: 0 0 18px; }
.page-hero .lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 740px; margin: 0 0 10px; }
.page-hero.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--panel); font-size: 0.82rem; color: var(--muted); margin-bottom: 24px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.center .cta-row { justify-content: center; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; transition: .2s; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #0e0f13; box-shadow: 0 8px 30px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px var(--glow); }
.btn-ghost { border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- SECTIONS ---------- */
section { padding: 76px 0; }
section.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.prose p { color: var(--muted); font-size: 1.04rem; margin: 0 0 16px; }
.prose p b, .prose li b { color: var(--text); font-weight: 600; }
.prose h3 { font-size: 1.6rem; margin: 0 0 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split.wide-right { grid-template-columns: 0.8fr 1.2fr; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: 30px; } .split .order-first-m { order: -1; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 26px 24px; }
.card h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.12rem; letter-spacing: 0; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card p + p { margin-top: 10px; }
.card .tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin: 0 0 10px; }
a.card { display: block; transition: .2s; }
a.card:hover { border-color: rgba(232,163,92,0.4); transform: translateY(-3px); }
a.card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 9px 0 9px 28px; position: relative; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.ticks li:last-child { border-bottom: none; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.ticks li b { color: var(--text); font-weight: 600; }

/* ---------- LOCALITY CHIPS ---------- */
.loc { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.loc.local { color: var(--local); border-color: rgba(109,176,166,0.4); background: rgba(109,176,166,0.08); }
.loc.lan   { color: var(--lan);   border-color: rgba(127,168,232,0.4); background: rgba(127,168,232,0.08); }
.loc.cloud { color: var(--cloud); border-color: rgba(232,163,92,0.4); background: rgba(232,163,92,0.08); }
.loc.device{ color: var(--blue);  border-color: rgba(127,184,255,0.4); background: rgba(127,184,255,0.08); }

/* ---------- SCREENSHOT FRAMES ---------- */
figure { margin: 0; }
figcaption { color: var(--faint); font-size: 0.86rem; margin-top: 12px; line-height: 1.5; }
figcaption b { color: var(--muted); font-weight: 600; }
.zoom { cursor: zoom-in; }

/* Echo Show-style device bezel for Display screenshots */
.device {
  background: linear-gradient(180deg, #1c1d22, #0b0b0d);
  border-radius: 22px; padding: 16px 16px 16px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}
.device::after { /* camera */
  content: ""; position: absolute; top: 6px; right: 34px; width: 5px; height: 5px; border-radius: 50%;
  background: #2a2c33; box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.device img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.device.lg { border-radius: 28px; padding: 20px; }
.device.lg::after { top: 8px; right: 44px; }
.device-stand { height: 16px; margin: 0 9%; border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, #17181c, #0c0c0e); border: 1px solid rgba(255,255,255,0.06); border-top: none; }

/* Browser window for Anamanti Core console screenshots */
.browser {
  background: #f4f2f8; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.browser .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #24262e; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4d57; }
.browser .bar i:nth-child(1) { background: #ef6a5e; } .browser .bar i:nth-child(2) { background: #f4bf4f; } .browser .bar i:nth-child(3) { background: #61c454; }
.browser .bar span { margin-left: 12px; flex: 1; max-width: 360px; font-size: 0.74rem; color: #a7abb6; background: #17181d; border-radius: 6px; padding: 3px 10px;
  font-family: ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }

/* gallery of screenshots */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gallery.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .gallery, .gallery.two { grid-template-columns: 1fr; } }

/* ---------- PIPELINE ---------- */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
@media (max-width: 980px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }
.stage { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; position: relative; }
.stage::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-2); color: var(--accent); font-family: 'Fraunces', serif; margin-bottom: 12px; }
.stage h4 { font-size: 0.98rem; }
.stage p { color: var(--faint); font-size: 0.85rem; margin: 0 0 10px; }
.stage .loc { font-size: 0.68rem; }

/* turn order (fast paths first) */
.ladder { display: grid; gap: 10px; }
.rung { display: grid; grid-template-columns: 170px 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; }
.rung h4 { margin: 0; }
.rung p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.rung .cost { font-size: 0.8rem; color: var(--faint); white-space: nowrap; text-align: right; }
.rung .cost b { display: block; color: var(--accent-2); font-size: 0.95rem; }
.rung.s2 .cost b { color: var(--accent); }
@media (max-width: 720px) { .rung { grid-template-columns: 1fr; gap: 6px; } .rung .cost { text-align: left; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.stat .n { font-family: 'Fraunces', serif; font-size: 2.1rem; color: var(--text); line-height: 1; margin-bottom: 8px; }
.stat .n small { font-size: 1rem; color: var(--muted); }
.stat p { margin: 0; color: var(--faint); font-size: 0.88rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; background: rgba(255,255,255,0.02); }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td.group { background: rgba(255,255,255,0.025); color: var(--accent); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 18px; }

/* callout */
.note { border: 1px dashed rgba(232,163,92,0.4); background: rgba(232,163,92,0.06); border-radius: 14px; padding: 16px 20px; color: var(--muted); font-size: 0.95rem; }
.note b { color: var(--text); }
.note.green { border-color: rgba(109,176,166,0.45); background: rgba(109,176,166,0.06); }

/* next-page band */
.next { text-align: center; }
.next-box { background: linear-gradient(160deg, var(--panel-2), var(--bg-soft)); border: 1px solid var(--border-2); border-radius: 26px; padding: 52px 30px; position: relative; overflow: hidden; }
.next-box::before { content: ""; position: absolute; inset: auto 0 -55% 0; height: 380px; background: radial-gradient(ellipse 50% 100% at 50% 100%, var(--glow), transparent 70%); }
.next-box > * { position: relative; }
.next-box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.next-box p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- FOOTER (shared) ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 54px 0 40px; color: var(--faint); background: #0b0c0f; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand { font-size: 1.15rem; color: var(--text); margin-bottom: 12px; }
.site-footer p { margin: 0 0 8px; font-size: 0.9rem; max-width: 360px; }
.site-footer p i { color: var(--accent-2); }
.site-footer h4 { color: var(--text); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 4px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; font-size: 0.92rem; }
.site-footer li a:hover { color: var(--text); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,8,0.92); display: none; place-items: center; padding: 3vw; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lightbox p { color: var(--muted); text-align: center; margin: 14px 0 0; font-size: 0.9rem; }

/* conversation demo (overview hero) */
.bubble { padding: 11px 15px; border-radius: 16px; margin-bottom: 10px; font-size: 0.96rem; max-width: 86%; }
.bubble.user { background: #2A3350; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble.ai { background: #EAF2FF; color: #10162A; border-bottom-left-radius: 5px; }

/* ---------- HEADER CTA ---------- */
.nav-links a.nav-cta { margin-left: 8px; background: var(--accent); color: #0e0f13; font-weight: 600; }
.nav-links a.nav-cta:hover { background: #f0b273; color: #0e0f13; }
.nav-links a.nav-cta[aria-current="page"] { box-shadow: none; }
@media (max-width: 1100px) { .nav-links a { padding: 7px 9px; } }

/* ---------- FORMS ---------- */
.form-card { background: var(--panel); border: 1px solid var(--border-2); border-radius: 22px; padding: 30px; }
.form-card h2 { font-size: 1.9rem; margin: 0 0 8px; }
.form-card > p { color: var(--muted); margin: 0 0 22px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field span i { color: var(--faint); font-style: normal; font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: #12141a; border: 1px solid var(--border-2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,163,92,0.18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card button { font: inherit; cursor: pointer; border: none; }
.form-status { margin: 14px 0 0; font-size: 0.93rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #f08a7a; }
.fine { color: var(--faint); font-size: 0.82rem; margin-top: 14px; }

/* ---------- GUIDE ---------- */
.steps { counter-reset: gstep; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: gstep; position: relative; padding: 0 0 30px 64px; }
.steps > li::before { content: counter(gstep); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--panel); color: var(--accent);
  font-family: 'Fraunces', serif; font-size: 1.15rem; }
.steps > li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 1px; background: var(--border); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0; margin: 8px 0 8px; }
.steps p, .steps li li { color: var(--muted); font-size: 0.97rem; }
.steps ul { margin: 6px 0 10px; padding-left: 20px; }
.steps .src { font-size: 0.85rem; color: var(--faint); }
.steps .src a { color: var(--accent); }
pre.cmd { background: #0b0c0f; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.84rem; color: #d9dce4; line-height: 1.7; }
.warn { border: 1px solid rgba(240,138,122,0.45); background: rgba(240,138,122,0.07); border-radius: 14px; padding: 16px 20px; color: var(--muted); }
.warn b { color: #f5b1a6; }
.photo-credit { color: var(--faint); font-size: 0.78rem; margin-top: 8px; }
.photo-credit a { color: var(--muted); text-decoration: underline; }

.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--text); text-decoration: none; }
