/* ==========================================================
   miniLook Marketing Website — styles.css
   ========================================================== */

/* --- Custom Properties ------------------------------------ */
:root {
  /* Colors */
  --color-bg:              #f5f4fb;
  --color-surface:         rgba(255, 255, 255, 0.65);
  --color-surface-border:  rgba(255, 255, 255, 0.5);
  --color-primary:         #7c4dff;
  --color-primary-dark:    #5e35b1;
  --color-accent:          #ff6b8a;
  --color-text:            #1c1a2e;
  --color-text-muted:      #6b6880;
  --color-blob-a:          rgba(124, 77, 255, 0.18);
  --color-blob-b:          rgba(255, 107, 138, 0.15);
  --color-blob-c:          rgba(124, 77, 255, 0.09);

  /* Typography */
  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (8pt grid) */
  --sp-1:   0.5rem;
  --sp-2:   1rem;
  --sp-3:   1.5rem;
  --sp-4:   2rem;
  --sp-6:   3rem;
  --sp-8:   4rem;
  --sp-12:  6rem;

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(28, 26, 46, 0.06);
  --shadow-md:  0 8px 32px rgba(28, 26, 46, 0.10);
  --shadow-lg:  0 24px 64px rgba(28, 26, 46, 0.16);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   420ms cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* Offset anchor links for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* --- Utilities -------------------------------------------- */

/* Glassmorphism surface */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.55s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section header block */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--sp-8);
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: var(--sp-2);
}

/* --- Button System ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--r-md);
  transition:
    transform   var(--t-fast),
    box-shadow  var(--t-fast),
    background  var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(124, 77, 255, 0.38);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 77, 255, 0.48);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.28);
}

.btn-lg {
  padding: 0.9rem 2.1rem;
  font-size: 1.05rem;
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: 0.48rem 1.1rem;
  font-size: 0.875rem;
}

/* --- Navigation ------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background    var(--t-base),
    box-shadow    var(--t-base),
    backdrop-filter var(--t-base);
}

.site-nav.scrolled {
  background: rgba(245, 244, 251, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(124, 77, 255, 0.08), var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.nav-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

/* --- Hero ------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px var(--sp-4) var(--sp-8);
}

/* Animated background blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}

.blob-a {
  width: 580px;
  height: 580px;
  background: var(--color-blob-a);
  top: -130px;
  left: -170px;
  animation: blobDrift 18s ease-in-out infinite alternate;
}

.blob-b {
  width: 440px;
  height: 440px;
  background: var(--color-blob-b);
  bottom: -110px;
  right: -110px;
  animation: blobDrift 13s ease-in-out infinite alternate-reverse;
}

.blob-c {
  width: 300px;
  height: 300px;
  background: var(--color-blob-c);
  top: 42%;
  left: 60%;
  animation: blobDrift 22s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  0%   { transform: translate(0,    0)    scale(1);    }
  50%  { transform: translate(30px, -22px) scale(1.07); }
  100% { transform: translate(-18px, 32px) scale(0.95); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* Floating mascot */
.hero-mascot-wrap {
  animation: float 4.5s ease-in-out infinite;
}

.hero-mascot {
  width: clamp(130px, 20vw, 200px);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(124, 77, 255, 0.28));
}

@keyframes float {
  0%, 100% { transform: translateY(0px)   rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg);  }
}

.hero-headline {
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(140deg, var(--color-text) 0%, var(--color-primary) 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: var(--sp-1);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Scroll hint chevron */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  opacity: 0.45;
  animation: scrollHint 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.2;  }
}

/* --- Metrics Strip ---------------------------------------- */
.metrics-strip {
  padding: var(--sp-8) var(--sp-4);
}

.metrics-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-3);
  max-width: 1000px;
  margin: 0 auto;
}

.metric-card {
  padding: var(--sp-3) var(--sp-3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-bottom: var(--sp-2);
}

.metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.metric-label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* --- Features --------------------------------------------- */
.features {
  padding: var(--sp-12) var(--sp-4);
  position: relative;
  overflow: hidden;
}

/* Background accent blob for glass contrast */
.features-bg-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  background: rgba(255, 107, 138, 0.08);
  border-radius: 50%;
  filter: blur(90px);
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.features-content {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: default;
}

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

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.13), rgba(255, 107, 138, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon {
  color: var(--color-primary);
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
}

.feature-desc {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- How It Works ----------------------------------------- */
.how-it-works {
  padding: var(--sp-12) var(--sp-4);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(124, 77, 255, 0.035) 25%,
    rgba(124, 77, 255, 0.035) 75%,
    transparent 100%
  );
}

.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-3);
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 185px;
  max-width: 225px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.step-number {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(124, 77, 255, 0.16);
  letter-spacing: -0.04em;
  margin-bottom: -0.5rem;
}

.step-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.13), rgba(255, 107, 138, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.step-connector {
  flex: 0 0 auto;
  padding-top: 68px;
  color: rgba(124, 77, 255, 0.28);
}

/* --- CTA Section ------------------------------------------ */
.cta-section {
  padding: var(--sp-12) var(--sp-4);
}

.cta-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  position: relative;
  overflow: hidden;
}

/* Subtle inner gradient overlay */
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 77, 255, 0.06) 0%,
    rgba(255, 107, 138, 0.05) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

.cta-mascot-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.cta-mascot {
  width: clamp(90px, 14vw, 140px);
  filter: drop-shadow(0 10px 24px rgba(124, 77, 255, 0.24));
}

.cta-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.cta-footnote {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--sp-1);
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  padding: var(--sp-8) var(--sp-4);
  border-top: 1px solid rgba(124, 77, 255, 0.09);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-wordmark {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: var(--sp-3);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--t-fast);
}

.footer-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

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

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .blob-a { width: 400px; height: 400px; }
  .blob-b { width: 320px; height: 320px; }
  .blob-c { width: 220px; height: 220px; }
}

@media (max-width: 768px) {
  /* Hide text nav links on small screens, keep CTA */
  .nav-link { display: none; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: var(--sp-6) var(--sp-4);
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .step-connector {
    display: none;
  }

  .steps-flow {
    gap: var(--sp-4);
  }
}

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-flow {
    flex-direction: column;
    align-items: center;
  }

  .step {
    min-width: 90%;
    max-width: 100%;
  }

  .hero-mascot {
    width: 110px;
  }

  .cta-mascot {
    width: 80px;
  }

  .cta-inner {
    padding: var(--sp-4);
  }
}

/* --- Accessibility: Reduced Motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-hint {
    display: none;
  }
}
