/* ───────────────────────────────────────────────────────────────
   DynamoDocs — homepage styles
   Dark, technical, electric. Tri-color (orange→blue→green) cycle accent
   pulled from the logo. Bricolage Grotesque display · Spline Sans body ·
   JetBrains Mono for data/labels.
   ─────────────────────────────────────────────────────────────── */

:root {
  --ink:        #0c0d11;
  --ink-2:      #121419;
  --panel:      #161922;
  --panel-2:    #1c2029;
  --line:       #2a2f3a;
  --line-soft:  #20242e;
  --text:       #e9ecf2;
  --muted:      #99a1b3;
  --muted-2:    #6f7789;

  --orange:     #ff7a18;
  --amber:      #ffb000;
  --blue:       #2aa7ff;
  --green:      #36d399;

  --accent:     var(--blue);
  --grad:       linear-gradient(100deg, var(--orange) 0%, var(--amber) 22%, var(--blue) 62%, var(--green) 100%);

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1140px;

  --ff-display: "Bricolage Grotesque", Georgia, serif;
  --ff-body:    "Spline Sans", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle radial atmosphere behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(42,167,255,0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 0%, rgba(255,122,24,0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 2; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--ff-mono);
  font-size: 0.85em;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  padding: 0.05em 0.4em;
  border-radius: 6px;
  color: var(--amber);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7em 1.25em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 0.9em 1.6em; }

.btn-solid {
  background: var(--grad);
  color: #0b0c10;
  font-weight: 700;
  box-shadow: 0 8px 30px -8px rgba(42,167,255,0.5);
}
.btn-solid:hover { box-shadow: 0 14px 40px -10px rgba(255,122,24,0.55); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(42,167,255,0.07); }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(12,13,17,0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { display: block; height: 38px; width: auto; }
.wordmark { font-family: var(--ff-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--text); }
.wordmark b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.header-cta { display: flex; gap: 0.6rem; }

/* ── Section scaffolding ─────────────────────────────────────── */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 4vw, 2rem);
}
.section-head { max-width: 760px; margin-bottom: 3rem; }
.kicker {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin: 0 0 1rem;
}
.kicker.center { text-align: center; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.3rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 60ch; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.1rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
}
.hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(42,167,255,0.22), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.glow-warm { background: radial-gradient(circle, rgba(255,122,24,0.16), transparent 62%); left: -8%; right: auto; top: 5%; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(28px); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  margin: 0 0 1.6rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { font-size: clamp(2.7rem, 6.5vw, 5rem); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 1.6rem 0 2rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-note { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted-2); margin-top: 1.3rem; letter-spacing: 0.02em; }

/* hero stats panel */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--panel); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.stat-wide { grid-column: 1 / -1; }
.stat-num { font-family: var(--ff-display); font-weight: 800; font-size: 2.4rem; color: var(--text); line-height: 1; }
.stat-mono { font-family: var(--ff-mono); font-size: 0.95rem; color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* ── Answer block ────────────────────────────────────────────── */
.answer { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.answer-inner { max-width: 920px; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2rem); }
.answer-text { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.5; color: var(--text); margin: 0.5rem 0 0; }
.answer-text strong { font-weight: 600; color: #fff; }

/* hybrid: lead sentence + scannable bullets */
.answer-lead { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.45; color: var(--text); margin: 0.5rem 0 1.7rem; max-width: 30ch; }
.answer-lead strong { font-weight: 600; color: #fff; }
.answer-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 760px; }
.answer-points li { position: relative; padding-left: 1.9rem; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.answer-points li::before { content: "→"; position: absolute; left: 0; top: 0.05em; color: var(--amber); font-family: var(--ff-mono); font-weight: 700; }
.answer-points strong { color: var(--text); font-weight: 600; }
.answer-foot { margin: 1.7rem 0 0; color: var(--muted); font-size: 1.05rem; }
@media (min-width: 720px) {
  .answer-inner.answer-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
  .answer-split .answer-lead { margin-bottom: 0; }
  .answer-split .kicker { grid-column: 1 / -1; }
  .answer-split .answer-foot { grid-column: 1 / -1; }
}

/* ── Pipeline ────────────────────────────────────────────────── */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  overflow: hidden;
}
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); opacity: 0.7; }
.step-no { font-family: var(--ff-mono); font-size: 0.85rem; color: var(--amber); letter-spacing: 0.1em; }
.step h3 { margin: 0.7rem 0 0.6rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ── Savings calculator ──────────────────────────────────────── */
.savings { position: relative; }
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.calc-controls { display: flex; flex-direction: column; gap: 1.5rem; }
.control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem 1rem; }
.control label { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.control output { font-family: var(--ff-mono); font-weight: 700; color: var(--text); font-size: 1.05rem; text-align: right; }
.control input[type="range"] { grid-column: 1; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px;
  background: var(--line); outline: none; width: 100%;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(42,167,255,0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--ink); cursor: pointer;
}

.calc-results { display: grid; grid-template-rows: auto auto auto; gap: 1rem; }
.result-card { background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; }
.result-primary { border-color: rgba(54,211,153,0.4); background: linear-gradient(180deg, rgba(54,211,153,0.08), var(--ink-2)); }
.result-label { font-family: var(--ff-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0; }
.result-num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.3rem 0 0.2rem; line-height: 1; }
.result-primary .result-num { color: var(--green); }
.result-sub { font-size: 0.82rem; color: var(--muted); margin: 0; }
.calc-cta { text-align: center; margin: 2rem 0 0; font-size: 1.05rem; color: var(--muted); }
.calc-cta a { font-weight: 600; }

/* ── Value cards ─────────────────────────────────────────────── */
.value-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.value-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.7rem 1.4rem; transition: border-color 0.2s, transform 0.2s; }
.value-card:hover { border-color: var(--line); transform: translateY(-4px); }
.vc-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); font-size: 1.3rem; color: var(--amber); margin-bottom: 1rem; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ── Features ────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink-2); padding: 1.6rem 1.4rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── Integrations ────────────────────────────────────────────── */
.integ { text-align: center; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; max-width: 880px; margin: 1.5rem auto 0; }
.logo-row span { font-family: var(--ff-mono); font-size: 0.9rem; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1.1em; background: var(--panel); }
.logo-row .muted { color: var(--muted-2); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; max-width: 840px; }
details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0 1.4rem; transition: border-color 0.2s; }
details[open] { border-color: var(--line); }
summary { font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--ff-mono); font-size: 1.4rem; color: var(--amber); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 1.2rem; font-size: 0.98rem; }

/* ── Final CTA ───────────────────────────────────────────────── */
.cta-final { position: relative; text-align: center; }
.cta-box { max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(2.5rem, 6vw, 4rem); }
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-box h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-box p { color: var(--muted); font-size: 1.15rem; max-width: 54ch; margin: 1.2rem auto 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); background: var(--ink-2); padding: 3rem clamp(1.1rem, 4vw, 2rem) 2rem; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-brand img { height: 34px; }
.foot-brand .wordmark { font-size: 1.2rem; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; margin: 0.9rem 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-links a { color: var(--muted); font-size: 0.92rem; }
.foot-links a:hover { color: var(--text); }
.foot-contact p { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.5rem; }
.foot-fine { max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); font-family: var(--ff-mono); font-size: 0.78rem; color: var(--muted-2); }

/* ── Landing pages (ERP) ─────────────────────────────────────── */
.breadcrumb { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted-2); margin: 0 0 1.6rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 0.45em; }
.breadcrumb .current { color: var(--amber); margin: 0; }

.map-grid { grid-template-columns: repeat(4, 1fr); }
.map-grid .feature h3 { color: var(--blue); }

/* per-ERP "specific to" cards (3-up; collapses with the viewport) */
.feature-grid.spec-cards { grid-template-columns: repeat(3, 1fr); }
.spec-cards .feature h3 { color: var(--amber); font-size: 1rem; }
@media (max-width: 980px) { .feature-grid.spec-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid.spec-cards { grid-template-columns: 1fr; } }

/* clickable integration chips */
.logo-row a { font-family: var(--ff-mono); font-size: 0.9rem; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1.1em; background: var(--panel); transition: border-color 0.2s, color 0.2s; }
.logo-row a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.logo-row a.muted { color: var(--amber); border-color: rgba(255,176,0,0.4); }

/* ERP hub cards */
.erp-grid { grid-template-columns: repeat(3, 1fr); }
.erp-card { display: flex; flex-direction: column; gap: 0.6rem; background: var(--ink-2); padding: 1.6rem 1.4rem; border: none; transition: background 0.2s; }
.erp-card:hover { background: var(--panel-2); text-decoration: none; }
.erp-card h3 { font-size: 1.2rem; color: var(--text); }
.erp-card p { color: var(--muted); font-size: 0.88rem; margin: 0; flex: 1; }
.erp-card-go { font-family: var(--ff-mono); font-size: 0.82rem; color: var(--amber); margin-top: 0.4rem; }
.erp-card-static { background: var(--ink-2); }
.erp-card-static .erp-card-go { color: var(--blue); }

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pipeline, .value-grid, .feature-grid, .hero-stats { grid-template-columns: 1fr; }
  .header-cta { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
