/* =========================================================================
   NewsGlobalERP — Documentation Hub (landing page)
   landing.css
   Shares the brand violet palette used by the doc sites.
   ========================================================================= */

:root {
  --brand-primary: #722af8;
  --brand-primary-rgb: 114, 42, 248;
  --brand-dark: #20005c;
  --brand-light: #d3befb;
  --brand-tint: #f9f9ff;

  --ink-900: #101010;
  --ink-700: #2a2a33;
  --ink-600: #434343;
  --ink-400: #6b6b78;
  --line-200: #e0e0e0;
  --surface: #ffffff;
  --surface-2: #f9f9ff;

  --brand-gradient: linear-gradient(135deg, #722af8 0%, #20005c 100%);

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 16, .05);
  --shadow: 0 10px 30px rgba(32, 0, 92, .08);
  --shadow-lg: 0 24px 60px rgba(32, 0, 92, .16);

  --maxw: 1120px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", var(--font-sans);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(var(--brand-primary-rgb), .12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(211, 190, 251, .35), transparent 55%),
    var(--surface-2);
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.2; }
a { text-decoration: none; color: inherit; }

.ext-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------- Top bar --------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-200);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 21px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--ink-900); font-size: 16px; }
.brand__sub { font-size: 12.5px; color: var(--ink-400); }
.topbar__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-600);
  padding: 9px 14px;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .2s, color .2s;
}
.topbar__link:hover { border-color: var(--brand-light); color: var(--brand-primary); }

/* -------------------------------- Page ----------------------------------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 24px; }

/* -------------------------------- Hero ----------------------------------- */
.hero { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--surface);
  border: 1px solid var(--brand-light);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero__title { font-size: 48px; font-weight: 800; margin: 0 0 18px; letter-spacing: -.02em; }
.hero__grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead { font-size: 18px; color: var(--ink-600); margin: 0 auto 24px; max-width: 64ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-size: 13px; font-weight: 500;
  color: var(--ink-600);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: 999px;
  padding: 6px 14px;
}

/* -------------------------------- Cards ---------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity .22s ease;
}
.card:not(.card--soon):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.card:not(.card--soon):hover::before { opacity: 1; }

.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-light);
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brand-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card__tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 8px;
}
.card__title { font-size: 21px; margin: 0 0 10px; }
.card__desc { font-size: 14.5px; color: var(--ink-600); margin: 0 0 22px; flex: 1 1 auto; }

.card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--brand-primary);
}
.card__cta .arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.card:hover .card__cta .arrow { transform: translateX(4px); }
.card__cta--muted { color: var(--ink-400); }

/* Coming soon card */
.card--soon { opacity: .72; cursor: not-allowed; box-shadow: var(--shadow-sm); }
.card--soon .card__icon { background: var(--surface-2); border-color: var(--line-200); }
.card--soon .card__icon svg { stroke: var(--ink-400); }

/* ----------------------------- Highlights -------------------------------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.highlight { text-align: left; }
.highlight__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-tint);
  margin-bottom: 12px;
}
.highlight__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.highlight h3 { font-size: 16px; margin: 0 0 5px; }
.highlight p { font-size: 14px; color: var(--ink-400); margin: 0; }

/* ------------------------------- Footer ---------------------------------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 22px 48px;
  text-align: center;
}
.footer p { font-size: 13px; color: var(--ink-400); margin: 0; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 720px) {
  .page { padding-top: 38px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
}
