/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --border: #2a2a3e;
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== App Layout ===== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-accent {
  color: var(--accent);
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ===== Dashboard ===== */
.dashboard {
  flex: 1;
  padding: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* ===== Module Grid ===== */
.modules-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Module Card ===== */
.module-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.module-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.module-card:active {
  transform: translateY(0);
}

.module-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.module-info {
  flex: 1;
  min-width: 0;
}

.module-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.module-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.module-arrow {
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.module-card:hover .module-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ===== Footer ===== */
.footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .header {
    padding: 3rem 2rem 1.5rem;
  }

  .logo {
    font-size: 3rem;
  }

  .dashboard {
    max-width: 700px;
    padding: 2rem;
  }

  .modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .module-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 0.75rem;
  }

  .module-icon {
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
  }

  .module-arrow {
    display: none;
  }
}
