/* ============================================
   DOMAIN REGISTRAR - Main Stylesheet
   Mobile-first, Professional Design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #0f172a;
  --accent: #10b981;
  --accent-dark: #059669;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

nav { display: flex; align-items: center; gap: 1.5rem; }

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover { color: var(--primary); }

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-alt);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.lang-switcher a {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.lang-switcher a.active {
  background: var(--primary);
  color: white;
}

.lang-switcher a:hover:not(.active) {
  background: var(--border);
  color: var(--text);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 100%);
  color: var(--text-white);
  padding: 5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Domain Search ---------- */
.search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  outline: none;
  font-family: var(--font);
  min-width: 0;
}

.search-box button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---------- TLD Prices ---------- */
.tld-prices {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.tld-price {
  background: rgba(255,255,255,0.1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.tld-price .tld { font-weight: 700; font-size: 1.1rem; }
.tld-price .price { color: var(--accent); font-weight: 600; }

/* ---------- Features ---------- */
.features {
  padding: 5rem 1rem;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 5rem 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.price-card.featured::before {
  content: attr(data-label);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.price-card ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.price-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.95rem;
}

.price-card ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.price-card .btn {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--primary);
  color: var(--primary);
  background: white;
}

.price-card .btn:hover {
  background: var(--primary);
  color: white;
}

.price-card.featured .btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.price-card.featured .btn:hover {
  background: var(--primary-dark);
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 5rem 1rem;
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 1rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
  font-family: var(--font);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 5rem 1rem;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer a {
  display: block;
  color: #94a3b8;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.footer a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  nav.active { display: flex; }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box button {
    width: 100%;
  }
  
  .price-card.featured {
    transform: scale(1);
  }
  
  .tld-prices {
    gap: 0.75rem;
  }
  
  .tld-price {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---------- Domain Results ---------- */
.domain-results {
  max-width: 700px;
  margin: 2rem auto 0;
  display: none;
}

.domain-results.active { display: block; }

.domain-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
}

.domain-result-item .domain-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.domain-result-item .domain-status {
  color: var(--accent);
  font-weight: 500;
}

.domain-result-item .domain-status.taken {
  color: #ef4444;
}

.domain-result-item .domain-price {
  font-weight: 700;
  color: var(--accent);
}

.domain-result-item .btn-add {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.domain-result-item .btn-add:hover {
  background: var(--accent-dark);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
