/* Brand palette — matches web/src/style.css's daisyUI "twofold" theme */
:root {
  --primary: #1e9c97;
  --primary-dark: #167a76;
  --secondary: #16233f;
  --accent: #4fd1c7;
  --base-100: #ffffff;
  --base-200: #f5f3ee;
  --base-300: #e4e1da;
  --ink: #16233f;
  --ink-soft: rgba(22, 35, 63, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--base-100);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(22, 35, 63, 0.25);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-solid {
  background: var(--primary);
  color: #ffffff;
}
.btn-solid:hover { background: var(--primary-dark); }

.btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

/* Each slide is a full-bleed layer — it must never carry content that
   competes with .hero-content for the same visual center, or the two
   collide on short/narrow viewports (that's exactly what broke on mobile:
   a centered caption card fighting the centered headline). object-fit:
   contain (not cover) on purpose — these are real product screenshots, and
   cropping a wide desktop capture to fill a tall phone viewport would
   leave it illegible. The slide's own background matches the app's actual
   page background (--base-200), so the letterboxing around a contained
   screenshot blends in rather than reading as empty space. */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  background: var(--base-200);
}

.slide.is-active { opacity: 1; }

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(16px, 4vw, 64px);
  box-sizing: border-box;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 63, 0.72) 0%, rgba(22, 35, 63, 0.4) 32%, rgba(22, 35, 63, 0.4) 68%, rgba(22, 35, 63, 0.8) 100%);
  pointer-events: none;
}

/* A normal flex child in .hero's top-to-bottom stack, not a centered/
   negative-margined overlay — its height is whatever the headline needs,
   and it never has to fight another element for the same vertical space
   regardless of viewport shape. */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 120px 24px 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px 28px;
}

.hero-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 400px;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  min-height: 1.4em;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  padding: 0;
}

.dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

/* --- Section shared --- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}

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

/* --- Principles --- */
.principles {
  padding: 96px 0;
  background: var(--base-100);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.principle-card {
  background: var(--base-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}

.principle-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.principle-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.principle-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* --- Demo --- */
.demo {
  padding: 96px 0 64px;
  background: var(--base-100);
}

.demo-frame {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--base-300);
  box-shadow: 0 30px 60px rgba(22, 35, 63, 0.12);
}

.demo-frame img {
  width: 100%;
  display: block;
}

/* --- Details --- */
.details {
  padding: 96px 0;
  background: var(--base-200);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.feature-item {
  background: var(--base-100);
  border: 1px solid var(--base-300);
  border-radius: 16px;
  padding: 24px;
}

.feature-shot {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--base-300);
  margin-bottom: 16px;
  display: block;
}

.feature-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--secondary);
}

.feature-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --- CTA band --- */
.cta-band {
  background: var(--secondary);
  padding: 72px 0;
}

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

.cta-inner h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

/* --- Footer --- */
.footer {
  background: var(--base-100);
  padding: 40px 0;
  border-top: 1px solid var(--base-300);
}

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

.footer-logo {
  height: 24px;
  opacity: 0.7;
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

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

@media (max-width: 540px) {
  .principle-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 96px; }
  .nav-links .btn { padding: 8px 14px; font-size: 0.85rem; }
}
