/* xVoIP Website Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #2196f3;
  text-decoration: none;
}

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

nav a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: #2196f3;
}

nav a.btn-coffee {
  background: #ffdd00;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

nav a.btn-coffee:hover {
  background: #e5c700;
  color: #000;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: #fff;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  padding: 0;
}

/* Browser Mockup */
.browser-mockup {
  width: 100%;
  max-width: 1160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
  background: #fff;
}

/* Browser Toolbar */
.browser-toolbar {
  background: #f1f3f4;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28c840; }

.browser-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #5f6368;
  border: 1px solid #e0e0e0;
}

.address-lock {
  margin-right: 8px;
  color: #5f6368;
}

.address-text {
  color: #202124;
}

.browser-extensions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.extension-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.extension-icon.xvoip {
  color: #2196f3;
  background: rgba(33, 150, 243, 0.15);
  position: relative;
}

.extension-icon.xvoip::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid #f1f3f4;
}

.extension-icon.other {
  color: #5f6368;
}

/* Browser Content */
.browser-content {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  padding: 5px 56px 48px;
  gap: 40px;
  position: relative;
}

/* Hero Content Inside Browser */
.hero-content {
  flex: 1;
  color: #333;
  padding-top: 60px;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.hero-content .tagline {
  font-size: 20px;
  color: #2196f3;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-content .description {
  font-size: 16px;
  color: #555;
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Softphone Popup */
.softphone-popup {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #68aef7 0%, #2c72bb 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
  align-self: flex-start;
}

/* Softphone Header */
.sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 6px;
}

.sp-logo {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.sp-header-actions {
  display: flex;
  gap: 5px;
}

.sp-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4caf50;
}

/* Status Bar */
.sp-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px;
  border-radius: 14px;
  font-size: 10px;
  color: white;
}

.sp-status-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4caf50;
}

/* Display */
.sp-display {
  margin: 10px 8px 6px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
}

.sp-display-input {
  flex: 1;
  font-size: 14px;
  color: #999;
}

.sp-backspace {
  color: #999;
}

/* Dialpad */
.sp-dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px 8px;
}

.sp-dialpad-btn {
  aspect-ratio: 1.5;
  background: rgba(255,255,255,0.25);
  border-radius: 8px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
}

.sp-dialpad-btn span {
  font-size: 7px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* Call Button */
.sp-call-controls {
  display: flex;
  justify-content: center;
  padding: 10px 8px 6px;
}

.sp-call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4caf50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Bottom Banner */
.sp-bottom-banner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sp-banner-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 0 5px;
  color: white;
  position: relative;
}

.sp-banner-section:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.sp-section-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-section-label {
  font-size: 8px;
  font-weight: 500;
  opacity: 0.85;
}

.sp-section-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  position: absolute;
  top: -1px;
  right: -3px;
}

.sp-section-status.on {
  background: #4caf50;
  box-shadow: 0 0 4px #4caf50;
}

.sp-section-status.off {
  background: #ff5252;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: #2196f3;
  color: #fff;
}

.btn-primary:hover {
  background: #1976d2;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #2196f3;
  border: 2px solid #2196f3;
}

.btn-secondary:hover {
  background: rgba(33, 150, 243, 0.1);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: #f8f9fa;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #e3f2fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #2196f3;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: #666;
  font-size: 15px;
}

.info-icon {
  position: relative;
  color: #2196f3;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
}

.info-icon:hover {
  color: #1976d2;
}

.info-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 12px;
  margin-bottom: 8px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip {
  display: block;
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
}

.screenshots h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 48px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.screenshot-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.screenshot-item h4 {
  font-size: 16px;
  margin: 16px 16px 4px;
  color: #333;
}

.screenshot-item p {
  font-size: 14px;
  color: #666;
  margin: 0 16px 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  height: calc(2 * 14px * 1.5);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid #e0e0e0;
}

/* Quick Start Section */
.quickstart {
  padding: 80px 0;
}

.quickstart h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: #2196f3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: #666;
  font-size: 15px;
}

.config-note {
  margin-top: 8px;
  color: #888;
}

/* Support Section */
.support {
  padding: 80px 0;
  background: #f8f9fa;
}

.support h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.support-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #2196f3;
}

.support-card svg {
  color: #2196f3;
  margin-bottom: 16px;
}

.support-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.support-card p {
  color: #666;
  font-size: 14px;
}

.support-coffee {
  text-align: center;
  margin-top: 40px;
}

.btn-coffee-large {
  display: inline-block;
  background: #ffdd00;
  color: #000;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-coffee-large:hover {
  background: #e5c700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.4);
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 32px 0;
  text-align: center;
}

footer p {
  margin-bottom: 8px;
  font-size: 14px;
}

footer a {
  color: #90caf9;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Privacy Policy Page */
.privacy-policy {
  padding: 40px 0 80px;
}

.privacy-policy h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.privacy-policy .last-updated {
  color: #666;
  margin-bottom: 32px;
}

.privacy-policy section {
  margin-bottom: 32px;
}

.privacy-policy h2 {
  font-size: 24px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.privacy-policy h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}

.privacy-policy p {
  margin-bottom: 12px;
}

.privacy-policy ul, .privacy-policy ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.privacy-policy li {
  margin-bottom: 8px;
}

.privacy-policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.privacy-policy th, .privacy-policy td {
  padding: 12px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.privacy-policy th {
  background: #f5f5f5;
  font-weight: 600;
}

.privacy-policy a {
  color: #2196f3;
}

.summary-box {
  background: #e3f2fd;
  padding: 24px;
  border-radius: 8px;
  margin-top: 32px;
}

.summary-box h2 {
  border: none;
  padding-top: 0;
  margin-bottom: 12px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #2196f3;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #2196f3;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .browser-content {
    flex-direction: column;
    padding: 5px 24px 24px;
    min-height: auto;
    gap: 24px;
    align-items: center;
  }

  .hero-content {
    text-align: center;
    padding-top: 0;
  }

  .hero-content .description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    justify-content: center;
  }

  .softphone-popup {
    width: 240px;
    order: -1;
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }

  .browser-mockup {
    border-radius: 8px;
  }

  .browser-toolbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .browser-dots {
    gap: 6px;
  }

  .browser-dot {
    width: 10px;
    height: 10px;
  }

  .browser-address-bar {
    padding: 4px 10px;
    font-size: 11px;
  }

  .browser-content {
    padding: 5px 16px 24px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content .tagline {
    font-size: 16px;
  }

  .hero-content .description {
    font-size: 14px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .softphone-popup {
    width: 220px;
  }

  .sp-dialpad-btn {
    font-size: 16px;
  }

  nav {
    gap: 16px;
    font-size: 14px;
  }

  .features h2, .quickstart h2, .support h2, .screenshots h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  header .container {
    flex-direction: column;
    gap: 12px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .extension-icon.other {
    display: none;
  }

  .hero-content h1 {
    font-size: 24px;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .softphone-popup {
    width: 200px;
  }
}
