/* ==========================================================================
   WindowsRDP.store - Main Stylesheet
   ========================================================================== */

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --secondary: #4F46E5;
  --dark: #101828;
  --bg: #F6F8FC;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --whatsapp: #25D366;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* --- Hero Section --- */
.hero-section {
  padding: 64px 0 80px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f8fc 100%);
  border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* --- Configurator Card --- */
.configurator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 32px;
  border: 1px solid var(--gray-100);
}

.configurator-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Sora', sans-serif;
}

.configurator-title small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 40px;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.config-field select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.config-field select:hover {
  border-color: var(--primary);
}

.config-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.location-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border 0.2s;
  width: 100%;
}

.location-select:hover {
  border-color: var(--primary);
}

.location-select img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.billing-toggle {
  display: flex;
  gap: 8px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 40px;
}

.billing-option {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.billing-option.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.billing-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--gray-100);
  margin-top: 8px;
}

.price-label {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.price-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--dark);
}

.price-value small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
}

.btn-generate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.5);
}

/* --- Trust & Section Headers --- */
.trust-section {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* --- Locations --- */
.locations-section {
  padding: 80px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.location-card img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.location-card span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}

/* --- Features --- */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- How it Works --- */
.how-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-item {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* --- FAQ --- */
.faq-section {
  padding: 80px 0;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 20px 24px;
  cursor: pointer;
  transition: border 0.2s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}

.faq-question span {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-answer {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

/* --- Final CTA --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1a2540 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 40px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-500);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p,
.footer-legal a {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-decoration: none;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* --- Location Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}

.modal-close:hover {
  color: var(--dark);
}

.location-search {
  padding: 20px 32px 0;
}

.location-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.location-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-location-grid {
  padding: 20px 32px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow-y: auto;
}

.modal-location-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.2s;
}

.modal-location-btn:hover {
  border-color: var(--primary);
  background: var(--bg);
}

.modal-location-btn img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

/* ==========================================================================
   Floating Support Widgets & Live Chat
   ========================================================================== */

.support-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.support-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  color: white;
}

.support-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.support-btn svg {
  width: 38px;
  height: 38px;
}

.whatsapp-btn {
  background: var(--whatsapp);
}

.chat-btn {
  background: var(--primary);
}

/* Chat Panel */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  height: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 95;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--gray-200);
}

.chat-panel.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--dark);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
}

.chat-header-info strong {
  display: block;
  font-size: 0.9rem;
}

.chat-status {
  font-size: 0.75rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.chat-message {
  max-width: 85%;
  display: flex;
  flex-direction: column;
}

.chat-message p {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

.chat-message.incoming {
  align-self: flex-start;
}

.chat-message.incoming p {
  background: var(--white);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-message.outgoing {
  align-self: flex-end;
}

.chat-message.outgoing p {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.chat-message.outgoing .chat-time {
  text-align: right;
}

.chat-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
  background: var(--white);
}

.chat-footer input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 40px;
  border: 1px solid var(--gray-200);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.chat-footer input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-footer button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.chat-footer button:hover {
  background: var(--primary-dark);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .locations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .modal-location-grid {
    grid-template-columns: 1fr;
  }
  .chat-panel {
    width: calc(100% - 48px);
    right: 24px;
    bottom: 90px;
  }
}