@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #080D18;
  --ink-2: #0C1526;
  --surface: #111B2E;
  --surface-2: #16233C;
  --teal: #35DFC9;
  --teal-soft: #8FF3E3;
  --teal-dim: #1C6E64;
  --paper: #EDF3FB;
  --muted: #8CA0C0;
  --muted-2: #5D6F8C;
  --line: rgba(150, 170, 205, 0.14);
  --line-strong: rgba(150, 170, 205, 0.30);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; color: var(--paper); }
p { margin: 0; }

::selection { background: var(--teal); color: var(--ink); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--teal);
  margin: 0 0 14px;
  font-weight: 500;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 24, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px) clamp(40px, 6vw, 64px);
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.blob-teal {
  width: 520px;
  height: 520px;
  background: var(--teal);
  top: -180px;
  right: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(140, 160, 192, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}
.feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.feature-icon {
  color: var(--teal);
  font-size: 1.25rem;
}
.feature-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
}

/* Buttons */
.download-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.download-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #57E9D2);
  color: #04241F;
  box-shadow: 0 10px 26px -10px rgba(53, 223, 201, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(53, 223, 201, 0.7);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 223, 201, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(53, 223, 201, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 223, 201, 0); }
}
.pulse-btn {
  animation: pulse 2.5s infinite;
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-soft);
  transform: translateY(-2px);
}
.btn-icon {
  font-size: 1.5rem;
}
.btn-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-title {
  font-weight: 700;
  font-size: 1rem;
}
.btn-desc {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Social Proof & Trust Badges */
.social-proof-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--paper);
}
.stars {
  letter-spacing: -2px;
}
.proof-text {
  font-weight: 500;
  opacity: 0.9;
}
.trust-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
  font-weight: 500;
}

/* Sticky Mobile CTA */
@media (max-width: 768px) {
  .download-actions-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 13, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    z-index: 1000;
    border-top: 1px solid var(--line-strong);
    margin-top: 0;
    border-radius: 0;
    align-items: center;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.2);
  }
  .download-actions {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }
  .download-actions .btn {
    flex: 1;
    padding: 10px;
    justify-content: center;
  }
  .btn-icon {
    font-size: 1.3rem;
  }
  .btn-title {
    font-size: 0.85rem;
  }
  .hero-content {
    padding-bottom: 7rem; /* Space for sticky footer */
  }
  .trust-badges, .social-proof-banner {
    display: none; /* Hide on mobile to save space */
  }
}

/* Mockup Image */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-image img {
  max-width: 100%;
  width: 320px;
  border-radius: 36px;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5), 0 0 0 12px var(--ink-2);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* SEO Keywords */
.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.seo-keywords span:first-child {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  color: var(--muted-2);
}
.keyword-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--paper);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
}
.keyword-chip:hover {
  color: var(--teal-soft);
  border-color: var(--teal-dim);
  background: rgba(53, 223, 201, 0.06);
}

/* Demo Widget (Collapsible) */
.demo-section {
  padding-block: 2rem 4rem;
}
.demo-accordion {
  background: rgba(8, 13, 24, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  margin: 0 auto;
  max-width: 650px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.demo-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  transition: background 0.3s ease;
  list-style: none; /* Hide default arrow in standard browsers */
}
.demo-summary::-webkit-details-marker {
  display: none; /* Hide default arrow in webkit */
}
.demo-summary:hover {
  background: rgba(20, 184, 166, 0.05);
}
.demo-summary h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--teal-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-summary .icon {
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform 0.3s ease;
}
details[open] .demo-summary .icon {
  transform: rotate(45deg); /* Turns the + into an x */
}
.demo-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  padding: 2rem 3rem;
  box-shadow: none;
  backdrop-filter: none;
}
.demo-header {
  text-align: center;
  margin-bottom: 2rem;
}
.demo-header p {
  color: var(--muted);
  font-size: 0.95rem;
}
.input-group {
  margin-bottom: 2rem;
  text-align: center;
}
.input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.input-group input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  color: var(--teal);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  width: 100%;
  max-width: 200px;
  transition: border-color 0.3s;
}
.drug-dropdown {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s;
}
.drug-dropdown option {
  background: #080D18;
  color: var(--paper);
}
.input-group input:focus, .drug-dropdown:focus {
  outline: none;
  border-color: var(--teal);
}
.demo-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.result-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.primary-result {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--teal-dim);
}
.result-label {
  font-size: 0.95rem;
  color: var(--paper);
  font-weight: 500;
}
.primary-result .result-label {
  color: var(--teal-soft);
}
.result-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.demo-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
@media (max-width: 768px) {
  .demo-card {
    padding: 2rem 1.5rem;
  }
}

/* FAQ Section */
.faq-section {
  padding-block: 4rem;
}
.faq-section h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}
.faq-item:hover {
  border-color: var(--line-strong);
}
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--teal-soft);
  margin-bottom: 0.75rem;
}
.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SEO Footer Tags */
.seo-footer-tags {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}
.seo-footer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.seo-footer-list {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-content { margin: 0 auto; }
  .features-list { text-align: left; }
  .download-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .download-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
}
