/* ============================================================
   Sentrock marketing site — dark theme, mobile-first, no framework.
   All colors + spacing as CSS variables.
   ============================================================ */
:root {
  --bg:            #0A0E1A;
  --bg-2:          #0F1421;
  --bg-3:          #141B2D;
  --card:          #121829;
  --card-hover:    #161E32;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(124, 58, 237, 0.45);

  --accent:        #7C3AED;
  --accent-2:      #A855F7;
  --accent-teal:   #A78BFA;
  --gradient:      linear-gradient(120deg, #7C3AED 0%, #A855F7 100%);

  --text:          #F2F5FA;
  --text-muted:    #9AA6BD;
  --text-dim:      #6B7688;

  --healthy:       #34D399;
  --degraded:      #FBBF24;
  --unhealthy:     #F87171;

  --maxw:          1200px;
  --radius:        14px;
  --radius-sm:     10px;

  --font:          'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.accent-text { color: var(--accent); }
.mono { font-family: var(--mono); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(124,58,237,.25); }
.btn-primary:hover { background: #6D28D9; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124,58,237,.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(124,58,237,.08); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0A0E1A; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ---------------- Nav ----------------
   Scoped to #navbar so these fixed-position rules DON'T also apply to the
   footer's <nav class="footer-col"> columns (which would pin them top-left). */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
  /* Stable GPU layer so the frosted backdrop-filter doesn't shimmer while the
     hero mesh drifts behind it. */
  transform: translateZ(0);
}
#navbar.scrolled {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-name { color: var(--text); }
.nav-links { display: none; gap: 30px; }
.nav-link { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .15s ease; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--gradient); border-radius: 2px;
}
.nav-ctas { display: none; align-items: center; gap: 16px; }
.nav-login { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-login:hover { color: var(--text); }

.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 24px;
  background: rgba(10,14,26,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.mobile-menu.open { max-height: 380px; }
.mobile-menu .nav-link { padding: 12px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 128px 0 64px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0;
  /* STATIC gradient — intentionally NOT animated. An animated glow drifting under
     the top nav re-composites against the frosted navbar every frame, which shows
     up as a top-corner flicker on real GPUs. A static gradient looks just as
     premium and is guaranteed steady everywhere. */
  background:
    radial-gradient(600px 380px at 20% 8%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(560px 360px at 84% 16%, rgba(139,92,246,.18), transparent 62%),
    radial-gradient(500px 300px at 60% 60%, rgba(168,85,247,.10), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero-headline {
  font-size: clamp(40px, 8.5vw, 76px); font-weight: 800; line-height: 1.04;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 40%, #D3CBEE 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: 22px; font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted); max-width: 560px; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual: mock dashboard card */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  width: 100%; max-width: 420px; background: linear-gradient(180deg, #141B2D, #0F1421);
  border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.mock-card-header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.mock-dot-row { margin-left: auto; display: inline-flex; gap: 5px; }
.mock-dot-row i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.mock-name { font-size: 14px; color: var(--text); }
.badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; font-family: var(--mono); }
.badge-healthy { color: var(--healthy); background: rgba(52,211,153,.12); }
.badge-degraded { color: var(--degraded); background: rgba(251,191,36,.12); }
.badge-unhealthy { color: var(--unhealthy); background: rgba(248,113,113,.12); }
/* Composited opacity glow (a pseudo-element fading in/out) instead of animating
   box-shadow, which repaints the element each frame. */
.badge.pulse { position: relative; }
.badge.pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(52,211,153,.16); opacity: 0;
  animation: badgeGlow 2.4s ease-in-out infinite; pointer-events: none;
}
@keyframes badgeGlow { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.mock-sparkline { margin-top: 14px; }
.spark-path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.6s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Trust strip */
.trust-strip { position: relative; z-index: 1; margin-top: 72px; text-align: center; }
.trust-caption { color: var(--text-dim); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.logo-bar { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.logo-ph {
  height: 46px; border: 1px dashed var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 10px; letter-spacing: .05em;
}

/* ---------------- Problem ---------------- */
.problem { background: var(--bg-2); padding: 88px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 40px; align-items: start; }
.problem-col h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.problem-col p { color: var(--text-muted); font-size: 16px; }
.problem-divider { display: none; }

/* ---------------- Section heads ---------------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section-sub { margin-top: 16px; color: var(--text-muted); font-size: 17px; }

/* ---------------- Cards (shared) ---------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------------- Features ---------------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card { padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-hover); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.22); margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* ---------------- Security ----------------
   Reuses .feature-grid / .feature-card (violet icons, same as features);
   only the section background differs so it reads as a distinct band. */
.security { background: var(--bg-2); }

/* ---------------- Product showcase ---------------- */
.showcase { background: var(--bg); }
.showcase-shot { margin: 0 auto; max-width: 1040px; }
.showcase-shot + .showcase-shot { margin-top: 56px; }
.shot-secondary { max-width: 940px; }
.showcase-shot figcaption {
  margin-top: 16px; text-align: center; font-size: 14px; color: var(--text-dim);
}
.browser-frame {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: #0B1120;
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(124,58,237,.10);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: #0E1524; border-bottom: 1px solid var(--border);
}
.browser-dots { display: inline-flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; text-align: center; font-size: 12px; color: var(--text-dim);
  background: #0B1120; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px;
  max-width: 340px; margin: 0 auto;
}
.browser-frame img { display: block; width: 100%; height: auto; }

/* ---------------- How it works ---------------- */
.how { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; }
.step { position: relative; padding: 30px 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step-num {
  position: absolute; top: 8px; right: 18px; font-size: 80px; font-weight: 800;
  color: rgba(255,255,255,.04); letter-spacing: -.04em; line-height: 1;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; position: relative; }
.step p { color: var(--text-muted); font-size: 15px; position: relative; }

/* ---------------- Pricing ---------------- */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tier-card { padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.tier-badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,.05); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.tier-badge-popular { color: #fff; background: var(--gradient); border-color: transparent; }
.tier-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tier-tag { color: var(--text-muted); font-size: 14px; margin: 6px 0 20px; }
.tier-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.tier-features li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text); }
.tier-features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: rgba(52,211,153,.16); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.tier-popular { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(124,58,237,.35), 0 24px 60px rgba(124,58,237,.18); }

/* ---------------- About ---------------- */
.about { background: var(--bg-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.about-inner h2 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 20px; }
.about-inner p { color: var(--text-muted); font-size: 18px; }
.text-link { display: inline-block; margin-top: 24px; color: var(--accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------------- Final CTA ---------------- */
.final-cta { padding: 96px 0; background: linear-gradient(120deg, #123, #0A0E1A); position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(124,58,237,.28), rgba(139,92,246,.28));
  opacity: .9;
}
.final-cta-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.final-cta-inner h2 { font-size: clamp(30px, 5.5vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.final-cta-inner p { margin-top: 16px; color: rgba(255,255,255,.85); font-size: 18px; }
.final-cta-inner .hero-ctas { justify-content: center; margin-top: 30px; }

/* ---------------- Footer ---------------- */
footer { background: #070A12; border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-tag { color: var(--text-muted); font-size: 14px; margin: 16px 0 10px; max-width: 260px; }
.footer-copy { color: var(--text-dim); font-size: 13px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 15px; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.footer-social a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }

/* ============================================================
   Responsive — tablet (768px) and desktop (1200px)
   ============================================================ */
@media (min-width: 768px) {
  .logo-bar { grid-template-columns: repeat(5, 1fr); }
  .problem-grid { grid-template-columns: 1fr 1px 1fr; gap: 56px; }
  .problem-divider { display: block; background: var(--border); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .steps::before {
    content: ""; position: absolute; top: 52px; left: 12%; right: 12%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.4), transparent);
  }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .final-cta-inner .hero-ctas .btn { min-width: 180px; }
}

@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .nav-ctas { display: flex; }
  .menu-toggle { display: none; }
  /* The mobile menu isn't used on desktop — remove it entirely so its collapsed
     state can't peek a sliver below the navbar. */
  .mobile-menu { display: none; }
  .hero { padding: 168px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-sub { font-size: 20px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .spark-path { stroke-dashoffset: 0; }
}
