/* ============================================================
   MileMan Website Styles
   ============================================================ */

:root {
  --primary-color: #d4af37;   /* Gold accent */
  --bg-color:      #121212;
  --card-bg:       #1e1e1e;
  --text-color:    #ffffff;
  --text-muted:    #aaaaaa;
  --border-radius: 12px;
  --font-family:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { border-radius: 10px; }
.logo h1 { font-size: 1.4rem; font-weight: 700; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn-sm   { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 14px 28px; font-size: 1.1rem; }

/* App Store button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  transition: opacity 0.2s, transform 0.18s;
  white-space: nowrap;
}
.app-store-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.app-store-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  color: #ccc;
}
.app-store-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.apple-logo { flex-shrink: 0; }

.app-store-btn-lg {
  padding: 16px 28px;
}
.app-store-btn-lg .app-store-text strong {
  font-size: 1.15rem;
}

/* ============================================================
   Platform badge ("iPhone App")
   ============================================================ */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eee;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

/* ============================================================
   PHONE MOCKUP COMPONENTS
   ============================================================
   The bezel PNGs are iPhone 17 Pro portrait frames (1350×2760 px).
   The transparent "screen hole" sits at:
     top:    7.97% of total height
     left:   5.33% of total width
     width:  89.26% of total width
     height: 89.49% of total height
   ============================================================ */

/* Container that holds both the screen layer and bezel overlay */
.phone-frame {
  position: relative;
  flex-shrink: 0;
  /* Default (hero) size — override with .phone-sm / .phone-md */
  width: 270px;
  aspect-ratio: 1350 / 2760;  /* preserves iPhone 17 Pro portrait ratio */
}

/* The clipped screen area – sits BELOW the bezel */
.phone-screen {
  position: absolute;
  top:    7.97%;
  left:   5.33%;
  width:  89.26%;
  height: 89.49%;
  border-radius: 11%;  /* matches iPhone screen rounded corners */
  overflow: hidden;
  z-index: 0;
  background: #0a0d14;
}

/* Placeholder shown until real screenshots are added */
.screen-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #1b2236 0%, #0a0e1a 45%, #111520 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: screenPulse 5s ease-in-out infinite;
}

@keyframes screenPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.placeholder-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  opacity: 0.45;
  filter: grayscale(20%);
}
.placeholder-icon.sm {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

/* Real screenshot image */
.screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The bezel PNG — overlaid on top of the screen, z-index: 1 */
.phone-bezel {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  /* Drop shadow gives the phone depth */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65))
          drop-shadow(0  8px 20px rgba(0, 0, 0, 0.45));
}

/* Size variants */
.phone-frame.phone-sm { width: 196px; }
.phone-frame.phone-md { width: 236px; }

/* ============================================================
   HERO — two-column layout
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px 24px 80px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Hero phone — centered, with a subtle glow behind it */
.hero-phone {
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(ellipse at center,
    rgba(212, 175, 55, 0.18) 0%,
    transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   APP PREVIEW — three tilted iPhones
   ============================================================ */
.app-preview {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg,
    var(--bg-color) 0%,
    #0b0e17 40%,
    #0b0e17 60%,
    var(--bg-color) 100%);
  overflow: hidden;
}

.app-preview h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

.phones-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 20px 24px 60px;
}

.phone-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Tilt the side phones inward and lower them */
.phone-showcase.phone-left  { transform: rotate(-7deg)  translateY(28px); }
.phone-showcase.phone-right { transform: rotate( 7deg)  translateY(28px); }
.phone-showcase.phone-center { transform: translateY(0); }

.phone-caption {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 60px 24px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--border-radius);
  text-align: center;
}
.feature-card h3 { margin-bottom: 12px; color: var(--primary-color); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 60px 24px; text-align: center; }
.pricing h2 { margin-bottom: 40px; }

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--border-radius);
  text-align: left;
}
.pricing-card.premium { border: 2px solid var(--primary-color); }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.price-tag { color: var(--primary-color); font-weight: bold; margin-bottom: 16px; }
.pricing-card ul { list-style: none; padding: 0; }
.pricing-card li { margin-bottom: 8px; color: var(--text-muted); }
.pricing-card.premium li { color: #fff; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--card-bg) 100%);
  border-radius: var(--border-radius);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta h2 { font-size: 1.9rem; }
.cta p  { color: var(--text-muted); max-width: 480px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #2a2a2a;
  margin-top: 60px;
}
.footer-links { margin-top: 12px; }
.footer-links a { margin: 0 10px; text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  /* Hero stacks vertically */
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding: 56px 24px 64px;
  }
  .hero h2 { font-size: 2rem; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-phone::before { display: none; }

  /* Shrink hero phone a bit */
  .hero-phone .phone-frame { width: 220px; }

  /* Three-phone row — hide side phones, center only */
  .phone-showcase.phone-left,
  .phone-showcase.phone-right { display: none; }
  .phone-showcase.phone-center { transform: none; }
  .phone-frame.phone-md { width: 220px; }

  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .hero h2 { font-size: 1.7rem; }
  .hero-phone .phone-frame { width: 190px; }
}
