/* ============================================
   Lumis Landing Page
   Brand: Philosophical Lighthouse
   ============================================ */

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

:root {
  --deep-navy: #012278;
  --deep-navy-dark: #011a60;
  --soft-blue: #7DC4E4;
  --cream: #FEFEFC;
  --warm-white: #FEFEFC;
  --cream-dark: #f4f3ef;
  --light-grey: #E8EBED;
  --text-primary: #2C3E50;
  --text-secondary: rgba(44, 62, 80, 0.7);
  --text-tertiary: rgba(44, 62, 80, 0.4);
  --warm-gold: #D4A574;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  color: var(--deep-navy);
  line-height: 1.15;
  font-weight: 700;
}

/* --- Floating Mascot --- */
.floating-mascot {
  position: fixed;
  left: -90px;
  bottom: -80px;
  z-index: 50;
  pointer-events: none;
  transform: rotate(12deg);
}

.floating-mascot img {
  width: 320px;
  height: auto;
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
}

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

.hero-content {
  flex: 1;
  max-width: 520px;
}

/* Brand mark above title */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-brand-name {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: var(--deep-navy);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 400px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  background: var(--deep-navy);
  padding: 16px 36px;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(1, 34, 120, 0.2);
}

.hero-cta:hover {
  background: var(--deep-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(1, 34, 120, 0.3);
}

.apple-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Phone mockup */
.hero-phone {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 -8px 30px rgba(0, 0, 0, 0.08),
    0 -2px 10px rgba(0, 0, 0, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.12);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.phone-placeholder-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  opacity: 0.5;
}

/* --- Features --- */
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-header {
  max-width: 600px;
  margin-bottom: 24px;
}

.features-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--deep-navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.features-subheading {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

/* Three-column grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card:nth-child(2) {
  transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.2s;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-screenshot {
  margin-bottom: 12px;
}

.screenshot-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--warm-white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--light-grey);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

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

/* --- Footer --- */
.footer {
  background: var(--deep-navy);
  padding: 48px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  width: 56px;
  height: auto;
  opacity: 0.9;
}

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

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-phone {
  animation: fadeInUp 1s ease-out 0.15s both;
}

.features-header {
  animation: fadeInUp 0.7s ease-out;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 24px 60px;
    gap: 48px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .features-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
    gap: 48px;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
  }

  .floating-mascot {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 20px 48px;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .features {
    padding: 48px 20px 60px;
  }

  .footer {
    padding: 36px 20px;
  }

  .phone-mockup {
    width: 200px;
    height: 420px;
    border-radius: 36px;
    padding: 10px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .phone-mockup::before {
    width: 80px;
    height: 22px;
    top: 10px;
  }
}
