/* Base Theme */
:root {
  --bg: #ffffff;
  --bg-2: #f7fafc;
  --fg: #0b1220;
  --muted: #5f6b7a;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #3b82f6;   /* blue-500 */
  --accent-2: #6366f1; /* indigo-500 */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,8,20,.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59,130,246,.10), transparent),
              radial-gradient(1200px 600px at 80% -20%, rgba(99,102,241,.08), transparent),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--fg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
  overflow: visible; /* Allow dropdowns to show */
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: visible; /* Allow dropdown to show */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  overflow: visible; /* Allow dropdown to show */
}
.brand { color: var(--fg); font-weight: 700; text-decoration: none; font-size: 1.05rem; }

.nav { 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  overflow: visible; /* Allow dropdowns to show */
}
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--fg); }

.nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  overflow: visible; /* Allow dropdowns to show */
}
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: .92rem; }

.user-section { position: relative; }
#loginOpen[hidden] { display: none !important; }
#userDropdown[hidden] { display: none !important; }
.user-dropdown {
  position: relative;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.92rem;
}
.user-trigger:hover {
  border-color: var(--fg);
  background: #f8f9fa;
}
.user-avatar {
  font-size: 16px;
}
.user-email {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.dropdown-arrow {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.user-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: fixed;
  top: 64px;
  right: 20px;
  min-width: 200px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}
.dropdown-item:hover {
  background-color: #f8f9fa;
}
.dropdown-item.user-info-item {
  cursor: default;
  color: var(--muted);
  font-weight: 600;
}
.dropdown-item.user-info-item:hover {
  background: none;
}
.dropdown-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Pricing country filter */
.pricing-filters { margin: 8px 0 14px; }
.segmented { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { 
  background: transparent; border: 0; color: var(--muted); padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 600;
}
.segmented button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

.lang-switch { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.lang-switch .divider { color: var(--border); }
.lang-switch button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.lang-switch button.active { color: var(--fg); border-color: var(--border); }

/* Region switch */
.region-switch { position: relative; }
.region-switch > button {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.region-switch .region-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: none; min-width: 200px; padding: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
}
.region-switch .region-menu.open { display: grid; gap: 6px; }
.region-switch .region-menu button {
  background: transparent; border: 0; color: var(--fg); text-align: left;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.region-switch .region-menu button:hover { background: rgba(255,255,255,.05); }

.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; padding: 64px 0 32px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.hero-copy h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin: 0 0 14px; }
.hero-copy .muted { font-size: 1.05rem; }
.hero-art { opacity: .9; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.hero-image { 
  width: 100%; 
  height: auto; 
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 400px;
}

.hero-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: .2s; }
.btn-primary { background: #333; color: white; border: 2px solid #333; box-shadow: var(--shadow); }
.btn-primary:hover { background: white; color: #333; transform: translateY(-1px); }
.btn-ghost { color: var(--fg); border-color: var(--border); background: #ffffff; }
.btn-ghost:hover { border-color: var(--fg); }
.btn.wide { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: #f7f9fc; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.8rem; margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* Cards & Grid */
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.pricing-slider { 
  position: relative; 
  margin-top: 10px;
  overflow: hidden;
}
.pricing-track { 
  display: grid; 
  grid-auto-flow: column; 
  gap: 16px; 
  grid-auto-columns: 350px;
  padding: 4px 6px 12px; 
  scroll-snap-type: x mandatory;
  transition: transform 0.3s ease;
  will-change: transform;
}
.pricing-track:focus { outline: none; }
.pricing-track > .plan { scroll-snap-align: start; }
.pricing-arrow { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  background: white; 
  border: 2px solid #333;
  color: #333; 
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  cursor: pointer;
  display: flex; 
  align-items: center;
  justify-content: center; 
  z-index: 10;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  user-select: none;
}
.pricing-arrow:hover:not([disabled]) { 
  background: #333; 
  color: white;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.pricing-arrow.left { 
  left: 10px; 
}
.pricing-arrow.right { 
  right: 10px; 
}
.pricing-arrow[disabled] { 
  opacity: 0.3; 
  cursor: not-allowed; 
  background: #f5f5f5;
  border-color: #ddd;
  color: #999;
  box-shadow: none;
}

.usecases { grid-template-columns: repeat(3, 1fr); }


.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card:hover { border-color: #cfd8e3; }

.plan { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan .price { font-size: 1.8rem; font-weight: 800; }
.plan .contact-text { 
  font-size: 0.9rem; 
  color: var(--accent); 
  font-weight: 600; 
  margin: 4px 0; 
  text-align: center;
}
.plan .tech-specs { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  margin: 8px 0 16px; 
  font-size: 0.85rem;
}
.plan .spec-item { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start;
  padding: 4px 0; 
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.plan .spec-item:last-child {
  border-bottom: none;
}
.plan .spec-item strong { 
  color: var(--fg); 
  min-width: 80px; 
  font-size: 0.8rem;
  opacity: 0.8;
  flex-shrink: 0;
}
.plan .spec-item:nth-child(n) {
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  flex: 1;
}
.plan .features-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.plan .features-list li { padding: 6px 0; color: var(--fg); opacity: .9; }
.plan .badge {
  position: absolute; top: -12px; right: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; box-shadow: var(--shadow);
}
.plan.featured { border-color: rgba(91,140,255,.45); box-shadow: 0 10px 30px rgba(91,140,255,.12); }

/* FAQ */
.faq details { background: #f9fafb; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }

/* Footer */
.site-footer { 
  background: #f8fafc; 
  border-top: 1px solid var(--border); 
  padding: 48px 0 20px; 
  margin-top: 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wave-icon {
  width: 24px;
  height: 16px;
  position: relative;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.wave-1 { height: 4px; width: 8px; left: 2px; }
.wave-2 { height: 7px; width: 8px; left: 8px; }
.wave-3 { height: 5px; width: 8px; left: 14px; }

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
}

.footer-tagline {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.payment-icon {
  width: 40px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.payment-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 40px;
}

.link-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 16px;
}

.link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-column li {
  margin-bottom: 8px;
}

.link-column a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.link-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.back-to-top {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.back-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Responsive Footer */
@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .payment-methods {
    justify-content: center;
  }
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-25 { width: 25%; }

.skeleton-card {
  height: 200px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.skeleton-price {
  height: 280px;
  border-radius: 12px;
}

.skeleton-btn {
  height: 40px;
  width: 120px;
  border-radius: 8px;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner.small {
  width: 20px;
  height: 20px;
  border-width: 2px;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
}

.loading-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Button Loading State */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

.btn-ghost.loading::after {
  border-color: var(--accent);
  border-top-color: transparent;
}

/* Order Page */
.order-page { padding: 40px 0; background: #f8fafc; min-height: 90vh; }
.order-content { display: grid; grid-template-columns: 1fr 400px; gap: 40px; margin-top: 30px; }
.product-config { background: white; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.product-header h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--fg); }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.spec-label { font-weight: 600; color: var(--muted); }
.spec-value { color: var(--fg); }
/* Region Selection */
.region-selection { margin-top: 30px; margin-bottom: 30px; }
.region-selection h3 { margin-bottom: 20px; font-size: 1.25rem; }
.region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.region-option { position: relative; }
.region-option input[type="radio"] { position: absolute; opacity: 0; }
.region-option label { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 12px 16px; 
  border: 2px solid #e5e7eb; 
  border-radius: 8px; 
  cursor: pointer; 
  transition: all 0.2s ease; 
}
.region-option input:checked + label { border-color: var(--accent); background: #f0f9ff; }
.region-flag { font-size: 1.2rem; }
.region-name { font-weight: 500; }

.billing-options { margin-top: 30px; }
.billing-options h3 { margin-bottom: 20px; font-size: 1.25rem; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.billing-option { position: relative; }
.billing-option input[type="radio"] { position: absolute; opacity: 0; }
.billing-option label { 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  padding: 16px; 
  border: 2px solid #e5e7eb; 
  border-radius: 10px; 
  cursor: pointer; 
  transition: all 0.2s ease;
  height: 120px;
  box-sizing: border-box;
}
.billing-option input:checked + label { border-color: var(--accent); background: #f0f9ff; }
.billing-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.billing-period { font-weight: 600; color: var(--fg); }
.billing-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.billing-save { background: #10b981; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; align-self: flex-start; margin-top: 4px; }
.billing-original { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; margin-top: auto; }
.order-sidebar { position: sticky; top: 20px; height: fit-content; }
.order-summary { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.order-summary h3 { margin-bottom: 20px; font-size: 1.25rem; }
.summary-item { margin-bottom: 16px; }
.summary-product { font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.summary-os { font-size: 0.9rem; color: var(--muted); display: flex; justify-content: space-between; }
.summary-divider { height: 1px; background: #e5e7eb; margin: 20px 0; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.summary-amount, .final-amount { font-weight: 600; }
.final-total { font-size: 1.1rem; }
.final-amount { font-size: 1.25rem; color: var(--accent); }
.btn-full { width: 100%; margin-top: 20px; }
/* Checkout Page */
.checkout-page {
  padding: 40px 0;
  min-height: 80vh;
  background: #f8fafc;
}

.checkout-header {
  margin-bottom: 40px;
  text-align: center;
}

.checkout-header h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--fg);
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 100%;
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step.completed:not(:last-child)::after {
  background: var(--accent);
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.step.completed .step-number {
  background: var(--accent);
  color: white;
}

.step.active .step-number {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.step-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.step.completed .step-label,
.step.active .step-label {
  color: var(--fg);
}

/* Checkout Content */
.checkout-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.checkout-section {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.checkout-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--fg);
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

/* Form Styles */
.billing-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.three-col {
  grid-template-columns: 1fr 1fr 100px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Payment Methods for Checkout */
.checkout-section .payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method {
  position: relative;
}

.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.payment-method label {
  display: block;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method input:checked + label {
  border-color: var(--accent);
  background: #f0f9ff;
}

.payment-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-name {
  font-weight: 600;
  color: var(--fg);
}

.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-icon-small {
  height: 24px;
  width: auto;
}

/* Card Form */
.card-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Checkbox Styles */
.checkbox-group {
  margin-top: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* Checkout Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.order-summary {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.order-summary h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--fg);
}

.summary-item {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.product-info {
  margin-bottom: 12px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}

.product-region {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.billing-cycle {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: var(--muted);
}

.summary-calculations {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.discount {
  color: #10b981;
}

.summary-total {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}

.total-row strong {
  color: var(--accent);
  font-size: 1.25rem;
}

/* Promo Code */
.promo-code {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.promo-input {
  display: flex;
  gap: 8px;
}

.promo-input input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
}

.promo-input button {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Submit Button */
.btn-full {
  width: 100%;
  margin-top: 20px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Security Info */
.security-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.security-icon {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .checkout-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .checkout-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .checkout-page {
    padding: 20px 0;
  }
  
  .checkout-header h1 {
    font-size: 2rem;
  }
  
  .checkout-steps {
    gap: 20px;
  }
  
  .step:not(:last-child)::after {
    width: 20px;
  }
  
  .checkout-section {
    padding: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
}

/* Legal Pages */
.legal-page {
  padding: 40px 0;
  min-height: 80vh;
}

.legal-nav {
  margin-bottom: 40px;
  text-align: center;
}

.legal-nav h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--fg);
}

.legal-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: #f8f9fa;
  padding: 4px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.legal-tab {
  padding: 12px 24px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.legal-tab.active,
.legal-tab:hover {
  background: white;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.legal-section {
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--fg);
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 24px;
}

.refund-steps .step {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.refund-steps .step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.legal-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .legal-tabs {
    flex-direction: column;
    max-width: 300px;
  }
  
  .legal-section {
    padding: 16px;
  }
}
.timeline-section { 
  background: #ffffff; 
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  z-index: 2;
}
.timeline-content {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid white;
  z-index: 2;
}
.timeline-content::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 19px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 13px solid var(--border);
  z-index: 1;
}
.timeline-content h3 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 600;
}
.timeline-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

@media (max-width: 820px) {
  .features { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .pricing-track { grid-auto-columns: 80%; }
  .usecases { grid-template-columns: 1fr; }
  
  /* Timeline responsive */
  .timeline {
    margin: 20px auto 0;
    padding: 10px 0;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 60px;
    margin-bottom: 30px;
  }
  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 18px;
    left: 0;
  }
  .timeline-content {
    padding: 18px;
  }
  .timeline-content::before {
    left: -8px;
    border-right-width: 8px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
  .timeline-content::after {
    left: -9px;
    border-right-width: 9px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; height: 0; overflow: hidden; flex-direction: column; gap: 12px; padding: 0 20px; 
    background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); transition: height .25s ease;
  }
  .nav.open { height: 300px; padding-top: 12px; padding-bottom: 12px; }
  .nav-actions { width: 100%; justify-content: flex-start; }
}

/* Modals */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); z-index: 60; }
.modal[hidden] { display: none; }
.modal .modal-content {
  width: min(560px, 92vw); background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px; color: var(--fg);
}
.modal .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.auth-modal { width: min(420px, 92vw) !important; }
.auth-tabs {
  display: flex;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab.active {
  background: white;
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-actions {
  margin-top: 20px;
}
.auth-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.icon-btn { background: #fff; border: 1px solid var(--border); color: var(--fg); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.form label { display: grid; gap: 6px; margin: 10px 0; }
.form input, .form textarea { background: #fff; border: 1px solid var(--border); color: var(--fg); padding: 10px 12px; border-radius: 10px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* Data Center Section */
.datacenter-section {
  padding: 60px 0 80px;
}
.datacenter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.datacenter-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.datacenter-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.datacenter-info h3 {
  font-size: 1.8rem;
  margin: 0 0 20px;
  color: var(--fg);
}
.datacenter-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 24px;
}
.datacenter-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.datacenter-features li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 8px 0;
}
.datacenter-cta {
  margin-top: 8px;
}

/* Dynamic Server Stats Section */
.stats-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.stats-content {
  text-align: center;
}

.stats-header {
  margin-bottom: 40px;
}

.stats-header .stats-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #000000, #333333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-header .stats-subtitle {
  font-size: 1.1rem;
  color: #666666;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #000000, #333333);
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border-color: #000000;
}

.stat-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000000, #333333);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stat-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #000000 0deg,
    #333333 calc(var(--progress, 0) * 3.6deg),
    #e5e7eb calc(var(--progress, 0) * 3.6deg),
    #e5e7eb 360deg
  );
  animation: fastRotate 0.8s ease-out infinite;
}

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

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 4px;
  animation: fastCount 1.5s ease-out;
}

.stat-unit {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 12px;
  font-weight: 500;
}

.stat-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fastPulse 0.6s ease-out infinite alternate;
}

.stat-status.running {
  background: #000000;
  color: white;
}

.stat-status.optimized {
  background: #333333;
  color: white;
}

.stat-status.fast {
  background: #666666;
  color: white;
}

.stats-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #666666;
  line-height: 1.7;
}

/* Fast Animations */
@keyframes fastRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fastCount {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fastPulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Individual stat animations */
.cpu-icon .stat-ring {
  --progress: 88;
  animation: fastRotate 0.6s linear infinite, cpuFastPulse 1s ease-in-out infinite alternate;
}

.ram-icon .stat-ring {
  --progress: 73;
  animation: fastRotate 0.8s linear infinite, ramFastPulse 1.2s ease-in-out infinite alternate;
}

.storage-icon .stat-ring {
  --progress: 45;
  animation: fastRotate 1s linear infinite, storageFastPulse 1.4s ease-in-out infinite alternate;
}

.network-icon .stat-ring {
  --progress: 92;
  animation: fastRotate 0.5s linear infinite, networkFastPulse 0.8s ease-in-out infinite alternate;
}

@keyframes cpuFastPulse {
  0% { --progress: 88; opacity: 0.9; }
  100% { --progress: 95; opacity: 1; }
}

@keyframes ramFastPulse {
  0% { --progress: 73; opacity: 0.9; }
  100% { --progress: 82; opacity: 1; }
}

@keyframes storageFastPulse {
  0% { --progress: 45; opacity: 0.9; }
  100% { --progress: 58; opacity: 1; }
}

@keyframes networkFastPulse {
  0% { --progress: 92; opacity: 0.9; }
  100% { --progress: 98; opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .datacenter-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .datacenter-info {
    order: -1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-card {
    padding: 24px 16px;
  }
  
  .stats-header .stats-title {
    font-size: 1.8rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
}
