/* ============ GutSense Landing – Design System ============ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0F1216;
  --ink-soft: #62696F;
  --green: #4FB23A;
  --green-deep: #2F7A1B;
  --green-soft: #EFF8E9;
  --orange: #FF6B4A;
  --border: rgba(15, 18, 22, 0.08);
  --border-strong: rgba(15, 18, 22, 0.12);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 4px 18px rgba(15, 18, 22, 0.05), 0 1px 3px rgba(15, 18, 22, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 18, 22, 0.12);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.accent { color: var(--green); }

/* ============ Floating glass navbar ============ */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: 16px;
}

.nav-pill {
  pointer-events: auto;
  width: min(var(--container), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(20, 24, 29, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-pill.scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 36px rgba(20, 24, 29, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo { height: 30px; width: auto; }

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

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(20, 24, 29, 0.05);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-appstore {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-appstore .apple-logo { width: 24px; height: 24px; }
.btn-small .apple-logo { width: 16px; height: 16px; }

.btn-appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn-appstore-text small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ Hero ============ */
.hero { padding: 96px 0 40px; position: relative; }

.hero-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 96px) 24px clamp(28px, 4vw, 52px);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.0) 55%),
    url('assets/generated/gutsense-hero-clouds.png');
  background-size: cover;
  background-position: center top;
  box-shadow: 0 30px 80px rgba(20, 24, 29, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
}

/* Neon glare tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #2F7A1B;
  padding: 9px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)) padding-box,
    linear-gradient(120deg, #9BE15D, #5DBB3F 45%, #BFF09A 100%) border-box;
  border: 1.5px solid transparent;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.4) inset,
    0 0 18px rgba(93, 187, 63, 0.45),
    0 0 38px rgba(93, 187, 63, 0.25);
  animation: tagGlow 3.2s ease-in-out infinite;
}

@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset, 0 0 18px rgba(93,187,63,0.45), 0 0 38px rgba(93,187,63,0.22); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 0 26px rgba(93,187,63,0.6), 0 0 52px rgba(93,187,63,0.35); }
}

.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(93,187,63,0.9);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 187, 63, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(93, 187, 63, 0); }
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--ink);
}

.accent-serif {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #4AA52E, #5DBB3F 60%, #86D45F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--green);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: #4A5159;
  max-width: 38em;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rating { display: flex; flex-direction: column; text-align: left; }

.stars { color: #F5A623; letter-spacing: 2px; font-size: 1rem; }
.stars.big { font-size: 1.5rem; }

.rating-note { font-size: 0.82rem; color: #4A5159; font-weight: 500; }

/* Hero phone integrated at bottom of card */
.hero-phone-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  justify-content: center;
}

.hero-phone {
  position: relative;
  z-index: 1;
  width: min(660px, 88%);
  filter: drop-shadow(0 30px 50px rgba(20, 24, 29, 0.28));
}

.float-pill {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 26px rgba(20, 24, 29, 0.14), inset 0 1px 0 rgba(255,255,255,0.8);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  animation: floaty 5s ease-in-out infinite;
}

.pill-energy { top: 8%; right: 12%; animation-delay: 0s; }
.pill-focus { top: 34%; left: 8%; animation-delay: 1.4s; }
.pill-gut { top: 16%; left: 14%; animation-delay: 2.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ Stats strip ============ */
.stats { padding: 48px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat span { font-size: 0.88rem; color: var(--ink-soft); }

.stat + .stat { border-left: 1px solid rgba(20,24,29,0.07); }

/* ============ Sections ============ */
.section { padding: 64px 0; }

.section-alt { background: var(--bg); }

.section-head { text-align: center; margin-bottom: 60px; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.kicker-center { display: block; text-align: center; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  max-width: 20em;
  margin-inline: auto;
  color: var(--ink);
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

.section-head .section-sub { margin-bottom: 0; }

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ How it works ============ */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hiw-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hiw-visual img {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  filter: drop-shadow(0 30px 60px rgba(15, 18, 22, 0.16));
}

.hiw-title { text-align: left; margin-inline: 0; }

.hiw-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 18px 0 34px;
  max-width: 30em;
}

.stepper { list-style: none; display: flex; flex-direction: column; gap: 26px; }

.step-item { display: flex; gap: 18px; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid rgba(79, 178, 58, 0.2);
}

.step-text h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.step-text p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============ Features ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  color: var(--green-deep);
  background: linear-gradient(160deg, var(--green-soft), #FFFFFF);
  border: 1px solid rgba(79, 178, 58, 0.18);
  margin-bottom: 20px;
}

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

.feature-card h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 9px; color: var(--ink); }
.feature-card p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }

/* ============ Reviews marquee ============ */
.section-reviews { overflow: hidden; }
.section-reviews .section-head { margin-bottom: 52px; }

.marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 14px 11px;
  animation: marquee 64s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-stars { color: #F5A623; letter-spacing: 2px; font-size: 0.95rem; }

.review-card blockquote {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  flex: 1;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.review-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
}

.review-card figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review-card figcaption strong { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.review-card figcaption small { font-size: 0.78rem; color: var(--ink-soft); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 760px; }

.faq-wrap .section-title { margin-bottom: 40px; }

.faq-item {
  margin-bottom: 16px;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 22px 26px;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  padding: 0 26px 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============ CTA finale ============ */
.final-cta { padding: 40px 0 96px; }

.final-cta-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background-size: cover;
  background-position: center right;
  padding: clamp(40px, 6vw, 80px);
  min-height: 380px;
  display: flex;
  align-items: center;
}

.final-cta-copy { max-width: 460px; }

.final-cta-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 14px;
}

.final-cta-copy > p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.cta-disclaimer {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ============ Footer ============ */
.site-footer {
  background: #1a1a1a;
  color: #C9CDD3;
  padding: 56px 0 28px;
}

.site-footer .brand { color: #fff; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-tag { margin-top: 12px; font-size: 0.9rem; color: #8A9097; margin-bottom: 16px; }

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: #8A9097;
  line-height: 1.8;
}

.footer-address a { color: #C9CDD3; text-decoration: none; transition: color 0.2s; }
.footer-address a:hover { color: #9BE15D; }

.brand-logo-footer { filter: brightness(0) invert(1); opacity: 0.9; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #C9CDD3;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: #9BE15D; }

.footer-bottom { padding-top: 24px; }

.footer-bottom p { font-size: 0.78rem; color: #8A9097; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-pill { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .section { padding: 52px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hiw-grid { grid-template-columns: 1fr; gap: 44px; }
  .hiw-visual { order: -1; }
  .hiw-title, .hiw-lead { text-align: center; margin-inline: auto; }
  .hiw-copy { text-align: center; }
  .stepper { max-width: 440px; margin-inline: auto; text-align: left; }
  .kicker { display: block; text-align: center; }
  .final-cta-card { background-position: 80% center; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-pill { padding: 10px 12px 10px 18px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .stat:nth-child(3) { border-left: none; }
  .feature-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .section { padding: 44px 0; }
  .hero-card { border-radius: 28px; }
  .review-card { width: 290px; }
}
