/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-border: #e5e7eb;
  --radius: 10px;
}

.underline {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}

a { text-decoration: none; color: var(--color-primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.container.narrow {
  max-width: 700px;
}

h1 { font-size: 2.4rem; margin-bottom: 12px; }
h2 { font-size: 1.8rem; margin-bottom: 24px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { color: var(--color-text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-primary);
  color: white;
  margin-bottom: 10px;
}
.btn-primary:hover { background: var(--color-primary-dark); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
}

.logo img {
  height: 64px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 180px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px;
  z-index: 10;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}
.hero h1 { max-width: 700px; margin: 0 auto 16px; }
.hero p {
  max-width: 520px;
  margin: 0 auto 28px;
}
.hero .btn {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section h2 { text-align: center; }

.page-header {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--color-bg-alt);
}
.page-header p { max-width: 520px; margin: 0 auto; }

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

/* Pricing */
.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  transform: scale(1.03);
}
.feature-list {
  margin-bottom: 20px;
  text-align: left;
}
.feature-list li {
  padding: 6px 0;
  color: var(--color-text-light);
}
.feature-list li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 700;
}

/* Team */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Stats */
.stats { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-label {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- sponsor slider ---------- */
.sponsor-slider {
  position: relative;
  width: calc(100% + 200px);
  margin-left: -100px;
  margin-right: -100px;
  background-color: whitesmoke;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 3em 0;
  overflow: hidden;
}
.sponsor-slider::before,
.sponsor-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10%, 120px);
  pointer-events: none;
  z-index: 2;
}
.sponsor-slider::before {
  left: 0;
  background: linear-gradient(to right, whitesmoke, transparent);
}
.sponsor-slider::after {
  right: 0;
  background: linear-gradient(to left, whitesmoke, transparent);
}
.sponsor-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: scroll 20s linear infinite;
}
.sponsor {
  max-width: 150px;
  padding: 0 12px;
  margin-right: 3em;
  flex-shrink: 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Accordion ---------- */
.accordion {
  max-width: 700px;
  margin: 0 auto;
}
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 20px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.accordion-icon {
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p {
  padding: 0 4px 20px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 64px 0;
}
.cta h2 { color: white; margin-bottom: 20px; }
.cta .btn-primary {
  background: white;
  color: var(--color-primary);
}
.cta .btn-primary:hover { background: #f3f4f6; }

/* ---------- Contact form ---------- */
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #dc2626;
}
.error-message {
  display: block;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 1.2em;
}
.form-success {
  margin-top: 16px;
  color: #16a34a;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 500px; }
  .site-nav a { padding: 16px 24px; width: 100%; border-bottom: 1px solid var(--color-border); }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    background: var(--color-bg-alt);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a { padding: 12px 36px; border-radius: 0; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .hero { padding: 64px 0 48px; }
  h1 { font-size: 1.9rem; }
}
