/* ==========================================================================
   Apple Minimalist Design System - Duo for macOS
   ========================================================================== */

:root {
  --bg-primary: #fbfbfd;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hairline: rgba(0, 0, 0, 0.05);
  --radius-pill: 980px;
  --radius-card: 22px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.nav-container {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background-color: rgba(251, 251, 253, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-discount-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.25);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.nav-discount-btn:hover {
  background: #0071e3;
  color: #fff;
  border-color: #0071e3;
  transform: scale(1.03);
}

.nav-buy-btn {
  background-color: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-buy-btn:hover {
  background-color: #222;
  transform: scale(1.02);
}

/* ==========================================================================
   Hero Section (Apple-Clean Centered Typography)
   ========================================================================== */

.hero-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 24px 40px;
  text-align: center;
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.012em;
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.buy-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.buy-button-primary:hover {
  background: #181818;
  transform: scale(1.025);
}

.buy-price-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

/* Floating Interactive Status Pill */
.floating-counter-container {
  position: absolute;
  top: 100px;
  left: 20px;
  z-index: 40;
  pointer-events: none;
  transition: transform 0.12s ease-out;
}

.bend-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34c759;
}

/* ==========================================================================
   3D Laptop Scroll Stage
   ========================================================================== */

.stage-section {
  max-width: 900px;
  margin: 30px auto 90px;
  padding: 0 20px;
  text-align: center;
}

.stage-caption {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 30px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Settings Showcase Section
   ========================================================================== */

.settings-showcase-section {
  max-width: 900px;
  margin: 60px auto 100px;
  padding: 0 20px;
  text-align: center;
}

.settings-caption {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 26px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Section: How It Works Grid
   ========================================================================== */

.how-it-works-section {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.how-it-works-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.hiw-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.hiw-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hiw-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hiw-item-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hiw-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 36px 0;
}

.requirements-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 22px 24px;
}

.req-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.req-col p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Privacy highlight banner */
.privacy-highlight-card {
  margin-top: 26px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 24px;
}

.privacy-highlight-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.privacy-highlight-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.apple-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 36px 20px 50px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-footnotes {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.footer-footnotes p {
  margin-bottom: 6px;
}

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

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-card);
  width: 90%;
  max-width: 420px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Mobile Optimization (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 16px 30px;
  }
  .hero-title {
    font-size: 38px;
  }
  .floating-counter-container {
    display: none; /* Hide floating pill on small mobile screens to keep view clean */
  }
  .how-it-works-card {
    padding: 32px 20px;
  }
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .settings-window-mockup {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .win-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    gap: 12px;
  }
  .win-content {
    padding: 18px 14px;
    max-height: none;
  }
}
