/* ============================================================
   Devnaro LLC — global stylesheet
   ============================================================ */

:root {
  --ink: #0d1321;
  --ink-2: #131c31;
  --paper: #ffffff;
  --surface: #f6f8fb;
  --text: #1b2432;
  --muted: #5b6472;
  --muted-on-dark: #a5b0c4;
  --accent: #3e63dd;
  --accent-dark: #2f4fc4;
  --accent-soft: #eef2fd;
  --line: #e4e8ef;
  --line-dark: #232e47;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 19, 33, 0.07);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 3px solid rgba(62, 99, 221, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: inherit;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.18rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-dark .eyebrow { color: #8fa6f5; }

.lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 46rem;
}

.section-dark .lead { color: var(--muted-on-dark); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.55rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.section-dark .btn-ghost { border-color: var(--line-dark); color: #fff; }
.section-dark .btn-ghost:hover { border-color: #8fa6f5; color: #c3d0fa; }

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

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

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand img { width: 34px; height: 34px; }

.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand .brand-suffix { font-weight: 400; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

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

section { padding: 5.5rem 0; }

.section-alt { background: var(--surface); }

.section-dark {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(62, 99, 221, 0.18), transparent 60%),
    var(--ink);
  color: #fff;
}

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { margin-top: 0.9rem; }

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

.hero {
  position: relative;
  padding: 6.5rem 0 6rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.6), rgba(255, 255, 255, 1) 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 19, 33, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 19, 33, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container { position: relative; text-align: center; }

.hero h1 { max-width: 17ch; margin-inline: auto; }

.hero .lead { margin: 1.4rem auto 2.4rem; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.6rem;
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
}

.card h3 { margin: 1.1rem 0 0.55rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card ul {
  margin-top: 0.9rem;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.97rem;
}
.card li {
  padding: 0.32rem 0 0.32rem 1.5rem;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.icon-chip svg { width: 24px; height: 24px; }

/* ---------- Split (about) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split p + p { margin-top: 1rem; }
.split .body-copy { color: var(--muted); }

.panel {
  background: linear-gradient(160deg, #131c31, #0d1321);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  color: #fff;
}

.panel h3 { color: #fff; margin-bottom: 0.7rem; }
.panel p { color: var(--muted-on-dark); font-size: 0.98rem; }

.panel + .panel { margin-top: 1.2rem; }

.focus-list {
  list-style: none;
  margin-top: 1.4rem;
}
.focus-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  color: var(--text);
  font-weight: 500;
}
.focus-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.focus-list span small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.step h3 { font-size: 1.05rem; margin: 0.5rem 0 0.45rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band .lead { margin: 1rem auto 2.2rem; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 { margin-bottom: 0.9rem; }

.contact-card address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  font-weight: 500;
}
.contact-line svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

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

.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.1rem 0 0.6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.legal li { margin: 0.3rem 0; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--surface), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero p { margin-top: 1rem; }

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

.site-footer {
  background: var(--ink);
  color: var(--muted-on-dark);
  padding: 3.5rem 0 2.2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer .brand { color: #fff; }
.site-footer .brand .brand-suffix { color: var(--muted-on-dark); }

.footer-tagline { margin-top: 0.9rem; max-width: 30rem; font-size: 0.95rem; }

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a { color: var(--muted-on-dark); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.88rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 720px) {
  section { padding: 4rem 0; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4%;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; }
  .nav-cta { margin: 0.6rem 0 0.9rem; }

  .nav-toggle { display: block; }

  .grid-3, .grid-2, .process, .contact-grid { grid-template-columns: 1fr; }
}
