/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
  /* Warm light palette matching the portfolio */
  --accent: #E76F51;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-alt: #F3EFE9;
  --text: #222222;
  --muted: #6E6A65;
  --border: #E8E2DA;
  
  /* Shadows & Radii */
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px rgba(231, 111, 81, 0.25);
  --radius-card: 20px;
  --radius-btn: 99px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .nav-wordmark, .small-card-title, .about-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

p {
  margin-top: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  box-sizing: border-box;
  background: rgba(250, 248, 245, 0.85); /* Matches --bg with transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-back:hover {
  color: var(--text);
}

.nav-wordmark {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 10rem 5% 6rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 540px;
}

/* Reusable eyebrow pill */
.eyebrow, .feature-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.coral {
  color: var(--accent);
  font-style: italic; /* Nod to portfolio styling */
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Primary Button */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.play-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Phone Mockup Component (Xiaomi 12x / 20:9 ratio)
   ========================================================================== */
.phone-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 270px;
  height: 600px; /* 270x600 creates an exact 9:20 aspect ratio */
  background: var(--surface);
  border: 10px solid #222222;
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* Xiaomi 12x Hole-punch camera */
.phone::before {
  content: '';
  position: absolute;
  top: 14px; /* Slight padding from top */
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #111111;
  border-radius: 50%;
  z-index: 2;
  box-shadow: inset 0 0 3px rgba(255,255,255,0.15); /* Subtle lens reflection */
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the screenshot perfectly fills the 20:9 space */
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* ==========================================================================
   Dividers
   ========================================================================== */
.chalk {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.feature > div {
  flex: 1;
}

.feature-heading {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.feature-body {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Small Cards Grid */
.small-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.small-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.small-card:hover {
  transform: translateY(-5px);
}

.small-icon {
  width: 56px;
  height: 56px;
  background: var(--surface-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.small-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.small-card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.small-card-body {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-wrap {
  background: var(--surface);
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-photo {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-card);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-links {
  display: flex;
  gap: 1rem;
}

.about-link {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.about-link:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
}

/* ==========================================================================
   Quick Facts Strip
   ========================================================================== */
.strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem 5%;
  background: var(--bg);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strip-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.strip-text {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 5% 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--text);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .about {
    flex-direction: column;
    text-align: center;
  }
  
  .about-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .feature {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  /* Keep text on top, phone on bottom for mobile consistency */
  .feature { flex-direction: column; }
  .feature--flip { flex-direction: column-reverse; }

  .small-pair {
    grid-template-columns: 1fr;
  }
  
  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .strip {
    gap: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    max-width: fit-content;
    margin: 0 auto;
  }
}