/* ByeBlock VPN - Apple-style design */

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-dark: #004f9e;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-bye   { color: #000000; }
.logo-block { color: #0071e3; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 400;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  text-decoration: none;
  transition: background var(--transition);
}

.nav-cta:hover { background: var(--accent-hover); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  padding: 17px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,113,227,0.28);
  letter-spacing: -0.2px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,113,227,0.36);
}

.btn-secondary {
  display: inline-block;
  padding: 17px 36px;
  background: transparent;
  color: var(--accent);
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.2px;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-support:hover {
  background: var(--border-light);
  transform: translateY(-1px);
}

/* ─── APPLE-STYLE ENTRANCE ANIMATIONS ─── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate-1 { animation-delay: 0.05s; }
.hero-animate-2 { animation-delay: 0.18s; }
.hero-animate-3 { animation-delay: 0.32s; }
.hero-animate-4 { animation-delay: 0.46s; }
.hero-animate-5 { animation-delay: 0.60s; }
.hero-animate-6 { animation-delay: 0.74s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 22px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,113,227,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wordmark {
  font-size: clamp(25px, 3.5vw, 39px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 32px;
  line-height: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0,113,227,0.08);
  border: 1px solid rgba(0,113,227,0.15);
  border-radius: 980px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.1px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.04;
  color: var(--text-primary);
  max-width: 800px;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #0071e3 0%, #34aadc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ─── SECTIONS ─── */
section { padding: 100px 22px; }

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

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 620px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 16px;
  line-height: 1.6;
}

.container { max-width: 980px; margin: 0 auto; }

.text-center { text-align: center; }
.text-center .section-title,
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── FEATURES ─── */
.features-bg { background: var(--bg-secondary); }

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0,113,227,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

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

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.price-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1.5px solid var(--border-light);
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 980px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-primary);
  line-height: 1;
}

.price-currency {
  font-size: 22px;
  font-weight: 500;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
  letter-spacing: 0;
}

.price-per {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 6px;
  margin-bottom: 24px;
}

.price-savings {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #30d158;
  background: rgba(48,209,88,0.1);
  padding: 3px 10px;
  border-radius: 980px;
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li:last-child { border-bottom: none; }

.price-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.price-card .btn-primary,
.price-card .btn-secondary {
  font-size: 15px;
  padding: 13px 24px;
  width: 100%;
  text-align: center;
}

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.step {
  text-align: center;
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

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

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(135deg, #0071e3 0%, #0055b3 100%);
  text-align: center;
  border-radius: var(--radius);
  padding: 80px 40px;
  margin: 0 22px 100px;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-section .btn-primary:hover {
  background: #f5f5f7;
}

/* ─── INSTRUCTIONS ─── */
.platforms-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.platform-tab {
  padding: 10px 22px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.platform-tab.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.platform-tab:hover:not(.active) {
  color: var(--text-primary);
}

.platform-content { display: none; }
.platform-content.active { display: block; }

.steps-list { list-style: none; counter-reset: steps; }

.step-item {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.step-counter {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

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

.key-warning {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f0d080;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: #7a5c00;
  line-height: 1.55;
}

.step-content code {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-family: 'SF Mono', Monaco, monospace;
  color: var(--text-primary);
  margin-top: 6px;
}

.instruction-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
}

/* ─── SUPPORT BANNER ─── */
.support-banner {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--border-light);
  margin-top: 60px;
}

.support-banner h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

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

/* ─── FOOTER ─── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 48px 22px;
  text-align: center;
}

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

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

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

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

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── CHAT WIDGET ─── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
}

.chat-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  border: 1.5px solid #d2d2d7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: transform var(--transition), box-shadow var(--transition);
  font-size: 0;
  position: relative;
  gap: 0;
  letter-spacing: 0;
}

.chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.chat-monogram {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  font-family: var(--font);
}

.chat-monogram .mono-b1 { color: #000000; }
.chat-monogram .mono-b2 { color: #0071e3; }

.chat-badge {
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: #ff3b30;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 520px;
}

.chat-window.open {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  padding: 18px 20px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #d2d2d7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  flex-shrink: 0;
}

.chat-header-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.chat-header-info span {
  font-size: 12px;
  opacity: 0.75;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 320px;
}

.chat-msg {
  max-width: 82%;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-secondary);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  color: var(--text-primary);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: 18px 18px 18px 4px;
  width: fit-content;
  align-self: flex-start;
}

.chat-typing span {
  width: 7px; height: 7px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chat-quick-replies {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-reply {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.quick-reply:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,113,227,0.04);
}

.chat-input-row {
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  resize: none;
  max-height: 80px;
  line-height: 1.4;
  transition: border-color var(--transition);
}

.chat-input:focus { border-color: var(--accent); }

.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  font-size: 15px;
}

.chat-send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ─── PAGE HERO (for inner pages) ─── */
.page-hero {
  padding: 120px 22px 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .support-banner { flex-direction: column; text-align: center; }
  .cta-section { margin: 0 0 60px; border-radius: 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .chat-window { width: 320px; right: -8px; }
}
