/* =========================================================
   Bug Bite Identifier — Landing Page
   Aesthetic: fresh organic-tech. Mint + deep forest + coral.
   ========================================================= */

:root {
  /* palette */
  --forest:   #0e3a2b;
  --forest-2: #0a2c20;
  --emerald:  #1c7a57;
  --leaf:     #2fb37e;
  --mint:     #c9efd9;
  --mint-2:   #e6f7ee;
  --cream:    #f5f3ea;
  --paper:    #fbfaf4;
  --coral:    #ff6a45;
  --coral-2:  #ff8a6b;
  --ink:      #122019;
  --ink-soft: #3c5247;
  --line:     rgba(14, 58, 43, 0.12);

  --shadow-sm: 0 2px 8px rgba(14, 58, 43, 0.07);
  --shadow-md: 0 14px 40px -12px rgba(14, 58, 43, 0.22);
  --shadow-lg: 0 40px 90px -30px rgba(14, 58, 43, 0.40);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--leaf); }

/* ---------- atmospheric layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
}
.blob--1 { width: 480px; height: 480px; top: -160px; right: -120px;
  background: radial-gradient(circle, var(--leaf), transparent 70%); }
.blob--2 { width: 420px; height: 420px; top: 50%; left: -180px;
  background: radial-gradient(circle, var(--mint), transparent 70%); opacity: 0.7; }
.blob--3 { width: 360px; height: 360px; bottom: -120px; right: 10%;
  background: radial-gradient(circle, var(--coral-2), transparent 70%); opacity: 0.22; }

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--forest);
  --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.98rem;
  padding: 14px 22px; border-radius: 100px; border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn--lg { padding: 17px 28px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.btn--light { --bg: var(--paper); --fg: var(--forest); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  box-shadow: none; border: 1.5px solid var(--line);
}
.btn--ghost:hover { background: rgba(14,58,43,0.04); box-shadow: none; }
.btn__apple { flex-shrink: 0; }
.btn span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn span small { font-weight: 500; font-size: 0.66rem; opacity: 0.8; letter-spacing: 0.02em; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 22px;
}
.eyebrow--light { color: var(--mint); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,106,69,0.18); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.7; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; max-width: var(--maxw); margin: 0 auto;
  padding: 16px 28px; margin-top: 12px;
}
.nav::before {
  content: ""; position: absolute; inset: 8px 16px; z-index: -1; border-radius: 100px;
  background: rgba(251,250,244,0.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow-sm);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.nav__logo {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  overflow: hidden; background: linear-gradient(140deg, var(--leaf), var(--emerald));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), var(--shadow-sm);
}
.nav__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__name { font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; font-weight: 500; font-size: 0.95rem; }
.nav__links a { color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--forest); }

/* ---------- layout helpers ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; letter-spacing: -0.02em;
}
.section__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; margin-top: 20px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 28px 70px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__badges {
  list-style: none; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.95rem; color: var(--ink-soft);
}
.hero__badges strong { color: var(--forest); }
.hero__badges .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: inline-block; }

/* ---------- phone mockup ---------- */
.hero__device { position: relative; display: grid; place-items: center; }
.device__glow {
  position: absolute; width: 88%; height: 78%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(47,179,126,0.35), transparent 65%); filter: blur(40px);
}
.phone {
  position: relative; z-index: 1; width: 300px; aspect-ratio: 300 / 620;
  background: #0c0c0e; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.08);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-16px) rotate(-1.2deg); } }
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0c0c0e; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 35px; overflow: hidden;
  background: #fff;
}
.app { display: flex; flex-direction: column; height: 100%; padding: 14px 13px; gap: 9px; font-size: 11px; }
.app__bar { display: flex; align-items: center; justify-content: space-between; color: #6b7d75; padding: 4px 2px 2px; font-size: 12px; }
.app__title { font-weight: 700; color: var(--ink); }
.app__photo {
  position: relative; height: 96px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, #f0d6c8, #e7b89f);
}
.app__bite {
  position: absolute; top: 50%; left: 46%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, #d6432e, #e06a52 60%, transparent 72%);
  box-shadow: 0 0 0 5px rgba(214,67,46,0.18);
}
.app__chip {
  position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink);
  font-weight: 700; padding: 5px 10px; border-radius: 20px; box-shadow: var(--shadow-sm); font-size: 11px;
}
.app__tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 2px; border-radius: 11px; background: #f3f5f3; color: #6b7d75; font-size: 9px;
}
.tab b { font-size: 13px; color: var(--ink); }
.tab i { font-style: normal; font-weight: 700; }
.tab--active { background: #e7f1ec; color: var(--emerald); box-shadow: inset 0 0 0 1.5px rgba(47,179,126,0.4); }
.tab--active b, .tab--active i { color: var(--emerald); }
.app__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 2px; border-radius: 11px; background: #f7f8f6; font-size: 8px; color: #6b7d75; text-align: center;
}
.stat b { font-size: 10px; color: var(--ink); }
.stat__d { width: 7px; height: 7px; border-radius: 50%; }
.stat__d--low { background: #34c77b; }
.stat__d--mid { background: #f0a93a; }
.stat__d--ok { background: #34c77b; }
.app__card { background: #f7f8f6; border-radius: 12px; padding: 10px 11px; flex: 1; }
.app__h { font-weight: 700; color: var(--emerald); font-size: 10px; margin-bottom: 5px; }
.app__card ul { list-style: none; display: flex; flex-direction: column; gap: 3px; color: var(--ink-soft); }
.app__card li::before { content: "·"; margin-right: 5px; color: var(--leaf); font-weight: 800; }
.app__askbtn {
  background: #eef3fb; color: #3f6fd6; border: none; border-radius: 12px;
  padding: 11px; font-weight: 700; font-size: 11px; font-family: var(--font-body);
}

/* ---------- trust strip ---------- */
.strip { background: var(--forest); color: var(--mint-2); }
.strip__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 28px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 22px;
}
.strip__item { display: flex; flex-direction: column; }
.strip__item b { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: #fff; }
.strip__item span { font-size: 0.92rem; opacity: 0.7; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.card--feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  font-size: 1.4rem; margin-bottom: 18px;
  background: var(--mint-2); box-shadow: inset 0 0 0 1px rgba(47,179,126,0.18);
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- dark section / steps ---------- */
.section--dark {
  max-width: none; background: var(--forest); color: var(--mint-2);
  border-radius: 44px; margin: 0 16px; padding: 100px 28px;
}
.section--dark .section__head { margin-inline: auto; margin-bottom: 60px; }
.section--dark .section__title { color: #fff; }
.steps {
  list-style: none; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.step {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.step:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem;
  color: var(--leaf); opacity: 0.65; display: block; margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: #fff; margin-bottom: 8px; }
.step p { color: rgba(230,247,238,0.66); font-size: 0.95rem; }

/* ---------- split / encyclopedia ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split__media { display: grid; place-items: center; }
.bug-card {
  width: 100%; max-width: 360px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-md);
}
.bug-card__img {
  height: 150px; border-radius: 18px; display: grid; place-items: center; font-size: 4.6rem;
  background: linear-gradient(150deg, var(--mint), var(--mint-2)); margin-bottom: 16px;
}
.bug-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.bug-card__sci { font-style: italic; color: var(--ink-soft); margin-bottom: 16px; }
.bug-card__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.bug-card__rows span {
  display: flex; flex-direction: column; gap: 2px; background: var(--mint-2);
  border-radius: 12px; padding: 10px 12px; font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em;
}
.bug-card__rows b { font-size: 0.95rem; color: var(--forest); text-transform: none; letter-spacing: 0; }
.bug-card__rows i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.bug-card__feat { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; color: var(--ink-soft); }
.bug-card__feat li::before { content: "✦"; color: var(--leaf); margin-right: 8px; }

/* ---------- privacy ---------- */
.privacy { text-align: center; }
.privacy__inner { max-width: 620px; margin: 0 auto; }
.privacy__lock {
  display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 20px;
  font-size: 2rem; margin-bottom: 24px;
  background: var(--mint-2); box-shadow: inset 0 0 0 1px rgba(47,179,126,0.2);
}
.privacy .section__lead { margin-inline: auto; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 22px; transition: border-color 0.3s, background 0.3s;
}
.faq__item[open] { border-color: rgba(47,179,126,0.4); background: var(--mint-2); }
.faq__item summary {
  list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--emerald); transition: transform 0.3s; flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-soft); padding: 0 0 18px; max-width: 60ch; }

/* ---------- cta ---------- */
.cta { padding: 24px 16px 60px; }
.cta__inner {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  background: linear-gradient(150deg, var(--emerald), var(--forest));
  color: #fff; border-radius: 44px; padding: 84px 28px;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,69,0.35), transparent 70%);
  top: -120px; right: -80px;
}
.cta__title {
  font-family: var(--font-display); font-weight: 800; position: relative;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px;
}
.cta__lead { font-size: 1.15rem; opacity: 0.85; margin-bottom: 30px; position: relative; }
.cta .btn { position: relative; }
.cta__note { margin-top: 22px; font-size: 0.85rem; opacity: 0.7; position: relative; }

/* ---------- footer ---------- */
.footer { background: var(--forest-2); color: var(--mint-2); padding: 56px 28px 30px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand div { display: flex; flex-direction: column; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.footer__brand span { font-size: 0.88rem; opacity: 0.6; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 0.92rem; }
.footer__links a { opacity: 0.75; transition: opacity 0.2s; }
.footer__links a:hover { opacity: 1; }
.footer__bottom {
  max-width: var(--maxw); margin: 22px auto 0; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 0.82rem; opacity: 0.55;
}

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero__device { order: -1; }
  .phone { width: 260px; }
  .grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .strip__inner { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 72px 20px; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .footer__bottom { flex-direction: column; }
  .section--dark { border-radius: 30px; margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
