﻿/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
  --primary: #673de6;
  --primary-dark: #5025d1;
  --primary-light: #8b6cf7;
  --secondary: #2f2c7c;
  --dark: #13102a;
  --light: #f4f5f7;
  --white: #ffffff;
  --text: #2f2c4a;
  --text-light: #727586;
  --success: #00b090;
  --warning: #f59e0b;
  --danger: #e04f5f;
  --shadow-sm: 0 2px 8px rgba(19, 16, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(19, 16, 42, 0.12);
  --shadow-lg: 0 16px 48px rgba(19, 16, 42, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* =========================================
   2. Typography & Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: var(--white); }

.section { padding: 80px 0; }
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* =========================================
   3. Buttons & Forms
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.1);
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.announcement-bar {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.announcement-bar a { color: var(--warning); font-weight: 700; }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo i { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.nav-link:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  color: var(--dark);
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(103, 61, 230, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges i { color: var(--success); }

/* =========================================
   6. Pricing Cards
   ========================================= */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--light);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-switch.active { background: var(--primary); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch.active::after { left: 32px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 2px solid var(--light);
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-name { font-size: 1.5rem; margin-bottom: 8px; }
.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 16px 0;
}
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.original-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1.1rem;
}
.discount-badge {
  background: rgba(0, 176, 144, 0.1);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}

.plan-features {
  margin: 24px 0 32px;
  text-align: left;
}
.plan-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.plan-features i { color: var(--success); font-size: 1.1rem; }

/* =========================================
   7. Features & Why Choose Us
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(103, 61, 230, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* =========================================
   8. Domain Search
   ========================================= */
.domain-search-box {
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  max-width: 700px;
  margin: 0 auto 32px;
}
.domain-search-box input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1.1rem;
  outline: none;
  border-radius: var(--radius-sm);
}
.domain-extensions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ext-item {
  text-align: center;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.ext-item h4 { color: var(--primary); font-size: 1.25rem; }
.ext-item p { color: var(--text-light); font-size: 0.9rem; }

/* =========================================
   9. FAQ Accordion
   ========================================= */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: var(--transition); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-light);
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

/* =========================================
   10. Footer
   ========================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 { color: var(--white); margin-bottom: 24px; font-size: 1.1rem; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); }

/* =========================================
   11. Misc Components
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 4px; display: none; }
.form-group { margin-bottom: 20px; }