/* ═══════════════════════════════════════════════
   Huo Life — Premium Minimal Website
   huo.life
   ═══════════════════════════════════════════════ */

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

:root {
  --white: #ffffff;
  --bg: #fafaf9;
  --bg-warm: #f7f6f4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(0, 0, 0, 0.04);
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9a9a9a;
  --accent: #3d4f5f;
  --accent-light: #5a7a8a;
  --green: #3a8a6a;
  --green-bg: rgba(58, 138, 106, 0.06);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--white);
}
.btn-primary:hover { background: #333; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(0,0,0,0.1);
}
.btn-ghost:hover { border-color: rgba(0,0,0,0.2); color: var(--text-primary); }

.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--text-primary) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 100px !important;
  font-size: 0.8rem !important;
}
.nav-cta:hover { background: #333 !important; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background: var(--white);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--text-tertiary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 100%; max-width: 520px;
  animation: float 6s ease-in-out infinite;
}

.phone-img {
  border-radius: 28px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

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

/* ── Sections ── */
.section {
  padding: 120px 24px;
}

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

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Why Section ── */
.section-why { background: var(--bg); }

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 48px;
}

.why-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.why-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}

.fragment {
  background: var(--white);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
}

.fragment-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.why-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.why-emphasis {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

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

.floating-cards {
  position: relative;
  width: 320px;
  height: 320px;
}

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.fc-icon { font-size: 1.3rem; }
.fc-text { color: var(--text-secondary); }

.fc-1 { top: 10px; left: 0; animation: floatCard1 8s ease-in-out infinite; }
.fc-2 { top: 90px; right: 0; animation: floatCard2 9s ease-in-out infinite; }
.fc-3 { top: 170px; left: 20px; animation: floatCard3 7s ease-in-out infinite; }
.fc-4 { top: 250px; right: 20px; animation: floatCard4 10s ease-in-out infinite; }

@keyframes floatCard1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -8px); } }
@keyframes floatCard2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, -6px); } }
@keyframes floatCard3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -4px); } }
@keyframes floatCard4 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -10px); } }

/* ── Features Grid ── */
.section-features { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.04);
  background: var(--white);
}

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

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

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

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Different Section ── */
.section-different { background: var(--bg); }

.different-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 48px;
}

.different-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.different-text em { font-style: italic; color: var(--text-primary); }

.connections {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.connection {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.04);
}

.conn-from {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  min-width: 100px;
}

.conn-arrow {
  color: var(--text-tertiary);
  font-size: 1.1rem;
}

.conn-to {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.different-emphasis {
  margin-top: 28px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  line-height: 1.7 !important;
}

.different-emphasis strong { color: var(--green); }

.privacy-badge {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--surface-border);
}

.privacy-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.privacy-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--green);
}

.privacy-badge h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.privacy-badge p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Future Section ── */
.section-future { background: var(--white); }

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.future-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.future-item:hover {
  background: var(--green-bg);
  color: var(--text-primary);
}

.future-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.5;
  flex-shrink: 0;
}

.future-item:hover .future-dot { opacity: 1; }

.future-note {
  font-size: 1rem;
  color: var(--text-tertiary);
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ── CTA Section ── */
.section-cta {
  background: var(--bg);
  text-align: center;
  padding: 140px 24px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.035em;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

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

/* ── Footer ── */
.footer {
  padding: 48px 24px;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-body { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .why-content { grid-template-columns: 1fr; gap: 48px; }
  .different-content { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-mockup { width: 90%; max-width: 520px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  }
  .features-grid { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
  .section-cta { padding: 100px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: 3rem; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .floating-cards { width: 280px; height: 280px; }
  .float-card { padding: 12px 18px; font-size: 0.8rem; }
}


/* Marketing frame sizing */
.marketing-frame {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  margin: 0 auto;
  display: block;
}

.hero-visual .marketing-frame,
.hero-visual img {
  max-width: 600px !important;
  width: 100% !important;
}

.cta-visual {
  margin-bottom: 3rem;
}

.cta-visual .marketing-frame {
  max-width: 520px;
}

@media (min-width: 768px) {
  .hero-visual .marketing-frame,
  .hero-visual img {
    max-width: 700px !important;
  }
}


/* ═══ Readability Fixes ═══ */

/* Darken body text from light gray to readable dark */
body {
  color: #2a2a2a !important;
}

/* Bump base font to 17px for better mobile readability */
html {
  font-size: 17px !important;
}

/* Darken and bump hero subtitle */
.hero-subtitle {
  color: #444 !important;
  font-weight: 500 !important;
}

/* Darken hero body text */
.hero-body {
  color: #3a3a3a !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
}

/* Section subtitles — more visible */
.section-subtitle {
  color: #444 !important;
  font-size: 1.15rem !important;
}

/* Feature card text — darker and more readable */
.feature-card p {
  color: #444 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.feature-card h3 {
  color: #1a1a1a !important;
}

/* Why section body */
.why-body {
  color: #3a3a3a !important;
  font-size: 1.1rem !important;
}

/* Connection labels */
.conn-from, .conn-to {
  color: #333 !important;
}

/* Different section text */
.different-text p {
  color: #3a3a3a !important;
  font-size: 1.05rem !important;
}

.different-emphasis {
  color: #1a1a1a !important;
}

/* Future items */
.future-item span {
  color: #333 !important;
  font-size: 1rem !important;
}

.future-note {
  color: #444 !important;
  font-size: 1rem !important;
}

/* CTA subtitle */
.cta-subtitle {
  color: #444 !important;
  font-size: 1.15rem !important;
}

/* Footer text */
.footer-copy {
  color: #666 !important;
}

/* Nav links — slightly darker */
.nav-link {
  color: #333 !important;
}

/* QR Code section */
.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.qr-code {
  width: 140px;
  height: 140px;
  background: #f5f5f3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
}

.qr-code img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
}

.qr-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

.qr-placeholder {
  color: #999;
  font-size: 0.8rem;
  text-align: center;
}

/* Hero QR code — next to buttons */
.hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
}

.hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-qr .qr-code {
  width: 100px;
  height: 100px;
}

.hero-qr .qr-label {
  font-size: 0.75rem;
}
