/* ===================================================
   Ollora Landing Page — Styles
   Matte glassmorphism · Green + Purple accent
   =================================================== */

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

:root {
  --green-900: #14332a;
  --green-800: #1e4d3d;
  --green-700: #2d6a4f;
  --green-600: #357960;
  --green-500: #40916c;
  --green-400: #52b788;
  --green-300: #74c69d;
  --green-200: #95d5b2;
  --green-100: #b7e4c7;
  --green-50:  #d8f3dc;
  --green-25:  #edf8f0;

  --accent:       #7b68c4;
  --accent-hover:  #6b5ab0;
  --accent-light:  #ede8ff;

  --bg:            #f4f8f5;
  --surface:       #ffffff;
  --text:          #1a2b22;
  --text-2:        #4a7362;
  --text-muted:    #8faa9e;

  --glass:         rgba(255,255,255,0.46);
  --glass-hover:   rgba(255,255,255,0.62);
  --glass-border:  rgba(255,255,255,0.52);
  --glass-shadow:  0 4px 24px rgba(20,51,42,0.05);
  --glass-shadow-hover: 0 10px 40px rgba(20,51,42,0.10);

  --r:    20px;
  --r-sm: 12px;
  --r-lg: 28px;
  --r-pill: 100px;
  --mw: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(183,228,199,0.28), transparent 55%),
    radial-gradient(ellipse at 88% 55%, rgba(237,232,255,0.22), transparent 55%),
    radial-gradient(ellipse at 50% 92%, rgba(210,243,220,0.20), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244,248,245,0.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom-color: rgba(255,255,255,0.5);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--mw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--green-700);
  letter-spacing: -0.04em;
}
.nav-badge {
  font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-light);
  padding: 6px 18px; border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* animated background blobs */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  will-change: transform;
}
.blob-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--green-200), var(--green-100));
  top: -12%; right: -8%;
  animation: bfloat 20s ease-in-out infinite;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-light), rgba(123,104,196,0.18));
  bottom: 8%; left: -6%;
  animation: bfloat 26s ease-in-out infinite reverse;
}
.blob-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--green-50), rgba(210,243,220,0.25));
  top: 42%; left: 28%;
  animation: bfloat 18s ease-in-out infinite 4s;
}
.blob-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(123,104,196,0.12), transparent);
  top: 18%; right: 22%;
  animation: bfloat 22s ease-in-out infinite 2s;
}

@keyframes bfloat {
  0%,100% { transform: translate(0,0) scale(1); }
  25%     { transform: translate(28px,-22px) scale(1.04); }
  50%     { transform: translate(-18px,28px) scale(.96); }
  75%     { transform: translate(22px,18px) scale(1.02); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--mw); width: 100%;
  display: flex; align-items: center; gap: 56px;
}
.hero-text { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 9px 22px;
  font-size: 14px; font-weight: 600; color: var(--green-700);
  margin-bottom: 36px;
  box-shadow: var(--glass-shadow);
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%   { opacity:.45; transform:scale(.75); }
}

.hero-title {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 700; color: var(--green-900);
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero-title span { color: var(--green-500); }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2); max-width: 540px;
  margin: 0 0 36px; line-height: 1.72;
}

.hero-platforms {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.hero-platforms svg { width: 18px; height: 18px; opacity: .6; }

/* ---------- Hero visual / phone mockup ---------- */

.hero-visual {
  flex: 0 0 370px;
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-photo-card {
  position: absolute;
  width: 270px; height: 340px;
  border-radius: 24px;
  overflow: hidden;
  left: -20px; top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.18);
  z-index: 1;
}
.hero-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.phone {
  width: 260px;
  height: 530px;
  background: #111;
  border-radius: 48px;
  padding: 7px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 40px 80px -16px rgba(0,0,0,0.22),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    20px 20px 60px -10px rgba(20,51,42,0.12);
  transform: perspective(800px) rotateY(-4deg);
}

.phone-island {
  position: absolute;
  top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #111;
  border-radius: 14px;
  z-index: 5;
}

.phone-screen {
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--text);
}

/* concept app UI inside phone */
.app-top {
  padding: 42px 16px 10px;
  background: linear-gradient(180deg, var(--green-50) 0%, #f7faf8 100%);
}
.app-greeting { font-size: 10px; color: var(--text-muted); margin-bottom: 1px; }
.app-name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--green-900);
}

.app-body { flex: 1; padding: 8px 16px; overflow: hidden; }

.app-wx {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  background: #fff; border-radius: 10px;
  font-size: 10px; color: var(--text-2);
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.app-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--green-800);
  margin-bottom: 6px;
}

.app-task {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: #fff; border-radius: 8px;
  margin-bottom: 4px; font-size: 10.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.app-dot {
  width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
}

.app-plants { display: flex; gap: 6px; }
.app-plant {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 8px 4px;
  background: #fff; border-radius: 10px;
  font-size: 9px; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.app-plant-img {
  width: 30px; height: 30px;
  border-radius: 8px;
}

.app-tabs {
  display: flex;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 0 0 24px;
}
.app-tab {
  flex: 1; text-align: center;
  padding: 8px 0 0;
  font-size: 9px; font-weight: 500;
  color: var(--text-muted);
}
.app-tab-on { color: var(--green-500); font-weight: 600; }

/* ---------- Sections (shared) ---------- */

.section { padding: 110px 24px; position: relative; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; color: var(--green-900);
}
.section-sub {
  font-size: 17px; color: var(--text-2);
  max-width: 480px; margin: 14px auto 0;
}

/* ---------- Features ---------- */

.features-grid {
  max-width: var(--mw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 36px 30px;
  box-shadow: var(--glass-shadow);
  transition: transform .5s cubic-bezier(.16,1,.3,1),
              box-shadow .5s cubic-bezier(.16,1,.3,1),
              background .4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-hover);
}

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.fi-green  { background: linear-gradient(135deg, var(--green-500), var(--green-400)); }
.fi-purple { background: linear-gradient(135deg, var(--accent), #9d93d4); }
.fi-teal   { background: linear-gradient(135deg, #3b9b8f, #5cc7b8); }

.feature-title {
  font-size: 18px; font-weight: 600;
  color: var(--green-900); margin-bottom: 8px;
}
.feature-desc {
  font-size: 15px; color: var(--text-2); line-height: 1.65;
}

/* ---------- Highlight strip ---------- */

.highlight {
  padding: 88px 24px; position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
}
.highlight::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?w=1600&q=75&auto=format') center/cover no-repeat;
  opacity: .18; mix-blend-mode: luminosity;
}
.highlight::after {
  content: ''; position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -120px; right: -60px;
}
.highlight-inner {
  position: relative; z-index: 1;
  max-width: var(--mw); margin: 0 auto; text-align: center;
}
.highlight-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3.5vw, 36px);
  color: #fff; font-weight: 500; letter-spacing: -0.01em;
}
.highlight-text strong { font-weight: 700; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}

.faq-item {
  background: var(--glass);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: background .3s;
}
.faq-item.open { background: var(--glass-hover); }

.faq-q {
  width: 100%; text-align: left;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--green-900);
}

.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s, color .3s;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green-400); color: #fff;
}

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1);
}
.faq-a-inner {
  padding: 0 28px 22px;
  font-size: 15px; color: var(--text-2); line-height: 1.72;
}

/* ---------- Footer ---------- */

.footer {
  padding: 52px 24px;
  border-top: 1px solid rgba(45,106,79,0.07);
  text-align: center;
}
.footer-inner { max-width: var(--mw); margin: 0 auto; }
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--green-700); margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.footer-links {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 28px;
  margin-bottom: 22px;
}
.footer-link {
  font-size: 14px; color: var(--text-2);
  transition: color .2s;
}
.footer-link:hover { color: var(--green-700); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,51,42,0.38);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  max-width: 640px; width: 100%;
  max-height: 82vh; overflow-y: auto;
  padding: 40px;
  transform: translateY(18px) scale(.97);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.14);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.modal-title {
  font-size: 22px; font-weight: 700; color: var(--green-900);
}
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
.modal-close:hover { background: var(--green-100); }
.modal-close svg { width: 15px; height: 15px; }

.modal-body { font-size: 14px; color: var(--text-2); line-height: 1.82; }
.modal-body h3 {
  font-size: 15px; font-weight: 700;
  color: var(--green-800); margin: 22px 0 6px;
}
.modal-body p  { margin-bottom: 10px; }
.modal-body ul { margin: 6px 0 10px 18px; }
.modal-body li { margin-bottom: 3px; }
.modal-body .modal-date {
  font-size: 13px; color: var(--text-muted); margin-bottom: 18px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.feature-card.reveal:nth-child(2) { transition-delay: .07s; }
.feature-card.reveal:nth-child(3) { transition-delay: .14s; }
.feature-card.reveal:nth-child(4) { transition-delay: .21s; }
.feature-card.reveal:nth-child(5) { transition-delay: .28s; }
.feature-card.reveal:nth-child(6) { transition-delay: .35s; }

.faq-item.reveal:nth-child(2) { transition-delay: .06s; }
.faq-item.reveal:nth-child(3) { transition-delay: .12s; }
.faq-item.reveal:nth-child(4) { transition-delay: .18s; }
.faq-item.reveal:nth-child(5) { transition-delay: .24s; }
.faq-item.reveal:nth-child(6) { transition-delay: .30s; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 24px; }
}

@media (max-width: 740px) {
  .hero-content {
    flex-direction: column; gap: 40px; text-align: center;
  }
  .hero-sub { margin: 0 auto 36px; }
  .hero-visual {
    flex: 0 0 auto; width: 100%; max-width: 380px; height: 480px;
    justify-content: center;
  }
  .hero-photo-card { left: -10px; width: 230px; height: 280px; }
  .phone { width: 230px; height: 470px; border-radius: 42px; }
  .phone-screen { border-radius: 36px; }
}

@media (max-width: 600px) {
  .hero-visual { height: 400px; max-width: 300px; }
  .phone { width: 200px; height: 410px; border-radius: 38px; padding: 6px; }
  .phone-screen { border-radius: 33px; }
  .phone-island { width: 72px; height: 18px; top: 11px; }
  .hero-photo-card { width: 180px; height: 220px; left: -5px; border-radius: 18px; }
  .app-top { padding: 36px 12px 8px; }
  .app-name { font-size: 15px; }
  .app-body { padding: 6px 12px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 64px 20px; }
  .hero { padding: 100px 20px 56px; }
  .section-header { margin-bottom: 36px; }
  .feature-card { padding: 28px 24px; }
  .faq-q { padding: 18px 20px; font-size: 15px; }
  .faq-a-inner { padding: 0 20px 18px; }
  .footer-links { flex-direction: column; gap: 14px; }
  .modal { padding: 28px 22px; }
  .highlight { padding: 64px 20px; }
}
