/* ============================================================
   DataSentry — Stylesheet
   Mobile-first, dark cyber aesthetic
   ============================================================ */

:root {
  --bg:           #080C12;
  --bg-card:      #0E1420;
  --bg-card2:     #111926;
  --border:       rgba(0, 200, 255, 0.1);
  --border-hover: rgba(0, 200, 255, 0.3);
  --cyan:         #00C8FF;
  --cyan-dim:     rgba(0, 200, 255, 0.15);
  --cyan-glow:    rgba(0, 200, 255, 0.06);
  --red:          #FF4757;
  --red-dim:      rgba(255, 71, 87, 0.12);
  --green:        #00E676;
  --green-dim:    rgba(0, 230, 118, 0.12);
  --text:         #E0E8F0;
  --text-muted:   #5E7A8A;
  --text-sub:     #8A9BAA;
  --font-head:    'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 18, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}
.nav__logo strong { color: var(--cyan); }
.logo-icon { font-size: 1.3rem; color: var(--cyan); }

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--cyan); opacity: 1; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,200,255,0.12), transparent 70%);
  top: -120px; left: 50%;
  transform: translateX(-50%);
}
.orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,71,87,0.08), transparent 70%);
  bottom: 0; right: -100px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge__dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #7B61FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-sub);
  max-width: 520px;
  line-height: 1.7;
}
.hero__sub em { color: var(--cyan); font-style: normal; }

/* ── CHECK CARD ──────────────────────────────────────────── */
.check-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 0 60px rgba(0,200,255,0.05), 0 20px 60px rgba(0,0,0,0.4);
  margin-top: 8px;
  transition: border-color 0.3s;
}
.check-card:focus-within { border-color: var(--border-hover); }

.check-form { display: flex; flex-direction: column; gap: 12px; }

.input-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-group:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}

.input-icon {
  padding: 0 12px 0 16px;
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 8px;
  min-width: 0;
}
.input-group input::placeholder { color: var(--text-muted); }

.input-group button {
  flex-shrink: 0;
  background: var(--cyan);
  color: #060a10;
  border: none;
  padding: 0 24px;
  height: 52px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-group button:hover { background: #33d6ff; }
.input-group button:active { transform: scale(0.97); }
.input-group button:disabled { background: var(--text-muted); cursor: not-allowed; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(6,10,16,0.3);
  border-top-color: #060a10;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── RESULT ──────────────────────────────────────────────── */
.result { margin-top: 8px; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-safe {
  background: var(--green-dim);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.result-safe .r-icon { font-size: 1.8rem; flex-shrink: 0; }
.result-safe h3 { color: var(--green); font-family: var(--font-head); font-weight: 700; margin-bottom: 4px; }
.result-safe p { font-size: 0.88rem; color: var(--text-sub); }

.result-breached-header {
  background: var(--red-dim);
  border: 1px solid rgba(255,71,87,0.3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.result-breached-header .r-icon { font-size: 1.8rem; flex-shrink: 0; }
.result-breached-header h3 { color: var(--red); font-family: var(--font-head); font-weight: 700; margin-bottom: 4px; }
.result-breached-header p { font-size: 0.88rem; color: var(--text-sub); }

.breach-list { display: flex; flex-direction: column; gap: 10px; }

.breach-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.breach-item:hover { border-color: var(--border-hover); }

.breach-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breach-item__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.breach-item__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.breach-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag {
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.15);
  color: var(--cyan);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.tag--sensitive {
  background: rgba(255,71,87,0.1);
  border-color: rgba(255,71,87,0.2);
  color: var(--red);
}

.breach-item__detail {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: none;
}
.breach-item__detail.open { display: block; }

.breach-count-badge {
  display: inline-flex;
  align-items: center;
  background: var(--red-dim);
  border: 1px solid rgba(255,71,87,0.3);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.result-error {
  background: rgba(255,165,0,0.08);
  border: 1px solid rgba(255,165,0,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #FFA500;
  font-size: 0.88rem;
}

/* ── STATS ───────────────────────────────────────────────── */
.stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── SECTIONS ────────────────────────────────────────────── */
.how, .tips {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--text-sub);
  font-size: 1rem;
}

/* ── STEPS ───────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.step__num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step__icon { font-size: 2rem; margin-bottom: 12px; }
.step h3 { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-sub); }

.step__arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── TIPS ────────────────────────────────────────────────── */
.tips { background: var(--bg-card); }

.tips__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.tip-card:hover { border-color: var(--border-hover); }
.tip-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.tip-card h3 { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 8px; font-size: 1rem; }
.tip-card p { font-size: 0.875rem; color: var(--text-sub); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 60px;
}
.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__links a { font-size: 0.875rem; color: var(--text-sub); }
.footer__links a:hover { color: var(--cyan); opacity: 1; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer__bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ── ABOUT / FAQ PAGES ───────────────────────────────────── */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero p { color: var(--text-sub); font-size: 1rem; max-width: 520px; margin: 0 auto; }

.content-section { padding: 0 0 80px; }

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.content-block h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
}
.content-block p, .content-block li {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.content-block ul { padding-left: 20px; }
.content-block li { margin-bottom: 6px; }

/* FAQ accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-arrow { color: var(--cyan); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.8;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

/* ── BURGER MENU ─────────────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-sub);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__burger { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(8, 12, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-sub);
    border: 1px solid transparent;
    transition: all var(--transition);
  }
  .nav__links a:hover {
    color: var(--cyan);
    background: var(--cyan-dim);
    border-color: var(--border);
    opacity: 1;
  }

  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }
  .step__arrow { transform: rotate(90deg); text-align: center; }

  .tips__grid { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; gap: 32px; }

  .stats__grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .input-group { flex-wrap: wrap; border-radius: var(--radius); }
  .input-group input { padding: 14px 12px; }
  .input-group button { width: 100%; justify-content: center; height: 48px; border-radius: 0 0 var(--radius) var(--radius); }
  .input-icon { padding: 14px 8px 14px 14px; }

  .check-card { padding: 22px 18px 18px; }
  .hero { min-height: auto; padding: 60px 0 50px; }
  .content-block { padding: 22px 20px; }
}

@media (max-width: 480px) {
  .badge { font-size: 0.7rem; padding: 5px 12px; }
}
