/* ============================================================
   YAMA SCIENCES — Shared Stylesheet
   ============================================================ */

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

:root {
  --purple:       #3D35F2;
  --purple-mid:   #5D58F8;
  --purple-light: #7B75FF;
  --purple-glow:  rgba(61,53,242,0.35);
  --navy:         #080B20;
  --navy-card:    rgba(255,255,255,0.04);
  --navy-border:  rgba(255,255,255,0.08);
  --text:         #0A0A18;
  --text-muted:   #6B7280;
  --bg:           #ffffff;
  --ease-spring:  cubic-bezier(0.34, 1.28, 0.64, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SHARED KEYFRAMES ───────────────────────────────────────── */

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

@keyframes navDown {
  from { opacity: 0; transform: translate(-50%, -120%); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes navDownMobile {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blobAppear {
  from { opacity: 0; transform: scale(1.3); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes blobFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33%       { transform: scale(1.04) rotate(2deg); }
  66%       { transform: scale(0.97) rotate(-1.5deg); }
}

@keyframes orbitCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitCCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes gradientFlow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%       { opacity: 1; transform: scale(1); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,53,242,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(61,53,242,0); }
}

@keyframes shimmerSweep {
  from { transform: translateX(-150%); }
  to   { transform: translateX(150%); }
}

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

/* ── NAVBAR ─────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(960px, calc(100% - 32px));
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07), 0 0 0 0 rgba(61,53,242,0);
  padding: 10px 16px 10px 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1000;
  animation: navDown 0.7s var(--ease-spring) 0.1s both;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-right: auto;
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  background: var(--purple);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-logo-icon svg { width: 14px; height: 14px; }

.nav-logo-text {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.4px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.05); }

.nav-pill {
  background: rgba(61,53,242,0.09) !important;
  color: var(--purple) !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(61,53,242,0.15);
}

.nav-pill:hover {
  background: rgba(61,53,242,0.16) !important;
}

.btn-contact-sales {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--purple);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-left: 8px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.btn-contact-sales::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transform: translateX(-150%);
  transition: none;
}

.btn-contact-sales:hover {
  background: #2D28D6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61,53,242,0.35);
}

.btn-contact-sales:hover::after {
  transform: translateX(150%);
  transition: transform 0.5s ease;
}

.btn-contact-sales:active { transform: translateY(0) scale(0.98); }

.btn-contact-sales svg { flex-shrink: 0; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-hamburger:hover { background: rgba(0,0,0,0.06); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.65s var(--ease-out)   var(--stagger, 0ms),
    transform 0.65s var(--ease-spring) var(--stagger, 0ms);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION LABEL ──────────────────────────────────────────── */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  opacity: 0.6;
}

/* ── FOOTER ─────────────────────────────────────────────────── */

footer {
  background: #05071A;
  padding: 72px 24px 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-logo .nav-logo-icon { border-radius: 8px; }

.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

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

.footer-legal-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

/* ── UTILITY BUTTONS ────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.15) 50%, transparent 65%);
  transform: translateX(-150%);
}

.btn-primary:hover {
  background: #2D28D6;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,53,242,0.4);
}

.btn-primary:hover::after {
  transform: translateX(150%);
  transition: transform 0.55s ease;
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--purple);
  padding: 13px 27px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(61,53,242,0.3);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-outline:hover {
  background: rgba(61,53,242,0.06);
  border-color: var(--purple);
  transform: translateY(-1px);
}

/* ── MOBILE CTA (hidden on desktop) ────────────────────────── */
.nav-mobile-cta { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  /* Full-width flat navbar on mobile */
  .navbar {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    animation: navDownMobile 0.5s var(--ease-out) 0.1s both;
  }

  /* Hide desktop nav links and Contact Sales button */
  .nav-links { display: none; }
  .btn-contact-sales { display: none; }

  /* Show hamburger */
  .nav-hamburger { display: flex; }

  /* Show Contact Sales inside mobile menu */
  .nav-mobile-cta { display: block; }

  /* Mobile dropdown menu */
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 10px 12px 18px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .navbar.menu-open .nav-links a {
    display: block;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Contact Sales as a full-width button at bottom of menu */
  .nav-mobile-cta a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    background: var(--purple) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 11px !important;
    padding: 13px 20px !important;
  }

  .nav-mobile-cta a:hover {
    background: #2D28D6 !important;
  }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
