/* ============================================
   SSS.OOO LLC — Global stylesheet
   ============================================ */

:root {
  --bg: #0a0f1c;
  --bg-soft: #0f172a;
  --card: #111827;
  --border: #1f2937;
  --text: #e5e7eb;
  --text-dim: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --radius: 14px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--text); }

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

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

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

.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(600px 300px at 80% 10%, rgba(99, 102, 241, 0.14), transparent);
  pointer-events: none;
}

.hero .container { position: relative; }

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--accent); }

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

.page-hero { padding: 70px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); max-width: 620px; margin: 0 auto; }

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

.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--text-dim); max-width: 600px; margin: 12px auto 0; }

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

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent); }

.card h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}
.stat { text-align: center; }
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--text-dim); font-size: 0.9rem; }

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

.step { position: relative; }
.step .step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ---------- Project cards ---------- */

.project-card { display: flex; flex-direction: column; }
.project-card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.project-card .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 0.92rem; }

/* ---------- Prose (legal & article pages) ---------- */

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 38px 0 14px; font-weight: 700; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; font-weight: 700; }
.prose p, .prose li { color: var(--text-dim); margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose strong { color: var(--text); }
.prose .meta { font-size: 0.9rem; color: var(--text-dim); border-bottom: 1px solid var(--border); padding-bottom: 18px; }

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

.contact-card { text-align: center; }
.contact-card a { font-weight: 600; }

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

.cta-band {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.cta-band p { opacity: 0.9; margin-bottom: 26px; }
.cta-band .btn { background: #0a0f1c; color: #fff; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 0;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.site-footer p, .site-footer li, .site-footer a { color: var(--text-dim); font-size: 0.92rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); margin-left: 18px; }

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

/* ---------- Platform badges (hero) ---------- */

.platform-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 30px;
}

.platform-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s;
}

.platform-badge:hover { border-color: var(--accent); }

/* ---------- ERP flow diagram ---------- */

.erp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-node {
  text-align: center;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  min-width: 160px;
}

.flow-node.core {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.07);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.1);
}

.flow-node h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.flow-node p  { font-size: 0.82rem; color: var(--text-dim); }

.flow-node.core h4 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-arrow { font-size: 1.5rem; color: var(--accent); opacity: 0.55; flex-shrink: 0; }

.flow-platforms { display: flex; flex-direction: column; gap: 8px; }

.flow-platform {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-align: center;
}

/* ---------- CTA band two-button variant ---------- */

.cta-band .btn-row { justify-content: center; margin-top: 26px; }

.cta-btn-dark { background: #0a0f1c; color: #fff; }
.cta-txt-dark:hover { opacity: 0.85; }

.cta-btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.cta-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 12px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .erp-flow { flex-direction: column; padding: 24px 16px; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-platforms { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
