/* ─── apps.css — /apps/ page styles ─────────────────────────────────────── */

/* ── PAGE HERO ───────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  padding: 14rem 5vw 7rem;
  background: var(--ink);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#page-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.page-hero-content .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-hero-content h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(60px);
  animation: pageUp 1s 0.3s var(--ease) forwards;
}

@keyframes pageUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── INTRO ───────────────────────────────────────────────────────────────── */

.apps-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apps-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

/* ── APP SECTION (one per app) ───────────────────────────────────────────── */

.app-section {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7rem 5vw;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.app-section[data-in-view] {
  opacity: 1;
  transform: translateY(0);
}

.app-section:nth-child(2)[data-in-view] { transition-delay: 0.05s; }
.app-section:nth-child(3)[data-in-view] { transition-delay: 0.1s; }
.app-section:nth-child(4)[data-in-view] { transition-delay: 0.15s; }

.app-section-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Alternate: even sections flip screenshots to the left */
.app-section:nth-child(even) .app-screenshots { order: -1; }

/* ── APP ICON + NAME ROW ─────────────────────────────────────────────────── */

.app-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-icon {
  width: clamp(2.25rem, 4.5vw, 4.5rem);
  height: clamp(2.25rem, 4.5vw, 4.5rem);
  border-radius: 22%;
  flex-shrink: 0;
}

/* ── APP INFO ─────────────────────────────────────────────────────────────── */

.app-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  margin-bottom: 2rem;
}

.app-name {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 0;
}

.app-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.app-desc {
  font-size: 0.93rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ── APP STORE BUTTON ────────────────────────────────────────────────────── */

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: #000;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}

.app-store-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.app-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.app-store-btn svg { flex-shrink: 0; width: 1em; height: 1em; }

.app-store-btn-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  cursor: default;
}

/* ── SCREENSHOTS ─────────────────────────────────────────────────────────── */

.app-screenshots {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: center;
}

.screenshot-phone {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Second phone slightly taller for depth */
.app-screenshots .screenshot-phone:nth-child(2) {
  width: 175px;
}

.screenshot-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-mac {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screenshot-mac-bar {
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.4rem;
  flex-shrink: 0;
}

.screenshot-mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.screenshot-mac-body {
  display: block;
}

.screenshot-mac-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clockwise is a small floating clock — show it as a compact widget */
.screenshot-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 200px;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .page-hero { padding: 11rem 1.5rem 5rem; }

  .app-section { padding: 4rem 1.5rem; }

  .app-section-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .app-section:nth-child(even) .app-screenshots { order: 0; }

  .app-screenshots { justify-content: flex-start; }

  .screenshot-mac { max-width: 100%; }
}

@media (max-width: 520px) {
  .page-hero-content h1 { font-size: clamp(3rem, 16vw, 4.5rem); }

  .screenshot-phone       { width: 120px; }
  .app-screenshots .screenshot-phone:nth-child(2) { width: 132px; }
}
