/* =============================================
   ECHOMEMO — style.css (Landing page)
   ============================================= */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --navy:      #0F1F3D;
  --navy-mid:  #1A3260;
  --teal:      #3ECFB2;
  --teal-dark: #28A896;
  --white:     #F7F9FC;
  --grey-100:  #EEF1F6;
  --grey-400:  #8A97AD;
  --text:      #1C2B45;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Sora', sans-serif;

  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(15, 31, 61, 0.10);
  --shadow-lg: 0 12px 48px rgba(15, 31, 61, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 207, 178, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--grey-400);
  border-color: transparent;
  font-weight: 400;
}
.btn--ghost:hover { color: var(--navy); }

.btn--large { padding: 15px 36px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--teal);
  font-size: 1.3rem;
}

/* ---------- Section helpers ---------- */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--grey-400);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 64px;
  position: relative;
  overflow: hidden;
}

.hero__bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(62, 207, 178, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 207, 178, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__content {
  flex: 1;
  min-width: 0;
  animation: fadeUp 0.7s ease both;
}

.hero__badge {
  display: inline-block;
  background: rgba(62, 207, 178, 0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(62, 207, 178, 0.3);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero__headline em {
  font-style: italic;
  color: var(--teal-dark);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--grey-400);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Hero visual ---------- */
.hero__visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeUp 0.7s 0.15s ease both;
}

.mock-card {
  width: 100%;
  max-width: 380px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-card__header {
  background: #0a1629;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.mock-dot.red    { background: #FF5F57; }
.mock-dot.amber  { background: #FFBD2E; }
.mock-dot.green  { background: #28CA41; }

.mock-card__title {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-left: 8px;
  font-family: 'Courier New', monospace;
}

.mock-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-line {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  animation: shimmer 1.8s infinite;
}
.mock-line.wide   { width: 90%; }
.mock-line.medium { width: 65%; }
.mock-line.short  { width: 40%; }

.mock-spacer { height: 6px; }

.mock-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  color: var(--grey-400);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  width: fit-content;
}
.mock-tag.teal { color: var(--teal); background: rgba(62,207,178,0.12); }

/* Waveform */
.hero__waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
}

.hero__waveform span {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--teal);
  opacity: 0.6;
  animation: wave 1.2s ease-in-out infinite;
}

.hero__waveform span:nth-child(1)  { height: 12px; animation-delay: 0.0s; }
.hero__waveform span:nth-child(2)  { height: 24px; animation-delay: 0.1s; }
.hero__waveform span:nth-child(3)  { height: 32px; animation-delay: 0.2s; }
.hero__waveform span:nth-child(4)  { height: 20px; animation-delay: 0.3s; }
.hero__waveform span:nth-child(5)  { height: 36px; animation-delay: 0.4s; }
.hero__waveform span:nth-child(6)  { height: 28px; animation-delay: 0.5s; }
.hero__waveform span:nth-child(7)  { height: 40px; animation-delay: 0.6s; }
.hero__waveform span:nth-child(8)  { height: 28px; animation-delay: 0.5s; }
.hero__waveform span:nth-child(9)  { height: 36px; animation-delay: 0.4s; }
.hero__waveform span:nth-child(10) { height: 20px; animation-delay: 0.3s; }
.hero__waveform span:nth-child(11) { height: 32px; animation-delay: 0.2s; }
.hero__waveform span:nth-child(12) { height: 24px; animation-delay: 0.1s; }
.hero__waveform span:nth-child(13) { height: 12px; animation-delay: 0.0s; }
.hero__waveform span:nth-child(14) { height: 18px; animation-delay: 0.15s; }
.hero__waveform span:nth-child(15) { height: 8px;  animation-delay: 0.05s; }

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
  background: var(--grey-100);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--grey-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- How it works ---------- */
.how {
  padding: 100px 0;
}

.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(62, 207, 178, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  color: var(--grey-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step__arrow {
  font-size: 1.8rem;
  color: var(--teal);
  padding-top: 40px;
  flex-shrink: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--navy);
  padding: 80px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--grey-100);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--grey-400);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 0.9; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.18; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    gap: 48px;
  }

  .hero__visual { display: none; }

  .how__steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); padding-top: 0; }

  .cta-banner__inner { flex-direction: column; text-align: center; }

  .nav__inner { padding: 16px 20px; }
  .section-inner { padding: 0 20px; }
}

