/* ============================================================
   CrankLabs — style.css
   Dark, modern, native Mac dev shop aesthetic
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --color-bg:           #0d0d0f;
  --color-bg-card:      #141418;
  --color-bg-elevated:  #1a1a20;
  --color-bg-modal:     #18181e;
  --color-border:       rgba(255, 255, 255, 0.07);
  --color-border-hover: rgba(255, 255, 255, 0.14);

  --color-text:         #e8e8ed;
  --color-text-muted:   #8e8e9a;
  --color-text-subtle:  #5a5a68;

  --color-accent:       #6b7df5;
  --color-accent-dim:   rgba(107, 125, 245, 0.15);
  --color-accent-glow:  rgba(107, 125, 245, 0.35);

  --color-mactrack:     #4f9ef8;
  --color-mactrack-dim: rgba(79, 158, 248, 0.12);
  --color-notchin:      #9b6ef8;
  --color-notchin-dim:  rgba(155, 110, 248, 0.12);

  --color-success:      #34c77b;
  --color-warning:      #f5a623;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, monospace;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
  --shadow-glow-blue:   0 0 48px rgba(79, 158, 248, 0.18);
  --shadow-glow-purple: 0 0 48px rgba(155, 110, 248, 0.18);

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  --max-width: 960px;
  --section-gap: 120px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin-inline: auto;
}

.nav-backdrop {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  z-index: 99;
  pointer-events: none;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-mactrack), var(--color-notchin));
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 30%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(107, 125, 245, 0.12) 0%, transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

.hero-glow::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 20%;
  width: 30%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(155, 110, 248, 0.08) 0%, transparent 70%);
  animation: glow-pulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes glow-pulse {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: dot-blink 2.4s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(160deg, #ffffff 0%, #a0a0b4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 48px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.hero-app-pill:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hero-app-pill img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.hero-app-pill .pill-icon-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: scroll-hint-fade 3s ease-in-out 2s both;
}

@keyframes scroll-hint-fade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  30%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.hero-scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(4px); }
}

/* ── Section Divider ────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
  margin-inline: 24px;
}

/* ── App Sections ───────────────────────────────────────────── */
.app-section {
  padding: var(--section-gap) 0;
}

.app-section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

/* App Header */
.app-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.app-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: block;
}

.app-icon-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #fff;
  flex-shrink: 0;
}

.app-icon-placeholder.mactrack {
  background: linear-gradient(145deg, #3a85f0, #1a5fcc);
  box-shadow: 0 8px 32px rgba(58, 133, 240, 0.35);
}

.app-icon-placeholder.notchin {
  background: linear-gradient(145deg, #8b58f0, #5e2dcc);
  box-shadow: 0 8px 32px rgba(139, 88, 240, 0.35);
}

.app-header-text {
  flex: 1;
  padding-top: 4px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.app-badge.mactrack {
  background: var(--color-mactrack-dim);
  color: var(--color-mactrack);
  border: 1px solid rgba(79, 158, 248, 0.2);
}

.app-badge.notchin {
  background: var(--color-notchin-dim);
  color: var(--color-notchin);
  border: 1px solid rgba(155, 110, 248, 0.2);
}

.app-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.app-price {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  white-space: nowrap;
  line-height: 1;
}

.app-tagline {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
}

/* App Description Block */
.app-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 640px;
}

/* Screenshot Carousel (CSS-only) */
.carousel-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* macOS Big Sur-inspired desktop background */
.carousel-desktop-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 120%, #1a3a5c 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 90%, #4a2060 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 20% 90%, #1a4a7a 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 100%, #c4684a 0%, #8b4060 20%, transparent 50%),
    linear-gradient(180deg, #0a1628 0%, #0e2040 30%, #1a3060 50%, #2a4a70 70%, #3a5a80 100%);
  z-index: 0;
}

.carousel {
  width: 92%;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: transparent;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.carousel-wrapper {
  padding: 2rem 0;
}

.carousel-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  background: var(--color-bg-card);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.25);
}

/* MacTrack carousel (2 slides) */
#mt-slide-1:checked ~ .carousel-track { transform: translateX(0%); }
#mt-slide-2:checked ~ .carousel-track { transform: translateX(-100%); }

#mt-slide-1:checked ~ .carousel-dots .carousel-dot:nth-child(1),
#mt-slide-2:checked ~ .carousel-dots .carousel-dot:nth-child(2) {
  background: var(--color-mactrack);
  transform: scale(1.25);
}

/* Notchin carousel (4 slides) */
#nc-slide-1:checked ~ .carousel-track { transform: translateX(0%); }
#nc-slide-2:checked ~ .carousel-track { transform: translateX(-100%); }
#nc-slide-3:checked ~ .carousel-track { transform: translateX(-200%); }
#nc-slide-4:checked ~ .carousel-track { transform: translateX(-300%); }

#nc-slide-1:checked ~ .carousel-dots .carousel-dot:nth-child(1),
#nc-slide-2:checked ~ .carousel-dots .carousel-dot:nth-child(2),
#nc-slide-3:checked ~ .carousel-dots .carousel-dot:nth-child(3),
#nc-slide-4:checked ~ .carousel-dots .carousel-dot:nth-child(4) {
  background: var(--color-notchin);
  transform: scale(1.25);
}

/* Carousel arrows */
.carousel-nav {
  position: absolute;
  inset: 0;
  bottom: 40px; /* above the dots */
  pointer-events: none;
  z-index: 2;
}

.carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s, transform 0.2s;
  user-select: none;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* MacTrack arrow visibility (2 slides) */
#mt-slide-1:checked ~ .carousel-nav .mt-nav-1 { display: block; }
#mt-slide-2:checked ~ .carousel-nav .mt-nav-2 { display: block; }

/* Notchin arrow visibility (4 slides) */
#nc-slide-1:checked ~ .carousel-nav .nc-nav-1 { display: block; }
#nc-slide-2:checked ~ .carousel-nav .nc-nav-2 { display: block; }
#nc-slide-3:checked ~ .carousel-nav .nc-nav-3 { display: block; }
#nc-slide-4:checked ~ .carousel-nav .nc-nav-4 { display: block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

/* Mobile: smaller arrows */
@media (max-width: 768px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    line-height: 36px;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* Features Grid */
.features-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 1.375rem;
  margin-bottom: 10px;
  display: block;
}

.feature-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* App CTA Row */
.app-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin-top: 12px;
}

.app-disclaimer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-disclaimer a:hover {
  color: var(--color-text);
}

.app-meta-chip {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-subtle);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 16px;
  margin-top: 12px;
}

.btn-primary-blue {
  background: linear-gradient(145deg, #4a91f5, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary-blue:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5), 0 2px 6px rgba(0,0,0,0.4);
}

.btn-primary-purple {
  background: linear-gradient(145deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.4), 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary-purple:hover {
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.5), 0 2px 6px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 11px 20px;
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: rgba(255,255,255,0.04);
}

/* ── Modal (CSS-only, :target) ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--color-bg-modal);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 36px;
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform var(--transition-slow);
}

.modal-overlay:target .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
  border-radius: var(--radius-sm);
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 300;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-inline: auto;
  margin-bottom: 20px;
  display: block;
}

.modal-icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-inline: auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.75rem;
  color: #fff;
}

.modal-icon-placeholder.mactrack {
  background: linear-gradient(145deg, #3a85f0, #1a5fcc);
  box-shadow: 0 8px 32px rgba(58, 133, 240, 0.4);
}

.modal-icon-placeholder.notchin {
  background: linear-gradient(145deg, #8b58f0, #5e2dcc);
  box-shadow: 0 8px 32px rgba(139, 88, 240, 0.4);
}

.modal-app-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.modal-app-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

.modal-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.modal-price-label {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

.modal-price-note {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin-bottom: 28px;
}

.modal-purchase-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 12px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.modal-purchase-btn:hover {
  transform: translateY(-1px);
}

.modal-purchase-btn.mactrack {
  background: linear-gradient(145deg, #4a91f5, #2563eb);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.modal-purchase-btn.mactrack:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55);
}

.modal-purchase-btn.notchin {
  background: linear-gradient(145deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.45);
}

.modal-purchase-btn.notchin:hover {
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.55);
}

.modal-terms {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

.modal-terms a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-mactrack), var(--color-notchin));
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-muted);
}

/* ── Reduce Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .app-header {
    flex-direction: column;
    gap: 20px;
  }

  .app-icon,
  .app-icon-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .modal-card {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-apps {
    flex-direction: column;
    align-items: center;
  }

  .app-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
