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

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #09090b;
  color: #fafafa;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Background ─── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-blue {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: rgba(59, 130, 246, 0.08);
}

.orb-purple {
  width: 400px;
  height: 400px;
  top: -50px;
  right: -50px;
  background: rgba(168, 85, 247, 0.06);
}

.orb-cyan {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34, 211, 238, 0.05);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 24px);
  max-width: 720px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fafafa;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fafafa; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #09090b;
  background: #fafafa;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.85; }

.mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}

.mobile-menu a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.05); color: #fafafa; }

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-btn { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-content { max-width: 640px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(to right, #52525b, #d4d4d8, #52525b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #71717a;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ─── Input ─── */
.input-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: border-color 0.3s;
}

.input-wrap:focus-within {
  border-color: rgba(34, 197, 94, 0.3);
}

.input-icon { color: #52525b; flex-shrink: 0; }

.input-wrap input {
  flex: 1;
  padding: 14px 0;
  font-size: 14px;
  font-family: inherit;
  color: #fafafa;
  background: transparent;
  border: none;
  outline: none;
}

.input-wrap input::placeholder { color: #52525b; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #09090b;
  background: #fafafa;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.input-error {
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  margin-top: -4px;
}

.hidden { display: none !important; }

/* ─── Stats ─── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #52525b;
  margin-top: 4px;
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.section-inner { max-width: 800px; margin: 0 auto; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #71717a;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ─── Scan Card ─── */
.scan-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
}

.scan-left h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scan-left p {
  font-size: 14px;
  color: #71717a;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cmd-box:hover {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.35);
}

.cmd-label {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #22c55e;
  user-select: none;
}

.cmd-copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #a1a1aa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cmd-copy:hover {
  background: rgba(255,255,255,0.1);
  color: #fafafa;
  border-color: rgba(255,255,255,0.15);
}

.cmd-copy.copied {
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}

.cmd-feedback {
  font-size: 12px;
  color: #22c55e;
  margin-bottom: 16px;
}

.scan-list {
  list-style: none;
  margin-top: 20px;
}

.scan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: #a1a1aa;
}

/* ─── Terminal ─── */
.scan-terminal {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  margin-left: 8px;
  font-size: 11px;
  color: #52525b;
}

.terminal-body {
  padding: 16px;
  line-height: 1.8;
}

.t-dim { color: #52525b; }
.t-green { color: #22c55e; }
.t-white { color: #d4d4d8; }
.t-yellow { color: #eab308; }
.t-cyan { color: #22d3ee; }
.t-space { height: 8px; }

@media (max-width: 640px) {
  .scan-card { grid-template-columns: 1fr; padding: 24px; }
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: border-color 0.3s;
}

.feature-card:hover { border-color: rgba(255,255,255,0.1); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #71717a;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(255,255,255,0.1); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #d4d4d8;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-chevron {
  color: #52525b;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #71717a;
}

.faq-a code {
  font-family: 'SF Mono', monospace;
  padding: 2px 6px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #22c55e;
}

/* ─── Result ─── */
#result-container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: -40px auto 0;
  padding: 0 24px;
}

.result-card {
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  animation: resultIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-risk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.risk-low { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.risk-medium { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.2); color: #facc15; }
.risk-high { background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2); color: #fb923c; }
.risk-critical { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.result-cell {
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
}

.result-cell-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #52525b;
  margin-bottom: 4px;
}

.result-cell-value {
  font-size: 15px;
  font-weight: 600;
  color: #d4d4d8;
  word-break: break-all;
}

.result-cell-value.mono {
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  color: #22c55e;
}

.result-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.status-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.6); }
.status-dot.yellow { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.6); }
.status-dot.orange { background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,0.6); }

.result-footer {
  font-size: 11px;
  color: #3f3f46;
  text-align: center;
  margin-top: 16px;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  font-size: 12px;
  color: #3f3f46;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
