/* Variables */
:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

html[data-bs-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --text-dark: #f3f4f6;
  --text-light: #d1d5db;
  --bg-light: #111827;
  --bg-white: #1f2937;
  --border: #374151;
  scroll-behavior: smooth;
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: background 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1000;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a { color: var(--text-dark); }
nav a:hover { color: var(--primary); }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
}

.theme-toggle svg { width: 24px; height: 24px; }

/* Hero */
section#hero {
  padding: 6rem 0 3rem;
  text-align: center;
  margin-top: 0;
}

#hero h1 { margin-bottom: 1.5rem; }
#hero p:first-of-type { font-size: 1.25rem; color: var(--text-light); }
#hero p:nth-of-type(2) { color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; }

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

a.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Sections */
section#features,
section#team,
section#reports {
  padding: 2rem 0;
  margin-top: 10px;
}

section#features {
  background: var(--bg-light);
}

section#team {
  background: #f3f4f6;
}

html[data-bs-theme="dark"] section#team {
  background: #0f172a;
}

section h2 { margin-bottom: 1rem; text-align: center; }
section > .container > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Cards */
.features-grid,
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.reports-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 1rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card,
.team-card,
.report-card {
  background: var(--bg-white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
  max-width: 350px;
}

.feature-card,
.report-card {
  padding: 2rem;
}

.feature-card,
.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}


.feature-card:hover,
.report-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card svg,
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.feature-card h3,
.report-card h3 { margin-bottom: 1rem; }

.feature-card p,
.report-card p { color: var(--text-light); margin-bottom: 0; }
.report-card p { font-size: 0.875rem; margin-bottom: 1.5rem; }

.team-card {
  overflow: hidden;
}

.team-card-header { height: 120px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.team-card:nth-child(2) .team-card-header { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.team-card:nth-child(3) .team-card-header { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.team-card:nth-child(4) .team-card-header { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.team-card:nth-child(5) .team-card-header { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.team-card-body { padding: 2rem 1.5rem; text-align: center; }
.team-card h3 { margin-bottom: 1.5rem; }

.team-link {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

a.team-link:hover { background: var(--primary-dark); color: white; }
.team-link svg { width: 18px; height: 18px; margin-right: 0.5rem; vertical-align: middle; }

/* Reports Section */
section#reports {
  background-color: var(--bg-light);
  padding: 4rem 0;
  margin-top: 10px;
}

#reports h2 {
  margin-bottom: 1rem;
}

#reports > .container > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.report-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.report-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  stroke-width: 2;
}

.report-card h3 {
  margin-bottom: 1rem;
}

.report-card h3 a {
  color: var(--text-dark);
}

.report-card h3 a:hover {
  color: var(--primary);
}

.report-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 10px;
  text-align: center;
}

footer .container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
footer .branding { text-align: left; }
footer .branding p:first-child { font-weight: 700; color: var(--text-dark); }
footer ul { list-style: none; margin-top: 1rem; }
footer a { color: var(--text-light); }
footer a:hover { color: var(--primary); }
footer .legal { text-align: right; }
footer p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 0.5rem; }

/* To Top Button */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

#toTop:hover { background: var(--primary-dark); transform: translateY(-4px); }
#toTop.show { 
  opacity: 1;
  visibility: visible;
}
#toTop svg { width: 24px; height: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section#hero { padding-top: 5rem; }
  section { padding: 2rem 0 !important; }
  .cta-buttons, .features-grid, .team-grid, .reports-grid { gap: 1rem; }
  footer .container { grid-template-columns: 1fr; }
  footer .branding, footer .legal { text-align: center; }
  .reports-grid { grid-template-columns: 1fr; max-width: 100%; place-items: center; }
}

/* Utilities */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
