/* Milo landing page — premium dark edition */

:root {
  --bg: #1B1815;
  --bg-deep: #161310;
  --surface: #262220;
  --primary: #2F6B4F;
  --primary-gradient-start: #3A7C5D;
  --primary-gradient-end: #2B6247;
  --brand-green: #1FDD57;
  --neon: #EEFF4F;
  --clay: #D9A277;
  --mauve: #A67B8F;
  --heading: #F3EDE4;
  --body: #E4DCD2;
  --muted: #B7ACA0;
  --border: rgba(244, 238, 230, 0.10);
  --glass: rgba(244, 238, 230, 0.045);
  --glass-strong: rgba(244, 238, 230, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glow-green: rgba(31, 221, 87, 0.35);
  --radius: 26px;
  --radius-sm: 18px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(22, 19, 16, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(22, 19, 16, 0.88);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand-logo {
  height: 30px;
  width: auto;
  transition: transform var(--transition);
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  font-size: 1rem;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 32px rgba(31, 221, 87, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(31, 221, 87, 0.28);
  filter: brightness(1.08);
}

.btn-small {
  padding: 10px 20px;
  background: var(--glass);
  color: var(--heading);
  font-size: 0.9rem;
  border-color: var(--border);
  backdrop-filter: blur(10px);
}

.btn-small:hover {
  background: var(--glass-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-large {
  padding: 18px 34px;
  font-size: 1.05rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
}

.ambient-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.blob-green {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(31, 221, 87, 0.55), transparent 70%);
  animation: float 18s ease-in-out infinite;
}

.blob-clay {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(217, 162, 119, 0.5), transparent 70%);
  animation: float 22s ease-in-out infinite reverse;
}

.blob-mauve {
  width: 360px;
  height: 360px;
  top: 35%;
  left: 30%;
  background: radial-gradient(circle, rgba(166, 123, 143, 0.45), transparent 70%);
  animation: float 20s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.06); }
  66% { transform: translate(-20px, 25px) scale(0.96); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 12px var(--brand-green);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--heading);
  letter-spacing: -0.045em;
  margin: 0 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--body);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(244, 238, 230, 0.14), rgba(244, 238, 230, 0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 2;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform var(--transition);
}

.phone-frame:hover {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 3;
}

.phone-screen {
  width: 100%;
  border-radius: 32px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 221, 87, 0.32), transparent 65%);
  filter: blur(50px);
  z-index: 1;
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Trust bar */
.trust {
  padding: 24px 0 72px;
  position: relative;
  z-index: 1;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 221, 87, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}

.trust-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sections */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* Features */
.features {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

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

.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(244, 238, 230, 0.07), rgba(244, 238, 230, 0.02));
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(31, 221, 87, 0.35);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(31, 221, 87, 0.16);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 10px;
}

.feature-body {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.6;
}

/* Gallery */
.gallery {
  padding: 64px 0 100px;
  position: relative;
  z-index: 1;
}

.gallery-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 238, 230, 0.15) transparent;
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(244, 238, 230, 0.15);
  border-radius: 999px;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  min-width: 1320px;
}

.gallery-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: rgba(31, 221, 87, 0.25);
}

.gallery-card.spotlight {
  border-color: rgba(31, 221, 87, 0.22);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
}

/* Pricing */
.pricing {
  padding: 0 0 120px;
  position: relative;
  z-index: 1;
}

.pricing-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 52px;
  border-radius: var(--radius);
  background: var(--bg-deep);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-green), var(--clay), var(--mauve), var(--brand-green));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-glow 8s ease infinite;
  pointer-events: none;
}

.pricing-glow {
  position: absolute;
  top: 50%;
  right: -120px;
  width: 500px;
  height: 500px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 221, 87, 0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

@keyframes border-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.pricing-copy {
  position: relative;
  z-index: 1;
}

.pricing-title {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.pricing-body {
  color: var(--body);
  margin: 0 0 26px;
  max-width: 440px;
}

.pricing-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.pricing-perks li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-green);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B1815'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.price-amount {
  font-size: clamp(3.4rem, 7vw, 4.8rem);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.05em;
}

.price-term {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 500;
}

.price-renew {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 30px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0;
  background: rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.92;
  transition: opacity var(--transition);
}

.footer-brand:hover .footer-logo {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--brand-green);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.75;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-subtitle,
  .hero-actions {
    align-items: center;
    margin-inline: auto;
  }

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

  .pricing-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pricing-perks {
    justify-content: center;
  }

  .pricing-body {
    margin-inline: auto;
  }

  .pricing-glow {
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.5;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 44px;
  }

  .blob-green {
    width: 320px;
    height: 320px;
    right: -140px;
  }

  .blob-clay {
    width: 260px;
    height: 260px;
    left: -100px;
  }

  .blob-mauve {
    width: 220px;
    height: 220px;
  }

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

  .trust-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .pricing-card {
    padding: 36px 26px;
  }

  .btn-primary,
  .btn-large {
    width: 100%;
  }
}
