/* ============================================
   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;
  --success: #22c55e;
  --warning: #f59e0b;
  --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: 48px 0 42px;
  text-align: left;
  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;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(410px, 0.9fr);
  align-items: center;
  gap: 34px;
}

.hero-copy { grid-column: 1; }

.badge {
  display: inline-block;
  justify-self: flex-start;
  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 {
  grid-column: 1;
  font-size: clamp(2.05rem, 4.2vw, 3.1rem);
  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 {
  grid-column: 1;
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.btn-row { display: flex; gap: 14px; justify-content: flex-start; 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: 0;
}
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  padding: 24px 0;
}
.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;
  min-height: 260px;
}
.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 h3 { font-size: 1.18rem; }
.project-card p { margin-bottom: 18px; }
.project-meta {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}
.project-meta span {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}
.project-meta span:first-child {
  color: var(--success);
  font-weight: 700;
}
.project-card .more { margin-top: 0; 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: flex-start;
  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); }

/* ---------- Dashboard preview ---------- */

.dashboard-preview {
  grid-column: 2;
  grid-row: 1;
  max-width: 960px;
  margin: 0;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 28, 0.96)),
    radial-gradient(500px 220px at 15% 0%, rgba(56, 189, 248, 0.16), transparent);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: dashboard-rise 0.7s ease-out both;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.window-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #475569;
}
.window-dot:nth-child(1) { background: #f87171; }
.window-dot:nth-child(2) { background: #fbbf24; }
.window-dot:nth-child(3) { background: #34d399; }

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}
.system-status i,
.log-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.75);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 10px;
  padding: 14px;
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 14px;
}

.dashboard-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: panel-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

.panel-large { grid-row: auto; }
.panel-wide { grid-column: 1 / -1; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.panel-head strong { color: var(--text); font-size: 0.82rem; }

.sync-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-size: 0.9rem;
}
.sync-row b { color: var(--text-dim); font-size: 0.82rem; font-weight: 600; }
.sync-row em {
  color: var(--success);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
}
.sync-row:last-child em { color: var(--warning); }

.metric-panel span,
.metric-panel small {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.metric-panel strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1;
}

.log-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@keyframes dashboard-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-sheen {
  0%, 42% { transform: translateX(-100%); }
  62%, 100% { transform: translateX(100%); }
}

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

.erp-flow {
  position: relative;
  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);
  overflow: hidden;
}

.erp-flow::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  opacity: 0.42;
}

.erp-flow::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: 12%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
  animation: flow-pulse 4.5s linear infinite;
}

.flow-node {
  position: relative;
  z-index: 1;
  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;
}

@keyframes flow-pulse {
  from { transform: translateX(0); opacity: 0; }
  10%, 85% { opacity: 1; }
  to { transform: translateX(720px); opacity: 0; }
}

/* ---------- 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; }
  .hero { text-align: center; }
  .hero .container { display: block; }
  .badge { justify-self: auto; }
  .hero p.lead { margin: 0 auto 32px; }
  .hero .btn-row,
  .platform-badges { justify-content: center; }
  .dashboard-preview { margin: 44px auto 0; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .panel-large, .panel-wide { grid-column: span 2; }
}

@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; }
  .stats-strip .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats-strip .stat .num { font-size: 1.35rem; }
  .stats-strip .stat .label { font-size: 0.72rem; line-height: 1.35; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .dashboard-preview { display: none; }
  .dashboard-topbar { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; padding: 12px; }
  .panel-large, .panel-wide { grid-column: auto; }
  .sync-row { grid-template-columns: 1fr; gap: 4px; }
  .erp-flow { flex-direction: column; padding: 24px 16px; }
  .erp-flow::before,
  .erp-flow::after { display: none; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-platforms { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
