/* ═══════════════════════════════════════════════════════════════
   BugRadar – AI Insect Identifier
   Dark theme: black + white, danger gradient only for score
═══════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  cursor: default;
}
::-webkit-scrollbar { width: 0; height: 0; }
a, button { cursor: pointer; }
a { transition: color 0.2s ease, opacity 0.2s ease; }
img { display: block; }

/* ── Navigation ───────────────────────────────────────────── */
.nav-glass {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #fff; }

.nav-link-mob {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.2s ease;
}
.nav-link-mob:hover { color: #fff; }

/* Nav App Store mini button */
.btn-store-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-store-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Mobile menu */
.mob-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mob-menu.open { max-height: 360px; }

/* ── App Store Button ─────────────────────────────────────── */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: #000;
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background 0.2s ease;
}
.btn-store:hover {
  background: #f0f0f0;
  transform: scale(1.025) translateY(-2px);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.12);
}
.btn-store:active { transform: scale(0.98); }

.btn-store-lg {
  padding: 18px 36px;
  border-radius: 20px;
}
.btn-store-sm {
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform  0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }
[data-reveal][data-delay="6"] { transition-delay: 0.48s; }

/* ── Typography ───────────────────────────────────────────── */
.hero-heading {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
}
.danger-text {
  /* Gradient only for the danger word */
  background: linear-gradient(90deg, #FF9F0A 0%, #FF3B30 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 520px;
}
.section-heading {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
}
.section-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-heading {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
}

/* ── Pills / Badges ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.pill-dot {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-danger {
  background: rgba(255, 59, 48, 0.1);
  color: rgba(255, 120, 110, 0.9);
  border-color: rgba(255, 59, 48, 0.18);
}
.pill-dot-danger {
  background: #FF3B30;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.7);
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Trust items ──────────────────────────────────────────── */
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}
.trust-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Hero section ─────────────────────────────────────────── */
.hero-section { background: #000; }

.hero-glow-right {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-left {
  position: absolute;
  bottom: 10%;
  left: 0%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── iPhone 16 Pro Mockup ─────────────────────────────────── */
.iphone {
  width: 290px;
  height: 604px;
  position: relative;
  border-radius: 52px;
  background: linear-gradient(160deg, #3A3A3C 0%, #1C1C1E 45%, #2A2A2C 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 70px 180px rgba(0, 0, 0, 0.75),
    0 20px 60px rgba(0, 0, 0, 0.3);
}
.iphone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 52px;
  background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.iphone-screen {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  background: #000;
  border-radius: 43px;
  overflow: hidden;
}
/* Side buttons */
.iphone .btn-mute  { position:absolute; left:-2.5px; top:112px;  width:2.5px; height:30px; background:#303032; border-radius:2px 0 0 2px; }
.iphone .btn-vup   { position:absolute; left:-2.5px; top:158px;  width:2.5px; height:62px; background:#303032; border-radius:2px 0 0 2px; }
.iphone .btn-vdn   { position:absolute; left:-2.5px; top:232px;  width:2.5px; height:62px; background:#303032; border-radius:2px 0 0 2px; }
.iphone .btn-power { position:absolute; right:-2.5px; top:178px; width:2.5px; height:88px; background:#303032; border-radius:0 2px 2px 0; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-22px); }
}
.animate-float { animation: float 7s ease-in-out infinite; }

@media (max-width: 768px) {
  .iphone { width: 230px; height: 480px; border-radius: 44px; }
  .iphone-screen { border-radius: 35px; top:8px; left:8px; right:8px; bottom:8px; }
  .iphone .btn-mute  { top:88px;  height:24px; }
  .iphone .btn-vup   { top:124px; height:48px; }
  .iphone .btn-vdn   { top:182px; height:48px; }
  .iphone .btn-power { top:140px; height:68px; }
}

/* ── Danger Score Section ─────────────────────────────────── */
.danger-section {
  background: #000;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.gauge-wrapper {
  max-width: 360px;
  margin: 0 auto;
}
.gauge-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(255, 59, 48, 0.25));
}

/* Score level grid */
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .score-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .score-grid { grid-template-columns: 1fr; }
}

.score-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.score-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
}
.score-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--c);
  letter-spacing: -1px;
  margin-bottom: 5px;
  line-height: 1;
}
.score-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.score-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.55;
}

/* ── Features ─────────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .feat-grid { grid-template-columns: 1fr; } }

.feat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px 30px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
}
.feat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-8px);
}

/* Danger Score highlight card */
.feat-card-danger {
  background: rgba(255, 59, 48, 0.06);
  border-color: rgba(255, 59, 48, 0.15);
  position: relative;
  overflow: hidden;
}
.feat-card-danger::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.feat-card-danger:hover {
  background: rgba(255, 59, 48, 0.09);
  border-color: rgba(255, 59, 48, 0.22);
}

.feat-icon {
  font-size: 30px;
  margin-bottom: 16px;
  display: block;
}
.feat-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feat-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

/* Mini gauge inside feature card */
.feat-gauge-mini {
  margin-top: 20px;
  max-width: 120px;
}
.feat-gauge-mini svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.3));
}

/* ── How It Works ─────────────────────────────────────────── */
.how-section {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.steps-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
@media (max-width: 768px) {
  .steps-wrap { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.step-num {
  width: 58px;
  height: 58px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}
.step-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.step-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}
.step-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 18px;
}

/* ── Screenshots Gallery ──────────────────────────────────── */
.ss-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 48px 40px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.ss-track::-webkit-scrollbar { display: none; }
.ss-track:active { cursor: grabbing; }

.ss-item {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.ss-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* Mini iPhone */
.iphone-mini {
  width: 210px;
  height: 440px;
  position: relative;
  border-radius: 42px;
  background: linear-gradient(160deg, #3A3A3C, #1C1C1E);
  box-shadow:
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.iphone-mini:hover {
  transform: translateY(-14px);
  box-shadow:
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 60px 120px rgba(0, 0, 0, 0.7);
}
.mini-screen {
  position: absolute;
  top: 9px; left: 9px; right: 9px; bottom: 9px;
  background: #000;
  border-radius: 34px;
  overflow: hidden;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section { background: #000; position: relative; }
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────────── */
footer { background: #000; }
