/* Mentrak landing. Inherits global Feldmann variables/navbar/footer. */

:root {
  --mentrak-page: #0f0f12;
  --mentrak-surface: #17171b;
  --mentrak-elevated: #1f1f24;
  --mentrak-accent: #d6cbb4;
  --mentrak-terracotta: #8c5a4a;
  --mentrak-sage: #7a9685;
  --mentrak-text: #ece8de;
  --mentrak-muted: #9d998e;
}

.app-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.app-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(214, 203, 180, 0.18), transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(140, 90, 74, 0.16), transparent 48%),
    radial-gradient(circle at 50% 110%, rgba(122, 150, 133, 0.10), transparent 58%);
}
.app-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.app-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mentrak-muted);
  margin-bottom: 24px;
}
.app-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mentrak-accent);
  box-shadow: 0 0 14px rgba(214, 203, 180, 0.7);
}
.app-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 24px;
  color: #fff;
}
.app-hero h1 .accent {
  background: linear-gradient(135deg, var(--mentrak-accent), #ece8de 48%, var(--mentrak-sage));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--mentrak-muted);
  max-width: 560px;
  margin: 0 0 36px;
}
.app-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(214, 203, 180, 0.35);
}
.store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-label { display: flex; flex-direction: column; line-height: 1.15; }
.store-label small { font-size: 10px; opacity: 0.6; letter-spacing: 0.12em; text-transform: uppercase; }
.store-label strong { font-size: 16px; font-weight: 600; }
.store-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(214, 203, 180, 0.18);
  color: var(--mentrak-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.app-hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8f8c82;
}
.app-hero-meta b { color: var(--mentrak-text); font-weight: 600; }

.phone-frame {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: linear-gradient(160deg, #232328 0%, #0f0f12 100%);
  padding: 12px;
  box-shadow:
    0 50px 80px -20px rgba(214, 203, 180, 0.22),
    0 30px 50px -20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: var(--mentrak-page);
}
.phone-screen img { width: 100%; height: 100%; display: block; }
.hero-phone { position: relative; transform: rotate(-4deg); }
.hero-phone::after {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(circle, rgba(214, 203, 180, 0.18), transparent 60%);
  z-index: -1;
}

.app-section { padding: 100px 0; position: relative; }
.section-eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mentrak-accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
  color: #fff;
}
.section-lead {
  color: var(--mentrak-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 0 56px;
}

.features-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card,
.step-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--card-glow, radial-gradient(circle, rgba(214, 203, 180, 0.2), transparent 70%));
  pointer-events: none;
}
.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 203, 180, 0.20), rgba(140, 90, 74, 0.16));
  margin-bottom: 20px;
  color: var(--mentrak-accent);
}
.feature-card h3,
.step-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}
.feature-card p,
.step-card p {
  margin: 0;
  color: var(--mentrak-muted);
  font-size: 15px;
  line-height: 1.55;
}
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
}
.screenshots-row .phone-frame:nth-child(2) { transform: translateY(-20px) scale(1.05); }
.screenshots-row .phone-frame:nth-child(1) { transform: rotate(-3deg); }
.screenshots-row .phone-frame:nth-child(3) { transform: rotate(3deg); }

.steps-grid { counter-reset: step; margin-top: 36px; }
.step-card {
  margin-top: 22px;
  overflow: visible;
  padding-top: 42px;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -22px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mentrak-accent), var(--mentrak-terracotta));
  color: #17171b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  color: #cfcabe;
  font-size: 16px;
  line-height: 1.5;
}
.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(214, 203, 180, 0.24), rgba(122, 150, 133, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mentrak-accent);
}
.cta-section { padding: 120px 0; position: relative; overflow: hidden; }
.cta-card {
  padding: 56px clamp(24px, 5vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 203, 180, 0.20), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(140, 90, 74, 0.18), transparent 50%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 14px;
  color: #fff;
}
.cta-card p {
  font-size: 16px;
  color: var(--mentrak-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 620px;
  margin: 0 auto;
}
.notify-form input[type="text"] {
  flex: 1 1 280px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.notify-form button {
  padding: 14px 28px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #17171b;
  background: linear-gradient(135deg, var(--mentrak-accent), #ece8de);
  cursor: pointer;
}
.notify-options {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: #8f8c82;
}
.notify-form-status { margin-top: 18px; min-height: 22px; font-size: 14px; }
.notify-form-status.ok { color: #9bd1aa; }
.notify-form-status.err { color: #ff9a90; }

@media (max-width: 900px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-phone { transform: rotate(0); margin-top: 20px; }
  .screenshots-row { grid-template-columns: 1fr; gap: 36px; }
  .screenshots-row .phone-frame:nth-child(2),
  .screenshots-row .phone-frame:nth-child(1),
  .screenshots-row .phone-frame:nth-child(3) { transform: none; }
  .advantages-grid { grid-template-columns: 1fr; }
}
