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

:root {
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --primary: #0050d7;
  --primary-hover: #1b6afb;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glow: 0 10px 25px rgba(0, 80, 215, 0.15);
  --success: #16a34a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 80, 215, 0.04), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 80, 215, 0.04), transparent 25%);
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav-actions .btn {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
}

.nav-actions .btn:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: var(--glow);
}

/* Hero Section */
.hero {
  padding: 12rem 2rem 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: #0f172a;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 650px;
}

.search-bar {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  font-size: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-main);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.search-bar:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow);
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Support Categories */
.categories {
  padding: 4rem 10%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #0f172a;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 80, 215, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 80, 215, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card:hover .card-link {
  gap: 0.8rem;
}

/* System Status */
.status-section {
  padding: 4rem 10%;
  margin-bottom: 4rem;
}

.status-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.status-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pulse {
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(22, 163, 74, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.status-text h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #0f172a;
}

.status-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: #ffffff;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #0f172a;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 80, 215, 0.1);
  background: #ffffff;
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-full:hover {
  background: var(--primary-hover);
}

.btn-full:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1.5rem 2rem; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .status-card { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}
