/*
 * Onix Solutions — onixnet.solutions
 *
 * Styled after onixnet.com: Plus Jakarta Sans, pill buttons (30px radius),
 * Onix Red for the primary action, the Berry Blue → Midnight Blue gradient for
 * dark bands and the Onix Red → Maize gradient as an accent. Only the nine
 * Onix brand colors and their tints; neutrals stand in for White / Satin Black.
 */

:root {
  --onix-red: #F46262;
  --onix-red-hover: #E24F4F;
  --midnight-blue: #30496D;
  --berry-blue: #874D83;
  --satin-black: #1E2020;
  --maize: #FEED7D;
  --amaranth: #A52959;
  --midnight-green: #094C61;
  --munsell-blue: #2795A4;
  --white: #FFFFFF;

  --text: #212121;
  --text-muted: #4B5058;
  --text-faint: #6B7079;
  --border: #E6E7EA;
  --surface: #FFFFFF;
  --surface-tint: #F6F6F8;

  --radius-pill: 30px;
  --radius-card: 18px;
  --shadow-card: 0 1px 2px rgba(30, 32, 32, 0.06), 0 8px 24px rgba(30, 32, 32, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(30, 32, 32, 0.08), 0 16px 40px rgba(30, 32, 32, 0.12);

  --wrap: 1200px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--satin-black); color: var(--white);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--munsell-blue); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--onix-red); color: var(--white); }
.btn-primary:hover { background: var(--onix-red-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-dark { background: var(--satin-black); color: var(--white); }
.btn-dark:hover { background: #000; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand-divider { width: 1px; height: 26px; background: var(--border); }
.brand-label { font-weight: 700; font-size: 17px; color: var(--midnight-blue); letter-spacing: -0.01em; }

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-muted); }
.nav a:hover { color: var(--onix-red); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 18px; height: 2px; background: var(--satin-black); border-radius: 2px; }
.mobile-nav-panel {
  position: absolute; right: 0; top: 52px; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-card-hover); padding: 8px; display: flex; flex-direction: column;
}
.mobile-nav-panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.mobile-nav-panel a:hover { background: var(--surface-tint); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(244, 98, 98, 0.22), transparent 60%),
    linear-gradient(180deg, var(--berry-blue) 0%, var(--midnight-blue) 90%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--maize); margin-bottom: 18px;
}
/* Onix Red is 3.10:1 on white — too faint for 13px type; use its AA shade. */
.eyebrow-dark { color: #B44E4E; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; }
.hero h1 .accent {
  background: linear-gradient(270deg, var(--maize) 0%, var(--onix-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 22px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 560px; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-rule { height: 6px; background: linear-gradient(270deg, var(--maize) 0%, var(--onix-red) 100%); }

.flow-card {
  background: rgba(255, 255, 255, 0.96); color: var(--text);
  border-radius: 24px; padding: 28px 28px 20px;
  box-shadow: 0 30px 60px rgba(14, 20, 40, 0.35);
  transform: rotate(-1.5deg);
}
.flow-logo { height: 44px; width: auto; margin-bottom: 18px; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li {
  display: grid; grid-template-columns: 18px 1fr; column-gap: 14px; row-gap: 2px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.flow li:first-child { border-top: 0; }
.flow .dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.d1 { background: var(--onix-red); } .d2 { background: var(--maize); box-shadow: inset 0 0 0 1px #A48E01; }
.d3 { background: var(--berry-blue); } .d4 { background: var(--munsell-blue); }
.flow strong { font-size: 16px; }
.flow em { font-style: normal; color: var(--text-muted); font-size: 14px; }

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--midnight-blue); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tint { background: var(--surface-tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.section-lede { margin-top: 14px; font-size: 18px; color: var(--text-muted); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool {
  --tone: var(--midnight-blue);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius-card);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.tool::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.tool h3 { font-size: 20px; font-weight: 700; margin-top: 6px; }
.tool p { color: var(--text-muted); font-size: 15px; }
.tool-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.tool-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); background: var(--tone);
}
.tool-logo { height: 40px; width: auto; }
.lock {
  font-size: 12px; font-weight: 600; color: var(--text-faint);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.lock::before { content: '🔒'; margin-right: 5px; font-size: 11px; }
.tool-link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--tone); }
.tool:hover .tool-link span { display: inline-block; transform: translateX(3px); transition: transform .18s ease; }

.tool-feature {
  --tone: var(--onix-red);
  grid-row: span 2;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(254, 237, 125, 0.35), transparent 60%),
    linear-gradient(160deg, #FFF4F4 0%, var(--white) 60%);
}
.tool-feature h3 { font-size: 26px; }
.tool-feature p { font-size: 16px; }
.tool-feature .tool-link { color: #B44E4E; }

.t-blue { --tone: var(--munsell-blue); }
.t-blue .tool-link { color: #257883; }
.t-berry { --tone: var(--berry-blue); }
.t-green { --tone: var(--midnight-green); }
.t-amaranth { --tone: var(--amaranth); }

/* Platforms */
.platform-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 20px 22px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--border); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.platform strong { font-size: 17px; color: var(--midnight-blue); }
.platform strong::after { content: ' ↗'; color: var(--text-faint); font-weight: 500; font-size: 14px; }
.platform span { font-size: 14px; color: var(--text-muted); }
.platform:hover { border-color: var(--onix-red); box-shadow: var(--shadow-card); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { padding: 28px 24px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--white); }
.step-num {
  display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: 0.08em;
  color: var(--white); background: var(--midnight-blue); padding: 4px 10px; border-radius: var(--radius-pill);
}
.step:nth-child(2) .step-num { background: var(--berry-blue); }
.step:nth-child(3) .step-num { background: var(--onix-red); }
.step:nth-child(4) .step-num { background: var(--midnight-green); }
.step h3 { font-size: 20px; margin-top: 16px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* CTA */
.cta { background: linear-gradient(270deg, var(--maize) -20%, var(--onix-red) 100%); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--satin-black); }
.cta p { margin-top: 8px; font-size: 17px; font-weight: 500; color: var(--satin-black); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--satin-black); color: rgba(255, 255, 255, 0.82); }
.footer-row { display: flex; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 32px; flex-wrap: wrap; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.footer-links a { text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--maize); }
.footer-base { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.72); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-feature { grid-row: auto; grid-column: span 2; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .mobile-nav { display: block; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .flow-card { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .section { padding: 64px 0; }
  .tool-grid, .platform-grid, .steps { grid-template-columns: 1fr; }
  .tool-feature { grid-column: auto; }
  .stat-num { font-size: 32px; }
  .brand-label { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
