/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #16161f;
  --bg-card: #1a1a26;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --glow: 0 0 40px rgba(99,102,241,0.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.7);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #fff;
}
.nav-logo strong { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(255,255,255,0.06);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn-ghost {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--border); transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.04); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.9rem; font-weight: 600;
  padding: 9px 20px; border-radius: 9px;
  transition: all 0.2s; border: none;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,0.45); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-primary.btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-outline {
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  padding: 13px 26px; border-radius: 12px;
  border: 1px solid var(--border-hover); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.btn-ghost-sm {
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--border); margin-top: 8px; display: inline-block;
  transition: all 0.2s;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--primary); }

/* Nav toggle */
.nav-toggle {
  display: none; color: var(--text); font-size: 1.2rem;
  padding: 8px; border-radius: 8px; margin-left: auto;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.mobile-menu a {
  padding: 10px 14px; border-radius: 8px;
  color: var(--text-muted); font-weight: 500; transition: all 0.2s;
}
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.mobile-menu .btn-primary { text-align: center; margin-top: 8px; }
.mobile-menu.open { display: flex; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--text);
  line-height: 1.2; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); margin: 12px 0 20px; font-size: 0.9rem; max-width: 240px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h5 { font-weight: 600; margin-bottom: 16px; font-size: 0.9rem; }
.footer-col a {
  display: block; color: var(--text-muted); font-size: 0.875rem;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 0.85rem;
}

/* ===== FORM BASE ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 8px;
}
.input-wrapper { position: relative; }
.input-wrapper input, .input-wrapper select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px 12px 44px;
  color: var(--text); font-size: 0.9rem;
  transition: all 0.2s; outline: none;
}
.input-wrapper input::placeholder { color: var(--text-dim); }
.input-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 0.85rem; pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
