/* WebEmpire – Design matching reference */
:root {
  --bg: #070b18;
  --bg-alt: #0d1225;
  --card: #121a32;
  --border: #1e2a4a;
  --text: #e8eaf2;
  --muted: #94a3b8;
  --primary: #7c5cfc;
  --primary-hover: #6a4af0;
  --accent: #a78bfa;
  --gradient: linear-gradient(135deg, #7c5cfc 0%, #c084fc 50%, #60a5fa 100%);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.logo .accent { color: var(--primary); }

.nav {
  display: none;
  gap: 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a { color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: #fff; }

.btn-nav { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.75rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.4rem 0; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--accent); }
.btn-white {
  background: #fff;
  color: #1e1b4b;
}
.btn-white:hover { background: #f1f5f9; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(124, 92, 252, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.bolt { font-size: 1rem; }
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-icon { font-size: 1.3rem; }
.trust-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Laptop visual */
.hero-visual { display: none; }
.laptop-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.laptop {
  background: #1a1f35;
  border-radius: 12px 12px 4px 4px;
  padding: 10px 10px 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,92,252,0.15);
  border: 1px solid #2a3355;
}
.laptop-screen {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-radius: 6px;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.screen-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.screen-bar {
  width: 40%;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
  margin-bottom: 1rem;
}
.screen-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.screen-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.screen-btn {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.float-badge {
  position: absolute;
  background: rgba(18, 26, 50, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.float-badge span {
  color: #34d399;
  font-weight: 700;
}
.badge-1 { top: 8%; right: -10%; }
.badge-2 { bottom: 28%; right: -8%; }
.badge-3 { bottom: 8%; left: 5%; }
.float-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #7c5cfc, #60a5fa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 20px rgba(124,92,252,0.4);
}
.icon-code { top: -5%; left: 10%; }
.icon-chart { top: 15%; right: 5%; font-size: 1.1rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}
.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--muted); }
.location-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  min-height: 1.4em;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(124,92,252,0.15);
}
.service-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pricing regions */
.pricing-regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.region-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.region-card:hover,
.region-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 32px rgba(124,92,252,0.2);
  transform: translateY(-3px);
}
.region-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.flag { font-size: 1.8rem; }
.region-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.region-header span {
  font-size: 0.8rem;
  color: var(--muted);
}
.region-prices {
  margin-bottom: 1.4rem;
}
.region-prices li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.region-prices li:last-child { border-bottom: none; }
.region-prices li.highlight {
  background: rgba(124, 92, 252, 0.12);
  margin: 0.4rem -0.6rem;
  padding: 0.7rem 0.6rem;
  border-radius: 8px;
  border: none;
}
.region-prices strong { font-weight: 700; color: #fff; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.portfolio-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.portfolio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1rem 0.2rem;
}
.portfolio-card p {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 1rem 1rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-header strong {
  display: block;
  font-size: 0.95rem;
}
.testimonial-header span {
  font-size: 0.8rem;
  color: var(--muted);
}
.testimonial-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 1px; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, #6d28d9 0%, #7c5cfc 40%, #8b5cf6 70%, #a78bfa 100%);
  padding: 2.25rem 0;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.cta-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cta-icon { font-size: 1.8rem; }
.cta-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
}
.cta-text p { opacity: 0.9; font-size: 0.95rem; }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--primary);
  background: rgba(124,92,252,0.15);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-email a { color: var(--accent); }

/* Responsive */
@media (min-width: 768px) {
  .nav { display: flex; }
  .btn-nav { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-visual { display: block; }
  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero { padding: 4.5rem 0 5rem; }
}

/* Dynamic pricing cards (location-based) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(124, 92, 252, 0.18);
}
.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: #fff;
}
.price-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.price-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.price-features li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}
.price-features li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.pricing-footnote {
  text-align: center;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Active nav underline */
.nav a {
  position: relative;
  padding-bottom: 4px;
}
.nav a.active {
  color: #fff !important;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(124, 92, 252, 0.5);
  border-radius: 2px;
}

/* Review form */
.review-form-wrap {
  max-width: 560px;
  margin: 2.5rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.review-form-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.review-form-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.review-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .review-form .form-row.two { grid-template-columns: 1fr 1fr; }
}
.review-form .form-group { margin-bottom: 1rem; }
.review-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.review-form label .req { color: #f87171; }
.review-form input,
.review-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.star-picker {
  display: flex;
  gap: 0.25rem;
}
.star-picker button {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #475569;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.star-picker button.on { color: #fbbf24; }
.review-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #34d399;
  display: none;
}
.review-msg.show { display: block; }
.review-msg.err { color: #f87171; }

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.contact-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.contact-card .link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Portfolio action button */
.portfolio-card .btn {
  margin: 0 1rem 1rem;
  align-self: flex-start;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
}
.portfolio-card p { flex-grow: 1; }

/* Laptop screen CTA as link */
a.screen-btn {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
}
a.screen-btn:hover { background: var(--primary-hover); }
