/* ====================================
   CSS Reset & Base Styles
   ==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Planzu Brand Colors */
  --teal-primary: #0a838e;
  --teal-dark: #087880;
  --teal-light: #0d9fad;
  --teal-bg: #a8d5d8;
  --teal-subtle: #e0f2f3;

  /* Accent Colors */
  --coral-accent: #e08c7c;
  --peach-accent: #f4a582;
  --warm-beige: #f5f1e8;

  /* Neutrals */
  --gray-dark: #2d3748;
  --gray-medium: #4a5568;
  --gray-light: #e2e8f0;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Lobster', cursive;
  --font-header: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 12px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

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

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

/* ====================================
   Hero Section
   ==================================== */
.hero-wrapper {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-primary) 100%);
}

.hero {
    min-height: 80vh;
    display: grid;
    grid-template-areas:
        "content"
        "media";
    align-items: center;
    align-content: center;
    gap: 2rem;
    padding: 3rem var(--spacing-sm);
    position: relative;
    overflow: visible;
}
.hero-media  {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: media;
    max-width: 640px;      /* desktop visual weight */
    width: 100%;
    justify-self: center;  /* center inside grid cell */
    background: none;

}
.hero-media img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--spacing-sm);
  box-sizing: border-box;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
}

.tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 400;
  opacity: 1;
  text-align: center;
  width: 100%;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content media";
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem var(--spacing-md);
    gap: 4rem;
    align-content: center;
  }
  .hero-content {
      max-width: 600px;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
  }
  .hero-media img {
    width: 400px;
    height: auto;
  }
  .logo,
  .tagline,

  .logo {
    font-size: 4.5rem;
  }

  .tagline {
    font-size: 1.375rem;
    line-height: 1.6;
  }
  .app-store-badge {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .app-store-badge img {
    display: block;
  }
}

.cta-button {
  display: inline-flex;
  background-color: var(--coral-accent);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #d67868;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.app-store-badge {
  display: block;
  align-self: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-badge img {
  display: block;
}

/* ====================================
   Showcase Section
   ==================================== */
.showcase {
  padding: 3.5rem var(--spacing-md);
  background-color: var(--teal-subtle);
}

.showcase-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.showcase h2 {
  font-family: var(--font-header);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--teal-primary);
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--gray-medium);
  margin-bottom: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle:last-of-type {
  margin-bottom: 0;
}

.screenshot-container {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(10, 131, 142, 0.15);
  margin-top: 2.5rem;
}

.screenshot-main {
  width: 100%;
  border-radius: 8px;
}

/* ====================================
   Features Section
   ==================================== */
.features {
  padding: 3.5rem var(--spacing-md);
  background-color: var(--white);
}

.feature-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.feature-card.reverse {
  direction: rtl;
}

.feature-card.reverse > * {
  direction: ltr;
}

.feature-image {
  background: var(--teal-subtle);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(10, 131, 142, 0.1);
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image img {
  border-radius: 8px;
  max-width: 300px;
  width: 100%;
  height: auto;
}

.feature-content h3 {
  font-size: 2rem;
  color: var(--teal-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-content p {
  font-size: 1.125rem;
  color: var(--gray-medium);
  line-height: 1.8;
}

/* ====================================
   Principles Section
   ==================================== */
.principles {
  padding: 3.5rem var(--spacing-md);
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-subtle) 100%);
}

.principles-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.principles h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--teal-primary);
  margin-bottom: 1.5rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.principle-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(10, 131, 142, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(10, 131, 142, 0.15);
}

.principle-card h4 {
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 1rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

/* ====================================
   CTA Section
   ==================================== */
.cta-section {
  padding: 4rem var(--spacing-md);
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-light) 100%);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.7;
}

/* ====================================
   Footer
   ==================================== */
footer {
  padding: var(--spacing-lg) var(--spacing-md);
  background-color: var(--teal-dark);
  color: var(--white);
  text-align: center;
}

.footer-year {
  margin-bottom: var(--spacing-sm);
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.footer-nav a {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-nav span {
  opacity: 0.5;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {


  .showcase,
  .features,
  .principles,
  .cta-section {
    padding: 2.5rem var(--spacing-sm);
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .feature-card.reverse {
    direction: ltr;
  }

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

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 3rem;
  }

  .showcase h2,
  .principles h2,
  .cta-section h2 {
    font-size: 1.75rem;
  }

  .feature-content h3 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}
/* Loop Diagram Styles */
.loop-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem auto;
  max-width: 1000px;
  flex-wrap: wrap;
}

.loop-step {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(10, 131, 142, 0.1);
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: var(--teal-primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 600;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.loop-step h4 {
  font-size: 1.375rem;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.loop-step p {
  font-size: 1rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

.loop-arrow {
  font-size: 2rem;
  color: var(--teal-primary);
  font-weight: 300;
}

.screenshot-caption {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-medium);
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.6;
}

/* Mobile Frame Styling */
.mobile-frame {
  position: relative;
  max-width: 375px;
  margin: 0 auto;
}

.mobile-frame img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(10, 131, 142, 0.2);
}

/* Responsive adjustments for loop diagram
@media (max-width: 768px) {
  .loop-diagram {
    flex-direction: column;
  }

  .loop-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }

  .loop-step {
    width: 100%;
    }*/
}
