/* prosperflow.dev — one stylesheet, system fonts, no framework */
:root {
  --blue: #2062fe;
  --blue-600: #1a4fd1;
  --blue-050: #eef3ff;
  --navy: #0b1b3f;
  --navy-800: #13265a;
  --ink: #18212f;
  --muted: #566176;
  --line: #e3e8f2;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --ok: #0f7b4b;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 8px 24px rgba(11, 27, 63, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 0 0 .9rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--blue); cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-050); color: var(--blue-600); }
.btn-small { padding: .5rem 1rem; font-size: .95rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.site-nav .btn { color: #fff; }
.site-nav .lang { font-size: .92rem; color: var(--muted); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; margin: 0 auto; content: ""; transition: transform .2s; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 10px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-header.open .site-nav { display: flex; }
  .site-header.open .bars { background: transparent; }
  .site-header.open .bars::before { transform: translateY(7px) rotate(45deg); }
  .site-header.open .bars::after { transform: translateY(-7px) rotate(-45deg); }
}

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 0; margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }

/* hero */
.hero { padding: 48px 0 36px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-home { background: radial-gradient(1100px 420px at 85% -10%, rgba(32, 98, 254, .18), transparent 60%), linear-gradient(180deg, #f7f9ff, #fff); padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.hero-home h1 { max-width: 880px; }

/* sections */
.section { padding: 44px 20px; }
.section-head { max-width: 720px; margin-bottom: 22px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: calc(760px + 40px); }
.prose h3 { margin-top: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%232062fe' d='M8.1 13.6 4.5 10l1.4-1.4 2.2 2.2 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .more { color: var(--blue); font-weight: 600; font-size: .95rem; }
.cards-compact .card p { display: none; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--blue-600); background: var(--blue-050); padding: .2rem .6rem; border-radius: 999px; }
.ext { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.project p { color: var(--muted); font-size: .97rem; }
.built-h { font-weight: 600; color: var(--navy) !important; margin-bottom: .3rem; font-size: .92rem !important; }
.built { margin: 0 0 12px; padding-left: 1.1rem; font-size: .93rem; color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.chips li { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; color: var(--muted); }
.project .case-link { margin: 14px 0 0; }
.project .case-link a { color: var(--blue); font-weight: 600; text-decoration: none; }
.project .case-link a:hover { text-decoration: underline; }
.case-summary .project { max-width: 760px; }

/* faq */
.faq { max-width: calc(820px + 40px); }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 6px; color: var(--muted); }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-800)); color: #fff; margin-top: 24px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 44px 20px; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #c9d4f0; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid #c9d2e3; border-radius: 10px; padding: .7rem .8rem; background: #fff; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(32, 98, 254, .18); }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; background: var(--soft); }
.side-card h2 { font-size: 1.15rem; }

/* footer */
.site-footer { background: #081430; color: #b9c4de; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 20px 24px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.foot-h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #dce4f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 20px 28px; font-size: .88rem; }
.foot-legal p { margin: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.02em; white-space: nowrap; }
