/* ============================================================
   VeriClad — DoubleMind LLC
   Design tokens + global styles
   ============================================================ */

:root {
  /* Dark / navy scale */
  --navy-900: #08172b;
  --navy-850: #0a1c34;
  --navy-800: #0b1f3a;
  --navy-700: #13294b;
  --navy-600: #1c3a63;
  --navy-500: #294e80;

  /* Light surfaces */
  --paper:   #f5f8fb;
  --paper-2: #ffffff;
  --line:    #e3e9f0;
  --line-2:  #d3dde8;

  /* Ink / text */
  --ink:     #0d1c30;
  --ink-2:   #34465c;
  --slate:   #61748a;

  /* Accent — teal / electric */
  --teal:        #2dd4bf;
  --teal-bright: #46e6d2;
  --teal-deep:   #0c8a78;   /* readable on light */
  --teal-glow:   rgba(45, 212, 191, 0.25);

  /* Severity */
  --sev-critical: #b91c1c;
  --sev-high:     #ea580c;
  --sev-medium:   #ca8a04;
  --sev-low:      #2563eb;
  --sev-info:     #64748b;

  /* Type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-card: 0 1px 2px rgba(13, 28, 48, 0.04), 0 12px 32px -16px rgba(13, 28, 48, 0.18);
  --shadow-pop: 0 24px 60px -24px rgba(8, 23, 43, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

section { padding-block: clamp(72px, 9vw, 132px); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--teal-deep);
  opacity: 0.6;
}
.dark .eyebrow { color: var(--teal); }
.dark .eyebrow::before { background: var(--teal); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 18px;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-2);
}
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #aebfd2; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.22,1,.36,1), background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
/* shine sweep — sits above background, below text */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,0.5) 50%, transparent 62%);
  background-size: 220% 100%; background-position: 160% 0;
  transition: background-position .6s ease;
}
.btn:hover::before { background-position: -60% 0; }
/* scan-target reticle — four corner brackets that lock on at hover */
.btn::after {
  content: ""; position: absolute; inset: -6px; z-index: 1;
  pointer-events: none; opacity: 0; transform: scale(1.06);
  --rc: var(--teal); --rl: 11px; --rt: 2px;
  transition: opacity .2s ease, transform .2s cubic-bezier(.22,1,.36,1), inset .2s ease;
  background:
    linear-gradient(var(--rc),var(--rc)) left top,
    linear-gradient(var(--rc),var(--rc)) left top,
    linear-gradient(var(--rc),var(--rc)) right top,
    linear-gradient(var(--rc),var(--rc)) right top,
    linear-gradient(var(--rc),var(--rc)) left bottom,
    linear-gradient(var(--rc),var(--rc)) left bottom,
    linear-gradient(var(--rc),var(--rc)) right bottom,
    linear-gradient(var(--rc),var(--rc)) right bottom;
  background-repeat: no-repeat;
  background-size:
    var(--rl) var(--rt), var(--rt) var(--rl),
    var(--rl) var(--rt), var(--rt) var(--rl),
    var(--rl) var(--rt), var(--rt) var(--rl),
    var(--rl) var(--rt), var(--rt) var(--rl);
}
.btn:hover::after { opacity: 1; transform: scale(1); inset: -7px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--teal);
  color: #04241f;
  box-shadow: 0 8px 22px -10px var(--teal-glow);
}
.btn-primary:hover { background: var(--teal-bright); box-shadow: 0 12px 28px -10px var(--teal-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost { color: #fff; border-color: var(--navy-500); }
.dark .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 24, 44, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 20px; letter-spacing: -0.01em; color: #fff;
}
.brand .mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
}
.brand .mark svg { width: 100%; height: 100%; }
.brand .mark img {
  width: 100%; height: 100%; object-fit: contain;
  /* 標誌圖已轉透明背景；放大一點補償光暈留邊 */
  transform: scale(1.45);
}
.brand small {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.08em; color: #6f86a3; display: block; margin-top: 1px;
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px; color: #dce6f2; font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.btn-primary { color: #04241f; }
.nav-links a.btn-primary:hover { color: #04241f; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(45,212,191,0.10), transparent 60%),
    var(--navy-800);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 128px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 600px at 75% 10%, #000 0%, transparent 75%);
          mask-image: radial-gradient(900px 600px at 75% 10%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  color: #fff;
  letter-spacing: -0.03em;
}
.hero-copy h1 .accent { color: var(--teal); }
.hero-copy .lede {
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 21px);
  color: #b4c4d7;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 22px 30px;
  font-size: 13.5px; color: #8ea1b8;
  font-family: var(--f-mono); letter-spacing: 0.01em;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
}

/* badge pill */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(45,212,191,0.10);
  border: 1px solid rgba(45,212,191,0.28);
  color: var(--teal); margin-bottom: 22px; white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- Hero dashboard mockup ---------- */
.scan-card {
  position: relative;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-850));
  border: 1px solid var(--navy-600);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
}
.scan-card-top {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top-left-radius: 18px; border-top-right-radius: 18px;
  font-family: var(--f-mono); font-size: 12.5px; color: #8ea1b8;
}
.scan-card-top .dots { display: flex; gap: 6px; margin-right: 6px; }
.scan-card-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-500); display: block; }
.scan-card-top .url { color: #c9d6e5; }
.scan-card-top .live {
  margin-left: auto; color: var(--teal);
  display: inline-flex; align-items: center; gap: 7px;
}
.scan-card-top .live::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 1.4s infinite; }
.scan-card-body { padding: 22px; }

.scan-progress-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.scan-progress-row .lbl { font-size: 13px; color: #9fb1c6; font-family: var(--f-mono); }
.scan-progress-row .pct { font-family: var(--f-display); font-size: 22px; color: #fff; font-weight: 600; }
.scan-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.scan-bar i { display:block; height:100%; width: 68%; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }

.scan-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }
.scan-stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 13px 14px; }
.scan-stat .n { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1; }
.scan-stat .t { font-size: 11.5px; color: #8ea1b8; margin-top: 6px; font-family: var(--f-mono); letter-spacing: 0.03em; }
.scan-stat.crit .n { color: #ff6b6b; }
.scan-stat.high .n { color: #ffa057; }
.scan-stat.med  .n { color: #ffd166; }

.scan-feed { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,0.06); }
.scan-feed-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13.5px;
}
.scan-feed-item:last-child { border-bottom: 0; }
.scan-feed-item .sev-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.scan-feed-item .name { color: #d6e1ee; flex: 1; }
.scan-feed-item .tag { font-family: var(--f-mono); font-size: 11px; color: #7f93ab; }

/* ---------- Severity badges (shared) ---------- */
.sev-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  letter-spacing: 0.02em;
}
.sev-badge .d { width: 8px; height: 8px; border-radius: 50%; }
.sev-critical { color: var(--sev-critical); background: #fbe9e9; }
.sev-critical .d { background: var(--sev-critical); }
.sev-high { color: var(--sev-high); background: #fdeee2; }
.sev-high .d { background: var(--sev-high); }
.sev-medium { color: #94660a; background: #fbf3df; }
.sev-medium .d { background: var(--sev-medium); }
.sev-low { color: var(--sev-low); background: #e7eefe; }
.sev-low .d { background: var(--sev-low); }
.sev-info { color: var(--sev-info); background: #eef1f5; }
.sev-info .d { background: var(--sev-info); }
