/* =========================================
   ZoneHop — Landing Page
   Orange accent, warm neutral, glassmorphic
   ========================================= */

/* --- Custom properties --- */
:root {
  --bg: #fffaf5;
  --bg-alt: #fff7ed;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.06);
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-light: #fff7ed;
  --accent-glow: rgba(234, 88, 12, 0.12);
  --premium: #c2410c;
  --premium-light: #ffedd5;
  --pro: #0891b2;
  --pro-light: #ecfeff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-pill: 50px;
  --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition-spring), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}
.btn:active { transform: translateY(0); }

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.btn-premium {
  background: var(--premium);
}
.btn-premium:hover {
  background: #9a3412;
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.3);
}

.btn-white {
  background: white;
  color: var(--accent);
}
.btn-white:hover {
  background: #fff7ed;
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.nav-logo span { color: var(--text); }
.nav-icon { border-radius: 22%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-signin { font-weight: 600 !important; }

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.accent { color: var(--accent); }
.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Extension mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
.ext-mockup {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
  position: relative;
}
.ext-mockup:hover {
  transform: perspective(800px) rotateY(0) rotateX(0);
}
.ext-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px;
}
.ext-toolbar-icons {
  display: flex;
  gap: 8px;
}
.ext-toolbar-icons svg {
  cursor: default;
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  background: #ebebeb;
  color: #555;
  box-sizing: border-box;
}
.ext-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.ext-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Demo cards inside mockup */
.demo-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 12px;
}
.demo-drag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  opacity: 0.3;
  flex-shrink: 0;
}
.demo-drag span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.demo-info {
  flex: 1;
  min-width: 0;
}
.demo-label {
  font-weight: 600;
  font-size: 14px;
}
.demo-tz {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.demo-offset {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}
.demo-clock { text-align: right; flex-shrink: 0; }
.demo-time {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.demo-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ext-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 16px 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--surface);
}
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.price-card--premium {
  border-color: var(--premium);
  box-shadow: var(--shadow-md);
}
.price-card--premium:hover {
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--premium);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-tier {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.price-card--pro .price-tier { color: var(--pro); }
.price-card--premium .price-tier { color: var(--premium); }
.price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
}
.price-amount span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}
.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.price-features {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}
.price-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-card--premium .price-features li::before {
  color: var(--premium);
}
.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: white;
}
.cta-inner {
  text-align: center;
}
.cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.cta p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 36px;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.footer-brand span { color: var(--text); }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Legal pages (Privacy, Terms) --- */
.legal {
  padding: 140px 0 80px;
}
.legal-inner {
  max-width: 720px;
}
.legal h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal ul {
  margin-bottom: 12px;
  padding-left: 20px;
}
.legal li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
}
.legal a:hover {
  color: var(--accent-hover);
}

/* --- Support email box --- */
.support-email-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.support-email-addr {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  user-select: all;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero h1 { font-size: 38px; }
  .hero-sub { margin: 16px auto 0; }
  .hero-actions { justify-content: center; }
  .ext-mockup {
    max-width: 340px;
    transform: none;
  }
  .ext-mockup:hover { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* --- Focus states --- */
.btn:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.nav-logo:focus-visible,
.legal a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Reduced 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;
  }
}

/* --- Print --- */
@media print {
  .nav, .footer, .cta, .hero-visual, .hero-actions, .btn {
    display: none !important;
  }
  body { background: white; color: black; font-size: 12pt; }
  .hero, .legal { padding-top: 20px; }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
