/* ============================================================
   SOFTINGO — Brand Style Guide v1.0 (dark theme)
   ============================================================ */

:root {
  /* Brand */
  --primary: #2952E3;
  --primary-hover: #2349CC;
  --secondary: #1E88F5;
  --accent: #39D5F6;
  --light-accent: #66E7F8;
  --gradient: linear-gradient(135deg, #2952E3 0%, #1E88F5 45%, #39D5F6 100%);

  /* Dark theme surfaces */
  --bg: #08111F;
  --bg-2: #0D172A;
  --card: #131F35;
  --card-hover: #1A2B48;
  --border: #243654;

  /* Typography */
  --heading: #F8FAFC;
  --body: #CBD5E1;
  --muted: #94A3B8;
  --disabled: #64748B;

  /* Effects */
  --blue-glow: rgba(41, 82, 227, 0.28);
  --cyan-glow: rgba(57, 213, 246, 0.25);
  --shadow: 0 12px 40px rgba(0, 0, 0, .30);
  --shadow-hover: 0 18px 60px rgba(41, 82, 227, .18);

  /* Radii */
  --r-btn: 12px;
  --r-card: 2px;
  --r-input: 14px;

  /* Layout */
  --maxw: 1160px;
  --pad: 24px;

  /* Fonts */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--heading); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--accent); }
.btn--outline:hover { border-color: var(--accent); background: rgba(57, 213, 246, .06); transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 31, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { height: 34px; width: auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .1em;
  color: var(--heading);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-size: 15px; color: var(--body); font-weight: 500; transition: color .16s ease; }
.nav > a:hover { color: var(--heading); }
.nav__cta { color: #fff; }
.nav__cta:hover { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 96px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__text { max-width: 620px; }
.hero__title { font-size: clamp(2.5rem, 5vw, 3.9rem); font-weight: 800; }
.hero__sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 560px;
}
.hero__actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { justify-self: end; }
.hero__media img { width: 100%; height: auto; max-width: 620px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { background: var(--card-hover); transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #2f456b; }
.card__icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(41, 82, 227, .14);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.card__desc { color: var(--muted); font-size: .98rem; }
.card__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.card__list li {
  position: relative;
  padding-left: 24px;
  font-size: .93rem;
  color: var(--body);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ---------- Why / stats ---------- */
.why__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 26px;
}
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--heading); letter-spacing: -0.03em; }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- About ---------- */
.about { max-width: 720px; }
.about__text { color: var(--body); font-size: 1.12rem; margin-top: 20px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact__email {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease;
}
.contact__email:hover { border-color: var(--accent); }

.contact__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--body); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--disabled); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 82, 227, .22);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__error { color: #F87171; font-size: .9rem; margin-bottom: 14px; }

/* ---------- Networks ---------- */
.networks__head { max-width: 640px; margin-inline: auto; text-align: center; }
.networks__head .section__lead { margin-inline: auto; }
.networks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.net {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 18px 22px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.net:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.net img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 34px; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__brandlink { margin-bottom: 14px; }
.footer__tagline { color: var(--muted); font-size: .95rem; max-width: 280px; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__nav a { color: var(--body); font-size: .95rem; transition: color .16s ease; }
.footer__nav a:hover { color: var(--heading); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .86rem;
  font-family: var(--font-mono);
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .networks__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { justify-self: center; order: -1; }
  .hero__media img { max-width: 480px; }
  .hero__text { max-width: none; }
  .hero__sub { max-width: none; }
}

@media (max-width: 480px) {
  .networks__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .net { height: 72px; padding: 14px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 74px 0; }
  .hero { padding: 88px 0 78px; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 17, 31, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 20px;
    transform: translateY(-140%);
    transition: transform .28s ease;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a { padding: 14px var(--pad); border-top: 1px solid var(--border); }
  .nav__cta { margin: 14px var(--pad) 0; }
  .nav__toggle { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
