/* ============================================================
   Systemflowops — site styles
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-alt: #10161e;
  --surface: #141c25;
  --line: #223041;
  --text: #e9eef4;
  --muted: #a3b1bf;
  --accent: #57d9ab;
  --accent-strong: #2fbf8f;
  --accent-ink: #06251b;
  --max-width: 1080px;
  --radius: 10px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* subtle atmospheric glow, not flat */
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(87, 217, 171, 0.09), transparent 60%),
    radial-gradient(900px 700px at -15% 30%, rgba(70, 120, 180, 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }

.site-nav {
  display: none;
  gap: 1.4rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.header-cta { display: none; }

.nav-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (min-width: 760px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-block; }
  .nav-toggle { display: none; }
}

/* Mobile nav open state */
body.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
  gap: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

/* ---------- Grids & items ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-4 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.item h3 { color: var(--accent); margin-bottom: 0.4rem; }
.item p, .item li { color: var(--muted); font-size: 0.96rem; }
.item ul { margin: 0; padding-left: 1.1rem; }
.item li { margin-bottom: 0.5rem; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.steps li { counter-increment: step; }

.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.steps p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Niches ---------- */

.niche-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.niche-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.niche-note { color: var(--muted); }

/* ---------- About note ---------- */

.about-note {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem 1.5rem 0.75rem;
}

.about-note p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Security ---------- */

.security-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.security-list li {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-layout { grid-template-columns: 1fr 1.6fr; }
}

.contact-details p { color: var(--muted); }

.contact-form .field {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.field-consent input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.field-consent label {
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status.ok { color: var(--accent); }
.form-status.error { color: #f2a0a0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-operator {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 44rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}

.footer-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.footer-row nav { display: flex; gap: 1.4rem; }

.footer-row nav a { font-size: 0.9rem; }

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.legal .container { max-width: 760px; }

.legal h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: 0.35rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2.25rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
}

.legal p, .legal li { color: var(--muted); }

.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }

.legal .clause {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.legal .clause p { margin: 0; color: var(--text); }
