/* =========================================================
   GRC Platform — Static Site Stylesheet
   Pure handwritten CSS. No frameworks. Portable to Laravel.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --navy: #0A1F44;
  --navy-700: #112a55;
  --navy-600: #1a3a72;
  --blue: #1E6BFF;
  --blue-600: #1857d6;
  --cyan: #22D3EE;
  --white: #ffffff;
  --grey-50: #f7f9fc;
  --grey-100: #eef2f7;
  --grey-200: #dde3ec;
  --grey-300: #c5cdda;
  --grey-500: #6b7384;
  --grey-700: #3a4252;
  --text: #0f172a;
  --muted: #5b6578;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10,31,68,.06);
  --shadow: 0 8px 24px rgba(10,31,68,.08);
  --shadow-lg: 0 20px 50px rgba(10,31,68,.18);

  --container: 1200px;
  --gutter: 24px;

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  --grad-hero: linear-gradient(135deg, #0A1F44 0%, #112a55 45%, #1E6BFF 100%);
  --grad-blue: linear-gradient(135deg, #1E6BFF 0%, #22D3EE 100%);
  --grad-soft: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 .6em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--grey-700); }
.lead { font-size: 1.125rem; color: var(--grey-700); }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy); color: #d6def0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b6c2dc; }
.section--grey { background: var(--grey-50); }
.text-center { text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 20px rgba(30,107,255,.35); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(30,107,255,.45); }
.btn-outline { border: 1.5px solid var(--grey-200); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(10,31,68,.08);
  border-bottom-color: var(--grey-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-family: var(--font-display); font-size: 1.25rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--grad-blue);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 6px 14px rgba(30,107,255,.35);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--navy); font-weight: 500; font-size: .95rem;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { background: var(--grey-50); color: var(--blue); }
.nav-links a.is-active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(720px, 92vw); background: #fff;
  border: 1px solid var(--grey-100); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px;
}
.has-mega.is-open .mega,
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; gap: 12px; padding: 12px; border-radius: 10px;
  color: var(--navy);
}
.mega a:hover { background: var(--grey-50); }
.mega .ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(30,107,255,.1); color: var(--blue);
  display: grid; place-items: center; flex-shrink: 0;
}
.mega .t { font-weight: 600; display: block; }
.mega .d { font-size: .85rem; color: var(--muted); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: transform .25s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: 100px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(34,211,238,.25), transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(30,107,255,.4), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: #c8d4ee; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: .85rem; color: #d6e0f5; margin-bottom: 20px;
}
.hero-mock {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  background: #fff;
}
.hero-page { padding: 90px 0 70px; background: var(--grad-soft); text-align: center; }
.hero-page h1 { margin-bottom: 16px; }
.hero-page p { color: var(--muted); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }

/* ---------- Logo cloud ---------- */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100);
}
.logos .logo {
  height: 38px; display: grid; place-items: center;
  color: var(--grey-500); font-weight: 700; letter-spacing: .04em;
  opacity: .85; transition: opacity .2s, color .2s;
}
.logos .logo:hover { opacity: 1; color: var(--navy); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(30,107,255,.1); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 12px; }
.card .more { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

/* Module / solution card variant */
.module-card { position: relative; overflow: hidden; }
.module-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: var(--grad-blue); opacity: .08; border-radius: 50%;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--blue); line-height: 1; }
.stat .label { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.section--dark .stat .num { color: var(--cyan); }
.section--dark .stat .label { color: #b6c2dc; }

/* ---------- Alternating rows ---------- */
.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row-split.reverse > :first-child { order: 2; }
.row-split ul.checklist li {
  position: relative; padding: 8px 0 8px 32px; color: var(--grey-700);
}
.row-split ul.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(30,107,255,.12); color: var(--blue);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.t-track { overflow: hidden; }
.t-slides { display: flex; transition: transform .5s ease; }
.t-slide { min-width: 100%; padding: 0 8px; }
.t-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  border: 1px solid var(--grey-100); box-shadow: var(--shadow-sm);
  text-align: center; max-width: 800px; margin: 0 auto;
}
.t-card blockquote { font-size: 1.25rem; color: var(--navy); margin: 0 0 22px; font-weight: 500; line-height: 1.5; }
.t-card .who { display: flex; align-items: center; justify-content: center; gap: 12px; }
.t-card .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-blue); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.t-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-200); transition: background .2s, width .2s; }
.t-dots button.is-active { background: var(--blue); width: 28px; border-radius: 999px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  padding: 36px; position: relative; display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: transparent; background: var(--grad-hero); color: #fff;
  box-shadow: 0 30px 60px rgba(10,31,68,.25);
  transform: translateY(-8px);
}
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured p, .price-card.featured ul li { color: #c8d4ee; }
.price-card.featured ul li::before { color: var(--cyan); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: var(--navy);
  padding: 4px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
}
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.feat-list li { padding: 8px 0 8px 26px; position: relative; color: var(--grey-700); }
.feat-list li::before {
  content: "✓"; color: var(--blue); position: absolute; left: 0; font-weight: 700;
}

.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--grey-100); }
.compare-table th { background: var(--grey-50); font-family: var(--font-display); color: var(--navy); }
.compare-table td.center, .compare-table th.center { text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--grey-100); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.faq-q .chev { transition: transform .25s; color: var(--blue); flex-shrink: 0; }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 0 22px; color: var(--grey-700); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg);
  padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px;
  background: var(--cyan); opacity: .15; border-radius: 50%;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c8d4ee; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #06173a; color: #b6c2dc; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #b6c2dc; }
.site-footer a:hover { color: #fff; }
.site-footer ul li { padding: 6px 0; font-size: .92rem; }
.footer-brand p { color: #8a96b0; font-size: .92rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06); display: grid; place-items: center;
}
.socials a:hover { background: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #8a96b0; font-size: .88rem;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .9rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey-200);
  border-radius: 10px; font: inherit; color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,107,255,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/9; background: var(--grad-hero); position: relative; }
.post-thumb svg { width: 100%; height: 100%; }
.post-body { padding: 24px; }
.post-tag { display: inline-block; background: rgba(30,107,255,.1); color: var(--blue); padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; margin-bottom: 10px; letter-spacing: .04em; }
.post-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.post-meta { color: var(--muted); font-size: .85rem; }

.article {
  max-width: 760px; margin: 0 auto; padding: 60px 0;
}
.article h2 { margin-top: 2em; }
.article p, .article li { color: var(--grey-700); font-size: 1.05rem; line-height: 1.8; }
.article blockquote {
  border-left: 4px solid var(--blue); padding: 8px 20px; margin: 24px 0;
  color: var(--navy); font-style: italic; background: var(--grey-50); border-radius: 0 8px 8px 0;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .nav { position: relative; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--grey-100);
    padding: 16px; gap: 4px; box-shadow: var(--shadow);
    max-height: calc(100vh - 76px); overflow-y: auto;
    z-index: 60;
  }
  .nav-links.is-open > li > a,
  .nav-links.is-open > li > button { width: 100%; justify-content: space-between; }
  /* Mega menu collapsed by default on mobile, expand only when parent is open */
  .nav-links.is-open .mega {
    position: static; transform: none; width: 100%;
    box-shadow: none; border: none; padding: 0 0 0 16px;
    display: none; opacity: 1; visibility: visible;
    grid-template-columns: 1fr;
  }
  .nav-links.is-open .has-mega.is-open .mega { display: grid; }
  .nav-links.is-open .has-mega:hover .mega { display: none; }
  .nav-links.is-open .has-mega.is-open:hover .mega { display: grid; }

  .hero { padding: 70px 0 80px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .grid-6, .price-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row-split { grid-template-columns: 1fr; gap: 32px; }
  .row-split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 36px; }
  .cta-band .actions { justify-content: flex-start; }
  .price-card.featured { transform: none; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: .9rem; }
}
@media (max-width: 720px) {
  /* On phones, hide the desktop "Sign in" + "Request demo" buttons next to the
     hamburger — they overlap the brand. Keep only the brand and the hamburger. */
  .nav-cta .btn-primary { display: none; }
  .brand { font-size: 1.1rem; }
  .nav { height: 64px; }
  .nav-links.is-open { top: 64px; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .hero { padding: 56px 0 64px; }
  .hero p { font-size: 1.02rem; }
  .grid-2, .grid-3, .grid-4, .grid-6, .price-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-band { padding: 28px; }
  .cta-band .actions .btn { width: 100%; justify-content: center; }
  .t-card { padding: 28px 22px; }
  .t-card blockquote { font-size: 1.05rem; }
  .price-card { padding: 28px; }
  .article { padding: 40px 0; }
  .article p, .article li { font-size: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
