/* Rest Police - Premium Landing Page */
/* Clean, modern Apple-inspired design */

:root {
  --black: #000000;
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: #1a1a1a;
  --border-light: #252525;
  --text: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #22c55e;
  --accent-dim: rgba(34, 197, 94, 0.1);
  --accent-glow: rgba(34, 197, 94, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ==================== Navigation ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 32px;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.nav-active {
  color: var(--text);
}

/* Nav on standalone pages (privacy, etc) */
.nav-static {
  position: fixed;
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent),
    var(--bg);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 640px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge svg {
  opacity: 0.7;
}

.hero-logo {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: clamp(56px, 12vw, 88px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-subtitle-detail {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-muted);
}

.hero-watch-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: inline-block;
}

.hero-preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #2dd468;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--bg-card);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

/* ==================== Phone Mockup ==================== */
.hero-visual {
  margin-top: 60px;
  z-index: 1;
}

.phone-mockup {
  width: 220px;
  height: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px -20px rgba(0,0,0,0.7);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0f0f0f 0%, #080808 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-ui {
  text-align: center;
}

.app-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.app-timer {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}

.app-sets {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.app-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #3b82f6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

/* ==================== Sections ==================== */
section {
  padding: 120px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== Features ==================== */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.feature-card.featured {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(34, 197, 94, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== How It Works ==================== */
.how-it-works {
  background: var(--bg-elevated);
}

.steps {
  max-width: 500px;
  margin: 0 auto;
}

.step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-line {
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step:last-child .step-line {
  display: none;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  z-index: 1;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ==================== Privacy ==================== */
.privacy {
  background: var(--bg);
}

.privacy-grid {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.privacy-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 8px;
  color: var(--accent);
}

.privacy-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-text strong {
  color: var(--text);
}

.privacy-link {
  text-align: center;
  margin-top: 40px;
}

/* ==================== Support ==================== */
.support {
  background: var(--bg);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

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

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.support-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.support-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.support-link {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 8px;
}

.support-link:hover {
  text-decoration: underline;
}

.support-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== FAQ ==================== */
.faq {
  background: var(--bg-elevated);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  padding-right: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== CTA ==================== */
.cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, var(--accent-dim), transparent),
    var(--bg);
}

.cta h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ==================== Footer ==================== */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links {
  margin-bottom: 20px;
}

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

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

.footer-divider {
  margin: 0 12px;
  color: var(--text-muted);
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  section {
    padding: 80px 20px;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .phone-mockup {
    width: 180px;
    height: 160px;
  }

  .app-timer {
    font-size: 36px;
  }
}

/* ==================== Accessibility ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== Privacy Page ==================== */
.privacy-page {
  padding: 100px 24px 80px;
  min-height: 100vh;
}

.privacy-page .section-header {
  margin-bottom: 48px;
}

.privacy-page .section-title {
  font-size: clamp(36px, 6vw, 48px);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}

.policy-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.policy-section p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section strong {
  color: var(--text);
  font-weight: 600;
}

.policy-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.policy-section li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.policy-section li:last-child {
  border-bottom: none;
}

.policy-section li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 16px;
}

.policy-section a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.policy-section a:hover {
  text-decoration: underline;
}

.back-link {
  text-align: center;
  margin-top: 48px;
}
