/* ==========================================================================
   Mos Infra Solutions — AI Landing Specialist
   Design system (dark, enterprise, "mission control")
   ========================================================================== */

:root {
  --bg: #0a0f1c;
  --bg-raised: #0f1626;
  --surface: #131c30;
  --surface-2: #182440;
  --line: #22314e;
  --line-soft: rgba(120, 150, 200, 0.14);

  --accent: #4aa8ff;         /* primary — trust / enterprise blue */
  --accent-strong: #2a7fe0;
  --accent-soft: rgba(74, 168, 255, 0.12);
  --signal: #f2a93b;         /* mission-control amber — gates / attention */
  --signal-soft: rgba(242, 169, 59, 0.12);
  --good: #4ad6a0;

  --text: #e9eef7;
  --text-muted: #9aabc4;
  --heading: #ffffff;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px rgba(2, 8, 20, 0.6);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #86c3ff; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(74, 168, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.4rem;
}
.eyebrow.signal { color: var(--signal); background: var(--signal-soft); border-color: rgba(242, 169, 59, 0.4); }

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  color: var(--heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

h3 { color: var(--heading); font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 650; }

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

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

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.8rem 0;
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--heading); font-weight: 700; letter-spacing: 0.04em;
}
.brand img { height: 48px; width: auto; }
.brand span { font-size: 1rem; text-transform: uppercase; line-height: 1.1; }
.brand small {
  display: block; font-size: 0.66rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.2em; text-transform: uppercase;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-size: 1.4rem; line-height: 1;
  padding: 0.3rem 0.6rem; cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.93rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a.active { color: var(--heading); border-bottom-color: var(--accent); }

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff; padding: 0.55rem 1.2rem; border-radius: 999px;
  border-bottom: none; font-weight: 600;
  transition: filter 0.2s, transform 0.2s;
}
.nav-links .nav-cta:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }

.nav-links .lang-switch {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted);
}
.nav-links .lang-switch:hover { border-color: var(--accent); color: var(--heading); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 0.5rem 4%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(34, 49, 78, 0.6); }
  .nav-links .nav-cta { margin: 0.9rem 0; text-align: center; }
  .nav-links .lang-switch { margin: 0.4rem 0 0.9rem; }
}

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

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block; font-weight: 600; font-size: 0.97rem;
  padding: 0.85rem 1.8rem; border-radius: 999px;
  transition: filter 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff; box-shadow: 0 10px 30px rgba(42, 127, 224, 0.35);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(16, 24, 42, 0.6); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Hero (home) — mission-control gradient + grid
   -------------------------------------------------------------------------- */

.hero {
  position: relative; padding: 7rem 0 7.5rem; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(74, 168, 255, 0.18), transparent 60%),
    radial-gradient(760px 420px at 12% 108%, rgba(242, 169, 59, 0.10), transparent 55%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(120, 150, 200, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 200, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 500px at 70% 0%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; max-width: 760px; }
.hero p.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 640px; margin-bottom: 2.2rem; }
.hero .btn-row { margin-bottom: 1.6rem; }
.hero .hero-note { font-size: 0.92rem; color: var(--text-muted); }
.hero .hero-note strong { color: var(--text); }

/* Page hero (inner pages) */
.page-hero {
  padding: 5rem 0 3.2rem;
  background:
    radial-gradient(800px 360px at 82% -20%, rgba(74, 168, 255, 0.16), transparent 60%),
    var(--bg-raised);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { color: var(--text-muted); max-width: 680px; font-size: 1.08rem; }

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

section { padding: 4.6rem 0; }
.section-head { max-width: 700px; margin-bottom: 2.6rem; }
.section-head p { color: var(--text-muted); font-size: 1.03rem; }
.alt { background: var(--bg-raised); }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.lead-big { font-size: 1.25rem; color: var(--text); max-width: 760px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(74, 168, 255, 0.5); box-shadow: var(--shadow); }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card .icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(74, 168, 255, 0.3);
  margin-bottom: 1.1rem; font-size: 1.3rem;
}
.card.signal .icon { background: var(--signal-soft); border-color: rgba(242, 169, 59, 0.3); }

/* --------------------------------------------------------------------------
   Contrast lists (loud vs quiet)
   -------------------------------------------------------------------------- */

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 760px) { .contrast { grid-template-columns: 1fr; } }
.contrast .panel { border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); background: var(--surface); }
.contrast .panel.quiet { background: linear-gradient(160deg, rgba(74, 168, 255, 0.12), rgba(74, 168, 255, 0.02)); border-color: rgba(74, 168, 255, 0.4); }
.contrast .panel h3 { margin-bottom: 1rem; }
.contrast .panel .kicker { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; display: block; margin-bottom: 0.3rem; }
.contrast .panel.quiet .kicker { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.86rem; font-weight: 500; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem;
}
.contrast .quiet .chip { color: var(--text); border-color: rgba(74, 168, 255, 0.35); background: rgba(74, 168, 255, 0.07); }

/* --------------------------------------------------------------------------
   Journey / pipeline flow
   -------------------------------------------------------------------------- */

.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.flow .node {
  flex: 1 1 130px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 0.9rem; text-align: center;
  font-weight: 600; color: var(--text); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; min-height: 72px;
}
.flow .node small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }
.flow .node.gap {
  background: var(--signal-soft); border: 1px dashed rgba(242, 169, 59, 0.6);
  color: var(--signal); font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em;
}
.flow .node.end { background: linear-gradient(160deg, rgba(74, 168, 255, 0.2), rgba(74, 168, 255, 0.04)); border-color: rgba(74, 168, 255, 0.5); color: var(--heading); }
.flow .arrow { align-self: center; color: var(--text-muted); font-size: 1.1rem; flex: 0 0 auto; }
@media (max-width: 760px) { .flow { flex-direction: column; } .flow .arrow { transform: rotate(90deg); } }
.flow-note { margin-top: 1.1rem; color: var(--text-muted); font-size: 0.98rem; }
.flow-note b { color: var(--signal); }

/* --------------------------------------------------------------------------
   Framework steps
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; position: relative;
}
.step .num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent);
  display: inline-block; margin-bottom: 0.7rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.94rem; }
.step ul { list-style: none; margin-top: 0.8rem; font-size: 0.9rem; color: var(--text-muted); }
.step ul li { padding-left: 1.1rem; position: relative; margin-bottom: 0.3rem; }
.step ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --------------------------------------------------------------------------
   Mission control split
   -------------------------------------------------------------------------- */

.mc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 820px) { .mc { grid-template-columns: 1fr; } }
.mc .lane { border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); background: var(--surface); }
.mc .lane.flight { border-color: rgba(74, 168, 255, 0.4); }
.mc .lane.control { border-color: rgba(242, 169, 59, 0.4); background: linear-gradient(160deg, rgba(242, 169, 59, 0.08), transparent); }
.mc .lane .tag-label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; display: block; }
.mc .lane.flight .tag-label { color: var(--accent); }
.mc .lane.control .tag-label { color: var(--signal); }
.mc .lane ul { list-style: none; margin-top: 0.9rem; color: var(--text-muted); font-size: 0.95rem; }
.mc .lane ul li { padding-left: 1.3rem; position: relative; margin-bottom: 0.4rem; }
.mc .lane ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; }
.mc .lane.flight ul li::before { background: var(--accent); }
.mc .lane.control ul li::before { background: var(--signal); }

.gates {
  margin-top: 1.5rem; text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; background: var(--bg);
}
.gates .phrase { font-size: 1.15rem; font-weight: 650; color: var(--heading); }
.gates .phrase b { color: var(--signal); }
.gates .sub { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* --------------------------------------------------------------------------
   Pull-quote
   -------------------------------------------------------------------------- */

.pullquote {
  border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.35;
  color: var(--heading); font-weight: 650; letter-spacing: -0.01em; max-width: 820px;
}
.pullquote.signal { border-color: var(--signal); }
.pullquote cite { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); font-style: normal; margin-top: 0.9rem; }

/* --------------------------------------------------------------------------
   Distinction / note blocks
   -------------------------------------------------------------------------- */

.note {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem;
  background: var(--surface);
}
.note.accent { border-color: rgba(74, 168, 255, 0.4); background: linear-gradient(160deg, rgba(74, 168, 255, 0.09), transparent); }
.note h3 { margin-bottom: 0.5rem; }
.note p { color: var(--text-muted); }
.ne { font-weight: 700; color: var(--heading); }
.ne .eq { color: var(--signal); padding: 0 0.3rem; }

/* --------------------------------------------------------------------------
   Capability list (services)
   -------------------------------------------------------------------------- */

.cap { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem 1.5rem; align-items: start; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.cap:first-of-type { border-top: none; }
.cap .idx {
  font-size: 0.9rem; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(74, 168, 255, 0.35); background: var(--accent-soft);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
}
.cap h3 { font-size: 1.25rem; }
.cap p { color: var(--text-muted); margin-top: 0.3rem; }
.cap .cap-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }

.price { font-size: 2rem; font-weight: 800; color: var(--heading); margin: 0.5rem 0 0.1rem; }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.price-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   Prose / about / tags
   -------------------------------------------------------------------------- */

.prose p { color: var(--text-muted); margin-bottom: 1.1rem; }
.prose p strong { color: var(--text); }
.prose h2 { margin-top: 1.4rem; }

.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-grid .about-photo { max-width: 280px; } }
.about-photo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.about-photo img { border-radius: 14px; background: none; margin-inline: auto; max-width: 170px; }
.about-photo h3 { margin-top: 1.2rem; }
.about-photo p { color: var(--text-muted); font-size: 0.9rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.tag {
  font-size: 0.82rem; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(74, 168, 255, 0.3); border-radius: 999px; padding: 0.3rem 0.9rem;
}

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

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item .icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(74, 168, 255, 0.3); font-size: 1.15rem;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 0.96rem; }
.contact-item a:hover { color: var(--accent); }

form .field { margin-bottom: 1.1rem; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 0.96rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 168, 255, 0.18); }
textarea { min-height: 150px; resize: vertical; }
button.btn { border: none; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; }
.form-status { margin-top: 0.9rem; padding: 0.8rem 1rem; background: var(--accent-soft); border: 1px solid rgba(74, 168, 255, 0.35); border-radius: 10px; font-size: 0.93rem; color: var(--text); }

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

.cta-band {
  text-align: center; padding: 4.6rem 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(74, 168, 255, 0.16), transparent 70%),
    var(--bg-raised);
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.8rem; max-width: 620px; margin-inline: auto; }

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

.site-footer { background: #060a14; border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; color: var(--text-muted); }
.site-footer p { color: var(--text-muted); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a { color: var(--text-muted); }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 0.6rem; color: var(--text-muted); font-size: 0.84rem;
}
