/* ========================================
   ImHomi Landing Page — styles.css
   ======================================== */

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

:root {
  --teal:   #2D6E7E;
  --teal-dark: #1F4F5C;
  --coral:  #E8614A;
  --coral-dark: #D14E38;
  --green:  #3DBDA0;
  --green-dark: #2FA88B;
  --white:  #FFFFFF;
  --light:  #F0F7F8;
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.2);
  --shadow: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  color: var(--white);
  background: var(--teal);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------- Utilities ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.header.scrolled {
  background: var(--teal-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 0.6rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  transition: opacity var(--transition);
}
.logo:hover .logo-img { opacity: 0.85; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1rem 4rem;
  background: linear-gradient(170deg, var(--teal) 0%, var(--teal-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--green);
}
.hero::before { width: 500px; height: 500px; top: -150px; right: -100px; }
.hero::after  { width: 350px; height: 350px; bottom: -100px; left: -80px; }

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 .highlight { color: var(--coral); }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: default;
  opacity: 0.7;
  transition: var(--transition);
  position: relative;
}
.store-btn svg { width: 22px; height: 22px; fill: currentColor; }
.store-btn .soon {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ---------- Section shared ---------- */
section { padding: 5rem 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.section-subtitle {
  text-align: center;
  opacity: 0.75;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features { background: var(--teal); }

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  background: rgba(61,189,160,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ---------- How it works ---------- */
.how-it-works { background: var(--teal-dark); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-number {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.92rem;
  opacity: 0.8;
}

/* Connector arrows between steps */
.step-connector {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--coral);
}

/* ---------- Coming Soon / CTA ---------- */
.cta {
  background: var(--coral);
  text-align: center;
  padding: 4rem 0;
}
.cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.cta .store-buttons .store-btn {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-dark);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--white);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--green); }
.footer p {
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.75);
}
.footer .email-link { color: var(--green); font-weight: 600; }

.footer-brand {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-brand img {
  height: 28px;
  width: auto;
}
.footer-brand:hover { color: rgba(255,255,255,0.9); }

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--light);
  color: #333;
  min-height: 100vh;
}
.legal-page .header { background: var(--teal-dark); }

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}
.legal-content h1 {
  color: var(--teal);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.legal-content .date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-content h2 {
  color: var(--teal);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.legal-content a {
  color: var(--coral);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--teal-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
