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

:root {
  --bg: #0a0e1a;
  --bg-card: rgba(17, 24, 39, 0.8);
  --text: #f9fafb;
  --text-secondary: #9ca3af;
  --accent-blue: #3b82f6;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --gradient: linear-gradient(135deg, #1e40af, #3b82f6);
  --gradient-gold: linear-gradient(135deg, #92400e, #f59e0b);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --radius: 16px;
}

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

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

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

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 16px 0;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-size: 1.4rem; font-weight: 800;
}

.nav-logo-img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gradient) !important; color: white !important;
  padding: 10px 24px !important; border-radius: 10px;
}

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}

.hero-container {
  max-width: 900px; margin: 0 auto; text-align: center;
  position: relative; z-index: 2; padding: 0 24px;
}

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.shape-1 { width: 600px; height: 600px; background: #3b82f6; top: -200px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: #f59e0b; bottom: -100px; left: -100px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: #10b981; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float 12s ease-in-out infinite; }

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

.hero-badge {
  display: inline-block; padding: 8px 24px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 30px; font-size: 0.9rem; font-weight: 600;
  color: var(--accent-gold); margin-bottom: 32px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.2; margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 40px; max-width: 600px;
  margin-left: auto; margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }

.btn-primary, .btn-ghost, .btn-large {
  padding: 16px 36px; border-radius: 12px;
  font-size: 1.1rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(59,130,246,0.3); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent-blue); }

.hero-stats { display: flex; justify-content: center; gap: 48px; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2rem; display: block; }
.hero-stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; }
.hero-stat-divider { width: 1px; background: var(--glass-border); }

/* Sections */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* Features */
.features { padding: 100px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 32px;
  backdrop-filter: blur(20px); transition: all 0.3s;
  position: relative;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent-blue); }
.feature-card.restaurant:hover { border-color: var(--accent-gold); }
.feature-card.retail:hover { border-color: #8b5cf6; }

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.feature-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700;
}
.feature-tag.restaurant { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.feature-tag.retail { background: rgba(139,92,246,0.15); color: #8b5cf6; }

/* Plans */
.plans { padding: 100px 0; }
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; align-items: start;
}

.plan-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s; position: relative;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.featured { border-color: var(--accent-gold); }
.plan-card.business { border-color: var(--accent-green); }

.plan-badge {
  position: absolute; top: 0; right: 0;
  background: var(--gradient-gold); color: white;
  padding: 6px 16px; font-size: 0.8rem; font-weight: 700;
  border-radius: 0 0 0 12px;
}
.plan-card.business .plan-badge { background: linear-gradient(135deg, #065f46, #10b981); }

.plan-header { padding: 32px 24px 16px; text-align: center; }
.plan-header h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 1.1rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 4px; }
.plan-header p { color: var(--text-secondary); font-size: 0.85rem; }

.plan-features {
  list-style: none; padding: 0 24px 24px;
}
.plan-features li {
  padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-plan {
  display: block; text-align: center; padding: 16px;
  background: var(--glass); color: var(--text);
  text-decoration: none; font-weight: 700;
  transition: all 0.3s; border: none; width: 100%;
  font-size: 1rem; cursor: pointer;
  font-family: 'Cairo', sans-serif;
}
.btn-plan:hover { background: var(--gradient); }
.btn-plan.featured { background: var(--gradient-gold); color: white; }
.btn-plan.business { background: linear-gradient(135deg, #065f46, #10b981); color: white; }

/* Registration */
.register { padding: 100px 0; }

.register-form {
  max-width: 700px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 48px;
  backdrop-filter: blur(20px);
}

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

.register-form .form-group { display: flex; flex-direction: column; }
.register-form label { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.register-form input, .register-form select {
  padding: 14px 16px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border); border-radius: 10px;
  color: var(--text); font-size: 1rem; outline: none;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.2s;
}
.register-form input:focus, .register-form select:focus { border-color: var(--accent-blue); }

.subdomain-input { display: flex; position: relative; }
.subdomain-input input { flex: 1; border-radius: 10px 0 0 10px; }
.subdomain-suffix {
  padding: 14px 16px; background: rgba(59,130,246,0.15);
  border: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border);
  border-radius: 0 10px 10px 0; color: var(--accent-blue);
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  display: flex; align-items: center;
}

.subdomain-status { font-size: 0.8rem; margin-top: 6px; font-weight: 600; }

.btn-register {
  width: 100%; padding: 18px; margin-top: 8px;
  background: var(--gradient); color: white; border: none;
  border-radius: 12px; font-size: 1.15rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  font-family: 'Cairo', sans-serif;
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(59,130,246,0.3); }
.btn-register:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.register-result {
  margin-top: 20px; text-align: center;
  padding: 16px; border-radius: 10px; display: none;
}
.register-result.success {
  display: block; background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3); color: var(--accent-green);
}
.register-result.error {
  display: block; background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3); color: #ef4444;
}

/* Footer */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--glass-border);
}

.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { width: 48px; border-radius: 10px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.footer-copy { font-size: 0.8rem !important; color: var(--text-secondary) !important; opacity: 0.5; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hero-stats { gap: 24px; }
  .register-form { padding: 24px; }
}

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
