/* =========================================================
   Global Reset & Base Styles
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2933;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f9fafb 100%
  );
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Core Layout (Homepage + Page 2)
========================================================= */

.container {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;

  animation: fadeUp 0.8s ease-out both;
}

.content {
  max-width: 520px;
}

/* =========================================================
   Typography
========================================================= */

h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  margin: 0 0 12px 0;
}

h2 {
  font-size: 1.125rem;
  font-weight: 400;
  color: #4b5563;
  margin: 0;
}

/* Editorial divider */
.rule {
  width: 48px;
  height: 1px;
  background: #d1d5db;
  margin: 24px 0;
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 20px 0;
}

/* Homepage-only emphasis blocks */
.thought {
  font-size: 0.95rem;
  font-style: italic;
  color: #4b5563;
  max-width: 480px;
}

.focus {
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 480px;
  margin-bottom: 32px;
}

/* =========================================================
   Links
========================================================= */

.links {
  display: flex;
  gap: 24px;
}

.links a {
  font-size: 0.9rem;
  color: #111827;
  text-decoration: none;
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.links a:hover::after {
  transform: scaleX(1);
}

.links a:hover {
  color: #6b7280;
}

/* =========================================================
   Image Treatment (Shared Role)
========================================================= */

.image {
  position: relative;
}

.image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  filter: contrast(1.05);
}

/* Soft vignette */
.image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.04),
    transparent 60%
  );
  pointer-events: none;
}

/* =========================================================
   Motion
========================================================= */

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

/* =========================================================
   Page 2 (Solution Snapshot)
   Mirrors homepage layout exactly
========================================================= */

.page2 {
  align-items: center;
}

/* Slightly tighter paragraph rhythm for snapshot reading */
.page2-content p {
  margin-bottom: 20px;
}

/* Concept image behaves like portrait */
.page2-image img {
  max-width: 440px; /* subtle emphasis over portrait */
  width: 100%;
  height: auto;
  opacity: 0.95;
}

/* =========================================================
   Mobile Optimization (Global)
========================================================= */

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

  .content {
    order: 2;
  }

  .image {
    order: 1;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1rem;
  }

  p {
    font-size: 0.95rem;
  }

  .thought,
  .focus {
    margin-left: auto;
    margin-right: auto;
  }

  .rule {
    margin: 24px auto;
  }

  .links {
    justify-content: center;
  }

  .image img {
    max-width: 300px;
  }

  /* Page 2 image mirrors homepage on mobile */
  .page2-image img {
    max-width: 320px;
  }
}
