/* ============================================================
   BuildWebsite.us — Global Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary:    #4F46E5;
  --primary-2:  #7C3AED;
  --accent:     #06B6D4;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --bg:         #0A0A0F;
  --surface:    #13131A;
  --surface-2:  #1E1E2E;
  --border:     rgba(255,255,255,0.08);
  --text:       #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim:   #475569;
  --grad-main:  linear-gradient(135deg, #4F46E5, #7C3AED);
  --grad-hero:  linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
  --glass-bg:   rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-glow: 0 0 40px rgba(79,70,229,0.3);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79,70,229,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(79,70,229,0.6); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(79,70,229,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,70,229,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6,182,212,0.10) 0%, transparent 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(79,70,229,0.15); top: -100px; left: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(124,58,237,0.12); bottom: -50px; right: -50px; animation-delay: -4s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-30px) rotate(5deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.08);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease both;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Features Grid ───────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { position: relative; overflow: hidden; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 24px; font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card { position: relative; }
.pricing-card.featured {
  border-color: rgba(79,70,229,0.5);
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(124,58,237,0.05));
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-main);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 16px; border-radius: 50px;
}
.price { font-family: 'Outfit', sans-serif; font-size: 52px; font-weight: 900; }
.price sup { font-size: 24px; font-weight: 600; vertical-align: top; margin-top: 10px; display: inline-block; }
.price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-domains { display: flex; gap: 16px; }
.domain-chip {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.domain-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ── Form elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.form-input::placeholder { color: var(--text-dim); }

/* ── OTP Input ───────────────────────────────────────────────── */
.otp-group { display: flex; gap: 10px; justify-content: center; }
.otp-digit {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 24px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(79,70,229,0.3); }
  50%      { box-shadow: 0 0 40px rgba(79,70,229,0.6); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .domain-chip:last-child { display: none; }
}
