/* ==========================================================================
   Logiverse — Corporate stylesheet
   Single source of truth for the whole site.
   Edit the tokens in :root to re-skin everything at once.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #071b33;
  --navy-800: #0c2340;
  --navy-700: #123055;
  --navy-600: #1b4370;
  --blue-500: #1668b3;
  --blue-400: #2e86d1;
  --blue-050: #eef5fc;
  --amber-500: #f0a500;
  --amber-600: #d18f00;

  /* Neutrals */
  --ink: #0f1b2a;
  --body: #46586e;
  --muted: #6b7c93;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --surface-alt: #f6f9fc;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space & shape */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, .06), 0 2px 8px rgba(12, 35, 64, .05);
  --shadow-md: 0 4px 12px rgba(12, 35, 64, .08), 0 12px 32px rgba(12, 35, 64, .07);
  --wrap: 1160px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.35rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--line-soft); }
.center { text-align: center; }
.lead { font-size: 1.14rem; color: var(--body); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: .85rem;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-800); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-weight: 600; font-size: .97rem; padding: 13px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center;
}
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn--amber { background: var(--amber-500); color: var(--navy-900); }
.btn--amber:hover { background: var(--amber-600); color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy-800); font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; }
.brand:hover { color: var(--navy-800); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__sub { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 8px; color: var(--navy-800); font-weight: 500; font-size: .96rem;
}
.nav a:hover { background: var(--blue-050); color: var(--blue-500); }
.nav a[aria-current="page"] { color: var(--blue-500); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav .btn:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-800);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dce7f3;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(46,134,209,.34), transparent 62%),
    radial-gradient(700px 460px at 8% 92%, rgba(240,165,0,.14), transparent 60%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero--home { padding: 104px 0 96px; }
.hero--page { padding: 74px 0 66px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero--page h1 { max-width: 22ch; }
.hero p { color: #c3d4e6; font-size: 1.16rem; max-width: 58ch; }
.hero .eyebrow { color: var(--amber-500); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.hero-stats div { background: rgba(9,29,52,.55); padding: 26px 22px; }
.hero-stats b { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.hero-stats span { font-size: .87rem; color: #a9bed4; }

.breadcrumb { font-size: .87rem; color: #9db3ca; margin-bottom: 14px; }
.breadcrumb a { color: #9db3ca; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: #c9dcf0; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card ul { font-size: .95rem; margin-bottom: 0; padding-left: 1.1em; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-050); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card--dark { background: var(--navy-800); border-color: var(--navy-700); color: #c3d4e6; }
.card--dark h3 { color: #fff; }
.card--dark:hover { border-color: var(--blue-500); }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue-050); color: var(--blue-500); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 20px; border-top: 3px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--blue-500); margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* Feature list with checkmarks */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668b3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Split content block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }
.panel {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 40px 36px; color: #c3d4e6;
}
.panel h3 { color: #fff; }
.panel dl { margin: 0; display: grid; gap: 20px; }
.panel dt { color: #fff; font-weight: 700; font-size: 1rem; }
.panel dd { margin: 2px 0 0; font-size: .95rem; color: #a9bed4; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 56px 48px; color: #c3d4e6;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin-bottom: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(46,134,209,.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--blue-500); margin-top: 4px; }
.contact-list b { display: block; color: var(--ink); font-size: .95rem; }
.contact-list span, .contact-list a { font-size: .95rem; }
.contact-list span + a { display: block; margin-top: 10px; font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a9c1; padding: 68px 0 0; font-size: .94rem; }
.site-footer a { color: #93a9c1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand__sub { color: #7a90a8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; color: #7a90a8;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .split--wide, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow-md); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 8px 0 0; }
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero--home { padding: 72px 0 64px; }
  .grid--2, .grid--4, .steps, .field-row { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; }
  .card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
