/* Arnex Software Development Services - shared styles */
:root {
  --navy: #0f1e33;
  --navy-2: #16294a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 30, 51, 0.18);
  --wrap: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2ff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.brand img.logo {
  width: 38px; height: 38px; border-radius: 8px;
  background: none; object-fit: contain; display: block;
}
.brand .brand-name { font-size: 1.05rem; }
.brand .brand-sub { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav .btn { padding: 0.55rem 1.15rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 24px; }
  .nav .btn { margin: 0.5rem 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #1e3a68 0%, var(--navy) 55%);
  color: #e6eefc;
  padding: 5.5rem 0 5rem;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; color: #b9c8e4; max-width: 46ch; margin: 1.25rem 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero .trustline { margin-top: 2.5rem; font-size: 0.85rem; color: #8ea3c9; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.hero .trustline span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cdd8ea; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 1rem;
  background: #eef2ff; color: var(--blue);
  display: grid; place-items: center;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-weight: 800; color: var(--blue); font-size: 0.9rem; letter-spacing: 0.05em;
}
.step h3 { margin: 0.5rem 0 0.35rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Pricing / product cards ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .tag { font-size: 0.8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.price-card li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; font-size: 0.95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.price-card .btn { margin-top: auto; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c8e4; max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Legal / prose pages ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 760px; margin: 0 auto; padding: 3rem 0; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.prose .callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; padding: 1rem 1.25rem; }
.placeholder { background: #fff7ed; color: #9a3412; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
.contact-info dt { font-weight: 700; color: var(--ink); margin-top: 1.1rem; font-size: 0.9rem; }
.contact-info dd { margin: 0.15rem 0 0; color: var(--text); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c8e4; padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.site-footer a { color: #cdd8ea; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .brand .brand-name, .site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: #8ea3c9; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 1.5rem; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
