@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  /* SoftSol logo blue sampled from brand mark (~#4878d0) */
  --softsol-blue: #4878d0;
  --softsol-blue-mid: #2f5db8;
  --softsol-blue-deep: #1a3a7a;
  --ink: #0b1f33;
  --ink-soft: #1a3a55;
  --paper: #f3f7fb;
  --white: #ffffff;
  --muted: #4a6278;
  --line: rgba(11, 31, 51, 0.12);
  --teal: #0f8f8c;
  --teal-deep: #0a6b69;
  --amber: #e8a317;
  --sky: var(--softsol-blue);
  --font-display: "Fraunces", Georgia, serif;
  --font: "Figtree", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

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

.wrap { width: var(--wrap); margin: 0 auto; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 247, 251, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-lockup img {
  height: 2.6rem;
  width: auto;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-copy span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--softsol-blue-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-actions { display: flex; align-items: center; }

/* Hero — almost white top-left → SoftSol logo blue bottom-right */
.hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 85% 70% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0.92) 35%, transparent 70%),
    radial-gradient(ellipse 70% 65% at 100% 100%, var(--softsol-blue-deep) 0%, var(--softsol-blue-mid) 42%, transparent 72%),
    linear-gradient(155deg, #f8fafc 0%, #dce8f8 38%, var(--softsol-blue) 72%, var(--softsol-blue-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 120, 208, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 120, 208, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 35%, #000 15%, transparent 78%);
  animation: grid-drift 28s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-56px, -28px, 0); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-mark {
  height: 3.4rem;
  width: auto;
  margin-bottom: 1.4rem;
  /* SoftSol logo must render in original brand colours — never recolour/invert. */
  animation: rise 0.9s ease both;
}
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 700;
  animation: rise 0.95s 0.08s ease both;
}
.hero h1 em {
  font-style: normal;
  color: var(--softsol-blue-mid);
}
.hero .lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  animation: rise 1s 0.14s ease both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.05s 0.2s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  border-radius: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--amber);
  color: #1a1200;
}
.btn-primary:hover { background: #f0b43a; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(26, 58, 122, 0.28);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--softsol-blue-mid);
  background: #fff;
  color: var(--softsol-blue-deep);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: var(--ink-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); }

.hero-visual {
  position: relative;
  min-height: 22rem;
  animation: float-in 1.2s 0.15s ease both;
}
.orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(72, 120, 208, 0.28);
  animation: spin 42s linear infinite;
}
.orbit:nth-child(2) {
  inset: 18%;
  border-color: rgba(232, 163, 23, 0.4);
  animation-duration: 28s;
  animation-direction: reverse;
}
.orbit:nth-child(3) {
  inset: 30%;
  border-color: rgba(47, 93, 184, 0.35);
  animation-duration: 36s;
}
.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9.5rem;
  height: 9.5rem;
  margin: -4.75rem 0 0 -4.75rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, var(--softsol-blue), var(--softsol-blue-deep) 75%);
  border: 1px solid rgba(26, 58, 122, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}
.core strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}
.core span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.node {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(232, 163, 23, 0.18);
}
.node.n1 { top: 12%; left: 48%; }
.node.n2 { top: 48%; right: 10%; background: var(--softsol-blue); box-shadow: 0 0 0 6px rgba(72, 120, 208, 0.2); }
.node.n3 { bottom: 14%; left: 28%; background: var(--softsol-blue-mid); box-shadow: 0 0 0 6px rgba(47, 93, 184, 0.2); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-auth-only[hidden] { display: none !important; }

/* Sections */
.section {
  padding: 5rem 0;
}
.section.alt {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef6f8 100%);
}
.section.deep {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(15, 143, 140, 0.18), transparent 55%),
    linear-gradient(160deg, #0b1f33, #12384d);
  color: #eef6f8;
}
.section.deep .muted { color: rgba(238, 246, 248, 0.78); }
.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.section.deep .kicker { color: #7ee0d8; }
.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section .intro {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.section.deep .intro { color: rgba(238, 246, 248, 0.8); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem 1.35rem 1.4rem;
  border-top: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.55);
}
.section.deep .step {
  background: rgba(255, 255, 255, 0.06);
  border-top-color: var(--amber);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-deep);
}
.section.deep .step::before { color: var(--amber); }
.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.section.deep .step p { color: rgba(238, 246, 248, 0.78); }

.pillars {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.pillar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.pillar-list li {
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--sky);
  background: #fff;
}
.pillar-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.pillar-list span {
  color: var(--muted);
  font-size: 0.98rem;
}
.aside-panel {
  padding: 1.75rem 1.5rem;
  background:
    linear-gradient(165deg, rgba(15, 143, 140, 0.12), rgba(61, 143, 214, 0.1)),
    #fff;
  border: 1px solid var(--line);
}
.aside-panel h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.aside-panel p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.aside-panel .btn { width: 100%; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.foot {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.foot a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.foot a:hover { text-decoration: underline; }

/* SoftSol nav on dark/light */
.softsol-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.softsol-nav .ss-nav-login-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 1rem;
  border-radius: 0.55rem;
  border: 1px solid #c5d0db;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  background: #fff;
}
.softsol-nav .ss-nav-login-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.softsol-nav .ss-nav-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.55rem;
  background: var(--softsol-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
}
.softsol-nav .ss-nav-primary:hover { background: var(--softsol-blue-deep); color: #fff; }
.ss-nav-chevron { width: 16px; height: 16px; flex-shrink: 0; }
.ss-nav-dropdown, .ss-user-pill { position: relative; }
.ss-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.ss-nav-dropdown-toggle:hover,
.ss-nav-dropdown.open .ss-nav-dropdown-toggle {
  background: rgba(15, 143, 140, 0.1);
  color: var(--teal-deep);
}
.ss-nav-dropdown-menu,
.ss-user-pill-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 12rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.35rem;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.12);
}
.ss-nav-dropdown-title {
  margin: 0;
  padding: 0.45rem 0.65rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
}
.ss-nav-dropdown-item,
.ss-user-pill-item {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.ss-nav-dropdown-item:hover,
.ss-user-pill-item:hover {
  background: rgba(15, 143, 140, 0.1);
  color: var(--teal-deep);
}
.ss-nav-dropdown-item.active {
  background: rgba(15, 143, 140, 0.12);
  color: var(--teal-deep);
  font-weight: 600;
}
.ss-user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 3px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.ss-user-pill-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ss-user-pill-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-user-pill-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
}
.ss-user-pill-role {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 2px;
}
.ss-user-pill-fullname {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.ss-user-pill-danger { color: #b91c1c; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0 4rem; }
  .hero-visual { min-height: 16rem; order: -1; max-width: 22rem; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-copy span { display: none; }
  .ss-user-pill-name { display: none; }
  .hero { min-height: auto; }
}
