/* SwissFlora — Landing Page Styles */

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

:root {
  --green-dark: #2d5a27;
  --green-mid: #4a7c3f;
  --green-light: #7aab6d;
  --green-pale: #e8f2e5;
  --cream: #faf8f3;
  --warm-white: #ffffff;
  --text-dark: #1a2e17;
  --text-mid: #3d5c38;
  --text-muted: #7a9175;
  --accent: #c17f3a;
  --border: #d4e4cf;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  background: var(--green-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a7c3f' fill-opacity='0.3'%3E%3Cpath d='M30 30c0-11 9-20 20-20v20H30z'/%3E%3Cpath d='M30 30c0 11-9 20-20 20V30h20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.badge {
  display: inline-block;
  background: rgba(193, 127, 58, 0.2);
  border: 1px solid rgba(193, 127, 58, 0.5);
  color: #e8b878;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  position: relative;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: #a8d49b;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 1.5rem auto 3rem;
  position: relative;
  font-weight: 300;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.cta-primary:hover {
  background: #a86a28;
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Stats ── */

.stats {
  background: var(--warm-white);
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Sections ── */

.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ── Feature Cards ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 1.8;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Illustrations Section ── */

.illus-section {
  background: var(--green-dark);
  padding: 5rem 2rem;
}

.illus-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.illus-text .section-label {
  color: #a8d49b;
}

.illus-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.2;
}

.illus-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}

.illus-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.illus-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.illus-card svg {
  width: 100%;
  height: 70px;
}

.illus-card-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* ── Audience ── */

.audience {
  padding: 5rem 2rem;
  background: var(--warm-white);
}

.audience-inner {
  max-width: 860px;
  margin: 0 auto;
}

.audience h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.audience-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
}

.audience-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--green-mid);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── Sources ── */

.sources {
  background: var(--cream);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.sources-inner {
  max-width: 860px;
  margin: 0 auto;
}

.sources h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.sources-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 200px;
}

.source-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-mid);
  flex-shrink: 0;
}

.source-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.source-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Privacy Banner ── */

.privacy-banner {
  background: var(--green-pale);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.privacy-inner {
  max-width: 600px;
  margin: 0 auto;
}

.privacy-icon {
  width: 48px;
  height: 48px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.privacy-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.privacy-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.privacy-banner p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Footer ── */

footer {
  background: var(--green-dark);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

footer p + p {
  margin-top: 8px;
}

footer strong {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .illus-inner {
    grid-template-columns: 1fr;
  }

  .illus-visual {
    display: none;
  }
}

/* ── Screenshots Section ── */

.screenshots-section {
  background: var(--cream);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 3rem;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phone-frame {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(45, 90, 39, 0.18), 0 4px 16px rgba(45, 90, 39, 0.12);
  border: 2px solid rgba(45, 90, 39, 0.12);
  width: 180px;
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: translateY(-6px);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-featured .phone-frame {
  width: 220px;
  box-shadow: 0 28px 80px rgba(45, 90, 39, 0.25), 0 6px 24px rgba(45, 90, 39, 0.15);
}

.screenshot-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  font-weight: 400;
}

/* ── Illustration Phones ── */

.illus-screens {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illus-phone {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.illus-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.illus-phone-back {
  width: 160px;
  top: 20px;
  right: 0;
  opacity: 0.75;
  transform: rotate(6deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.illus-phone-front {
  width: 190px;
  bottom: 0;
  left: 0;
  transform: rotate(-4deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
  .screenshots-grid {
    flex-direction: column;
    align-items: center;
  }

  .screenshot-featured .phone-frame,
  .phone-frame {
    width: 200px;
  }

  .illus-screens {
    display: none;
  }
}
