/* ============================================
   Habita Landing Page
   Light industrial-minimalist design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #EEEEEE;
  --surface: #E4E4E4;
  --accent: #FF4500;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --border: #8C8C8C;
  --tile-border: #E8E8E8;
  --dialog-bg: #F5F5F0;
  --radius: 6px;
  --max-width: 1080px;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* --- Shared Typography --- */
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
}

.hero-text {
  text-align: center;
  max-width: 560px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-oneliner {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
}

.store-badge svg {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.store-badge:hover svg {
  opacity: 0.7;
}

.store-badge--small svg {
  height: 38px;
}

/* Hero image */
.hero-image {
  width: 100%;
  max-width: 280px;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 2px solid var(--border);
}

/* Screenshots */
.screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

/* ============================================
   Pitch
   ============================================ */
.pitch {
  padding: 100px 0;
}

.pitch-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.pitch-body {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
  font-weight: 300;
}

.pitch-body:last-child {
  margin-bottom: 0;
}

.pitch-accent {
  font-size: clamp(1.15rem, 2.5vw, 1.3rem);
  color: var(--text);
  font-weight: 500;
  margin-top: 32px;
}

/* ============================================
   Feeling Blocks
   ============================================ */
.feelings {
  padding: 60px 0 100px;
}

.feeling-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.feeling-block:last-child {
  margin-bottom: 0;
}

.feeling-text {
  max-width: 480px;
}

.feeling-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.feeling-body {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
  font-weight: 300;
}

.feeling-body:last-child {
  margin-bottom: 0;
}

.feeling-body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.feeling-image {
  width: 100%;
  max-width: 340px;
}


/* ============================================
   Variety Showcase
   ============================================ */
.variety {
  padding: 100px 0;
  text-align: center;
  background: var(--dialog-bg);
}

.variety-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 48px;
  font-weight: 300;
}

.variety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.variety-card {
  background: var(--background);
  border: 2px solid var(--tile-border);
  border-radius: var(--radius);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}

.variety-card:hover {
  border-color: var(--border);
}

.variety-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.variety-card span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   Privacy
   ============================================ */
.privacy {
  padding: 100px 0;
}

.privacy-content {
  max-width: 620px;
  margin: 0 auto;
}

.privacy .section-heading {
  text-align: center;
}

.privacy .mono-label {
  text-align: center;
}

.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.privacy-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.privacy-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 2px solid var(--tile-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.privacy-point h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.privacy-point p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 60px 0 40px;
  border-top: 2px solid var(--tile-border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
  font-weight: 300;
}

.footer-badges {
  display: flex;
  gap: 12px;
}

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

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================
   Mobile tweaks (< 768px)
   ============================================ */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 60px 0 48px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    max-width: 220px;
  }

  .feeling-block {
    margin-bottom: 72px;
    gap: 28px;
  }

  .feeling-image {
    max-width: 260px;
  }
}

/* ============================================
   Desktop (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
  }

  .hero-text {
    text-align: left;
    flex: 1;
  }

  .store-badges {
    justify-content: flex-start;
  }

  .hero-image {
    flex-shrink: 0;
  }

  /* Feeling blocks: side-by-side */
  .feeling-block {
    flex-direction: row;
    gap: 60px;
  }

  .feeling-block--reverse {
    flex-direction: row-reverse;
  }

  .feeling-text {
    flex: 1;
  }

  .feeling-image {
    flex-shrink: 0;
    max-width: 300px;
  }

  /* Variety grid: 4 cols */
  .variety-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 560px;
  }

  /* Footer: row layout */
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   Large desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero {
    padding: 0;
  }

  .hero-image {
    max-width: 320px;
  }

  .feeling-block {
    gap: 80px;
  }

  .variety-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 660px;
    gap: 12px;
  }
}

/* ============================================
   Entrance Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}