/* ============================================================
   SentinelCore — style.css
   Premium enterprise cybersecurity theme (dark)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0A0F1C;
  --bg-alt:    #0c1322;
  --card:      #111827;
  --card-hover:#151f33;
  --primary:   #2563EB;
  --primary-600:#1d4ed8;
  --accent:    #06B6D4;
  --text:      #FFFFFF;
  --muted:     #94A3B8;
  --border:    #1E293B;
  --border-soft:#22304a;

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

  --shadow:    0 20px 45px -20px rgba(0,0,0,.7);
  --ring:      0 0 0 3px rgba(37,99,235,.35);

  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.section-lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem; padding: 12px 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.6); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(37,99,235,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; padding: 14px; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,28,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(10,15,28,.9); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-text { font-size: 1.12rem; letter-spacing: -.01em; }
.logo-accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .93rem; color: var(--muted); font-weight: 500; transition: color .18s var(--ease); }
.nav-links a:hover { color: var(--text); }
.btn-nav { color: #fff !important; }

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

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 78% 28%, rgba(37,99,235,.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }

.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.hero-sub { color: var(--muted); font-size: 1.12rem; margin: 22px 0 32px; max-width: 540px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust strong { color: var(--text); font-weight: 700; margin-right: 4px; }

.hero-svg { width: 100%; max-width: 460px; margin: 0 auto; }
.draw-check { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.1s var(--ease) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.orbit { transform-origin: 230px 200px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards (services / industries) ---------- */
.card, .industry, .feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.card:hover, .industry:hover, .feature:hover {
  transform: translateY(-4px); border-color: var(--border-soft); background: var(--card-hover);
}
.card h3, .industry h3, .feature h3 { font-size: 1.16rem; font-weight: 650; margin-bottom: 10px; letter-spacing: -.01em; }
.card p, .industry p, .feature p { color: var(--muted); font-size: .96rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(6,182,212,.14));
  color: var(--accent); border: 1px solid var(--border-soft);
}
.card-icon svg { width: 24px; height: 24px; }

.feature-num { font-size: .82rem; font-weight: 700; color: var(--primary); letter-spacing: .1em; margin-bottom: 14px; }

/* ---------- Dashboard showcase ---------- */
.dashboard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); max-width: 1000px; margin: 0 auto;
}
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: #0d1424;
}
.dash-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.dash-status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.5);} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px; }
.dash-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.dash-primary { grid-column: span 2; }
.dash-wide { grid-column: span 4; }
.dash-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dash-metric { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.dash-meta { font-size: .82rem; color: var(--muted); }
.dash-meta.up { color: #34d399; }

.spark { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 8px; }
.spark span { flex: 1; background: linear-gradient(to top, var(--primary), var(--accent)); border-radius: 3px 3px 0 0; }

.mini-ring { width: 46px; height: 46px; border-radius: 50%; margin-top: 6px;
  background: conic-gradient(var(--accent) 0 78%, var(--border) 78% 100%); display: grid; place-items: center; }
.mini-ring span { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); }

.score-bar { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; margin-top: 8px; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 6px; }

.asset-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.asset-chips span { font-size: .72rem; padding: 3px 9px; border-radius: 20px; background: rgba(37,99,235,.14); color: #cbd5e1; border: 1px solid var(--border-soft); }

.timeline-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.timeline-feed li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #cbd5e1; flex-wrap: wrap; }
.timeline-feed em { color: var(--muted); font-style: normal; font-size: .78rem; margin-left: auto; }
.tl-tag { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; }
.tl-tag.resolved { background: rgba(34,197,94,.14); color: #4ade80; }
.tl-tag.review { background: rgba(234,179,8,.14); color: #facc15; }
.tl-tag.info { background: rgba(37,99,235,.16); color: #60a5fa; }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: none; }
.process::before {
  content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .5;
}
.process-step { text-align: center; position: relative; }
.process-node {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--card); border: 2px solid var(--primary); color: #fff; position: relative; z-index: 1;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: .88rem; }

/* ---------- Statistics ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 22px; }
.stat-num { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s var(--ease); }
.faq-item.open { border-color: var(--border-soft); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-size: 1.02rem; font-weight: 550; padding: 20px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: inherit;
}
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-points li { color: var(--muted); position: relative; padding-left: 28px; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 7px; color: #cbd5e1; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #556075; }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.18); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field .invalid { border-color: #ef4444; }
.form-note { margin-top: 12px; font-size: .9rem; min-height: 20px; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-tag { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #cbd5e1; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .93rem; margin-bottom: 10px; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .hero-svg { max-width: 340px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process::before { display: none; }
  .dash-primary { grid-column: span 4; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; transform: translateY(-140%);
    transition: transform .32s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .btn-nav { margin-top: 14px; border-bottom: 0 !important; }
  .hamburger { display: flex; }

  .section { padding: 72px 0; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .stats { gap: 34px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-primary, .dash-wide { grid-column: span 2; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
}

@media (max-width: 420px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-primary, .dash-wide { grid-column: span 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
}
