/* Hostinger-Inspired Design System - Nexos Twenty Cloud */
:root {
  /* Hostinger Official Color Palette */
  --hostinger-purple: #673DE6;
  --hostinger-purple-hover: #5025D1;
  --hostinger-dark-purple: #2F1C6A;
  --hostinger-deep-bg: #0F0826;
  --hostinger-card-bg: #1B123B;
  --hostinger-card-border: rgba(103, 61, 230, 0.25);
  
  --hostinger-accent-pink: #FC5185;
  --hostinger-accent-green: #00D084;
  --hostinger-accent-blue: #00B2FF;
  
  --text-main: #FFFFFF;
  --text-muted: #B3A4DE;
  --text-dark: #2F1C6A;
  --bg-light: #F8F9FA;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 99px;
  
  --transition: all 0.25s ease-in-out;
  --shadow-hostinger: 0 10px 30px rgba(47, 28, 106, 0.35);
  --shadow-purple-glow: 0 0 35px rgba(103, 61, 230, 0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--hostinger-deep-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(103, 61, 230, 0.25) 0%, transparent 65%),
    radial-gradient(circle at 100% 60%, rgba(252, 81, 133, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Typography & Badges */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hostinger-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(103, 61, 230, 0.15);
  border: 1px solid var(--hostinger-purple);
  color: #D6C7FF;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--hostinger-accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--hostinger-accent-green);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #B3A4DE 50%, var(--hostinger-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-pink {
  color: var(--hostinger-accent-pink);
}

/* Hostinger Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-hostinger-purple {
  background: var(--hostinger-purple);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(103, 61, 230, 0.4);
}

.btn-hostinger-purple:hover {
  background: var(--hostinger-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(103, 61, 230, 0.6);
}

.btn-hostinger-outline {
  background: transparent;
  border-color: var(--hostinger-purple);
  color: #FFFFFF;
}

.btn-hostinger-outline:hover {
  background: rgba(103, 61, 230, 0.15);
  border-color: #8C66FF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 8, 38, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hostinger-card-border);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  max-width: 950px;
  margin: 0 auto 24px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Hostinger Banner Box */
.hostinger-promo-bar {
  background: linear-gradient(90deg, #2F1C6A 0%, #673DE6 100%);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-purple-glow);
}

.promo-tag {
  background: var(--hostinger-accent-pink);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.promo-text {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Calculator Section */
.calculator-section {
  padding: 90px 0;
  background: #140C30;
  border-top: 1px solid var(--hostinger-card-border);
  border-bottom: 1px solid var(--hostinger-card-border);
}

.calc-card {
  background: var(--hostinger-card-bg);
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  box-shadow: var(--shadow-hostinger);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.range-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hostinger-accent-green);
  margin-bottom: 10px;
}

.slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #2D2056;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hostinger-purple);
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 15px var(--hostinger-purple);
}

.provider-toggle {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-btn {
  text-align: left;
  padding: 14px 18px;
  background: #25194D;
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--hostinger-purple);
  border-color: #8C66FF;
  box-shadow: 0 4px 15px rgba(103, 61, 230, 0.4);
}

.calc-results {
  background: var(--hostinger-deep-bg);
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.result-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #1B123B;
  border: 1px solid var(--hostinger-card-border);
  position: relative;
}

.nexos-box {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.3);
}

.badge-saving {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--hostinger-accent-green);
  color: #032719;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.box-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.box-amount {
  font-size: 1.85rem;
  font-weight: 800;
}

.savings-banner {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.3), rgba(0, 208, 132, 0.2));
  border: 1px solid var(--hostinger-purple);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-text strong {
  color: var(--hostinger-accent-green);
  font-size: 1.3rem;
}

/* Pricing Grid (Hostinger Cards) */
.pricing-section {
  padding: 90px 0;
}

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

.price-card {
  background: var(--hostinger-card-bg);
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--hostinger-purple);
  box-shadow: var(--shadow-purple-glow);
}

.popular-card {
  border: 2px solid var(--hostinger-purple);
  background: linear-gradient(180deg, #23164D 0%, #170E38 100%);
  box-shadow: var(--shadow-hostinger);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hostinger-purple);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(103, 61, 230, 0.5);
}

.plan-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 20px 0;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  font-size: 0.925rem;
  color: #E2D9FF;
}

/* Lead Section (Checkout Form) */
.lead-section {
  padding: 90px 0;
  background: #140C30;
  border-top: 1px solid var(--hostinger-card-border);
}

.lead-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.lead-form-card {
  background: var(--hostinger-card-bg);
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-hostinger);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #D6C7FF;
  margin-bottom: 8px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 14px 16px;
  background: #110A2B;
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--hostinger-purple);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.25);
}

/* Onboarding Result Card */
.onboarding-result-card {
  margin-top: 24px;
  background: #110A2B;
  border: 1px solid var(--hostinger-accent-green);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 0 30px rgba(0, 208, 132, 0.2);
}

.onboard-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--hostinger-accent-green);
  margin-bottom: 8px;
}

.onboard-details {
  background: #1B123B;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  margin: 14px 0 20px;
}

.onboard-details code {
  color: var(--hostinger-accent-green);
  background: rgba(0, 208, 132, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.onboard-actions {
  display: flex;
  gap: 12px;
}

/* Footer */
.footer {
  background: #0A051B;
  border-top: 1px solid var(--hostinger-card-border);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  color: #7A69A8;
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating AI Chat Widget */
.ai-widget-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.ai-widget-trigger {
  background: var(--hostinger-purple);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-purple-glow);
  transition: var(--transition);
}

.ai-widget-trigger:hover {
  background: var(--hostinger-purple-hover);
  transform: scale(1.04);
}

.ai-chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 370px;
  height: 490px;
  background: #1B123B;
  border: 1px solid var(--hostinger-purple);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hostinger);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-window.open {
  display: flex;
}

.ai-chat-header {
  background: #110A2B;
  padding: 16px;
  border-bottom: 1px solid var(--hostinger-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
}

.bot-msg {
  background: #25194D;
  color: #E2D9FF;
  align-self: flex-start;
}

.user-msg {
  background: var(--hostinger-purple);
  color: #FFFFFF;
  align-self: flex-end;
}

.ai-chat-input-row {
  display: flex;
  padding: 12px;
  background: #110A2B;
  border-top: 1px solid var(--hostinger-card-border);
}

.ai-chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: #1B123B;
  border: 1px solid var(--hostinger-card-border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
}

.ai-btn-send {
  background: var(--hostinger-purple);
  color: white;
  border: none;
  padding: 0 16px;
  margin-left: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 5, 27, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #1B123B;
  border: 1px solid var(--hostinger-purple);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  box-shadow: var(--shadow-hostinger);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .calc-card, .lead-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nav-links { display: none; }
}
