/* EvolvePoint AI — styles. Colors are defined as tokens so they are easy to change. */
:root {
  --navy-950: #060f24;
  --navy-900: #0b1b3a;
  --navy-800: #12294f;
  --navy-700: #1c3a6b;
  --blue-600: #1f5bf0;   /* accent on light backgrounds (contrast >= 4.5:1 on white) */
  --blue-400: #6f9cff;   /* accent on navy backgrounds */
  --ink: #0f1c36;
  --muted: #4a5878;
  --line: #dde3ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 58, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--blue-600); }
.hero :focus-visible, .site-footer :focus-visible, .site-header :focus-visible, .cta-band :focus-visible { outline-color: #9dbbff; }

.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--navy-900); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue-600); margin-bottom: .75rem; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: #1749c4; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 15, 36, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.wordmark .dot { width: 26px; height: 26px; }
.wordmark span em { font-style: normal; color: var(--blue-400); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: #dbe5fb; text-decoration: none; font-weight: 600; font-size: .97rem; padding: .3rem 0; }
.nav-links a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; background: var(--navy-950); border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links li:last-child { border: 0; padding-top: 1rem; }
  .nav-links a:not(.btn) { display: block; padding: .9rem 0; }
}

/* Hero */
.hero { background: radial-gradient(900px 500px at 85% 0%, rgba(47,107,255,.35), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800)); color: #fff; padding-block: clamp(3.5rem, 9vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--blue-400); }
.hero p.lead { color: #cfdaf5; font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: #9fb2da; max-width: 36em; }
.hero-art { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 1.2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Flow animation (subtle) */
.flow-line { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-4px); } }

/* Cards / services */
.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #b9c9ee; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 26px; height: 26px; stroke: #9dbbff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: #e7eefe; color: #123a9c; margin-bottom: .7rem; }
.tag.discuss { background: #fff3d6; color: #6b4600; }

.soft { background: var(--bg-soft); }
.discuss-box { margin-top: 2.5rem; border: 2px dashed #b9c9ee; border-radius: var(--radius); padding: 1.6rem; background: #fff; }
.discuss-box ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
.fine { color: var(--muted); font-size: .95rem; margin-top: 1.6rem; }

/* Example workflow */
.example { background: linear-gradient(160deg, var(--navy-950), var(--navy-900)); color: #fff; }
.example .eyebrow { color: var(--blue-400); }
.example h2 { color: #fff; }
.example .section-head p { color: #cfdaf5; }
.badge-illustrative { display: inline-block; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1.1rem 1.2rem; position: relative; }
.timeline .n { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--blue-400); letter-spacing: .08em; margin-bottom: .3rem; }
.timeline p { margin: 0; color: #e6edfc; font-size: 1rem; }
.example .fine { color: #9fb2da; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.about-grid p { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-copy p { color: var(--muted); }
.contact-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 1.5rem; }
.contact-box strong { display: block; }
form.consult { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .97rem; }
label .opt { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8b9ab8; border-radius: 10px; padding: .7rem .85rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-top: .5rem; }
.form-foot .priv { font-size: .95rem; }
.form-status { margin-top: 1.2rem; border-radius: 12px; padding: 1rem 1.2rem; font-size: 1rem; }
.form-status[hidden] { display: none; }
.form-status.info { background: #fff6dd; border: 1px solid #e8c768; color: #4d3500; }
.form-status.ok { background: #e6f7ee; border: 1px solid #7bc79b; color: #0e4a2a; }
.form-status.err { background: #fdecec; border: 1px solid #e29a9a; color: #6a1414; }
.form-status a { color: inherit; font-weight: 700; }

/* Footer */
.site-footer { background: var(--navy-950); color: #b8c6e6; padding: 3rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #dbe5fb; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; color: #93a5cc; }

/* Privacy page */
.doc-hero { background: linear-gradient(160deg, var(--navy-950), var(--navy-900)); color: #fff; padding: 3.2rem 0 2.6rem; }
.doc-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3rem; }
.doc-hero p { color: #cfdaf5; margin: 0; }
.doc { padding: 3rem 0 5rem; }
.doc .prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose p, .prose li { color: #25324f; }
.prose .notice { background: var(--bg-soft); border-left: 4px solid var(--blue-600); padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 2rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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