:root {
  --color-bg: #F8F7F2;
  --color-panel: #F1EFE4;
  --color-text: #212237;
  --color-cta: #F55B03;
  --color-accent-1: #8FCDFC;
  --color-accent-2: #F6CCFC;
  --color-highlight: #ECFE9B;
  --color-success: #294E23;
  --white: #FFFFFF;
  --shadow: 0 6px 18px rgba(0,0,0,.08);
  --radius: 20px;
  
  --font-display: 'League Spartan', 'Antarctica', system-ui, sans-serif;
  --font-body: 'Inter', 'Circular Std', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(48px, 8vw, 64px);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(36px, 6vw, 44px);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(24px, 4vw, 28px);
  margin-bottom: 1rem;
}

a {
  color: var(--color-cta);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 4px;
  border-radius: 4px;
}

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

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

.header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.nav-logo .logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-cta);
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
}

.hero {
  background: linear-gradient(135deg, var(--color-panel) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.eyebrow {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-cta);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 32px;
  color: var(--color-text);
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-accent-1);
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-accent-2);
  bottom: 20%;
  right: 30%;
  animation: float 8s ease-in-out infinite 1s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--color-highlight);
  top: 50%;
  right: 5%;
  animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero-shapes {
    opacity: 0.4;
  }
  
  .shape {
    width: 150px !important;
    height: 150px !important;
  }
}

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

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

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

.btn-primary:hover,
.btn-outline:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
  opacity: 1;
}

.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 4px;
}

.about {
  background: var(--white);
}

.lead {
  font-size: 20px;
  margin-bottom: 32px;
  max-width: 800px;
}

.about-grid {
  display: grid;
  gap: 32px;
}

.about-card {
  background: var(--color-panel);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card p {
  margin-bottom: 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.how-it-works {
  background: var(--color-bg);
}

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

.card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--color-cta);
  margin-bottom: 12px;
  font-size: 20px;
}

.timeline {
  background: var(--white);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  background: var(--color-panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.timeline-header {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.2s ease;
}

.timeline-header:hover {
  background: var(--color-panel);
}

.timeline-header:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: -3px;
}

.timeline-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.timeline-label h3 {
  margin: 0;
  font-size: 22px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-success);
  color: var(--white);
}

.timeline-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-cta);
  transition: transform 0.2s ease;
}

.timeline-item[open] .timeline-toggle {
  transform: rotate(45deg);
}

.timeline-body {
  padding: 0 24px 24px 24px;
}

.timeline-dates {
  font-size: 16px;
  color: var(--color-text);
  opacity: 0.7;
  margin-bottom: 12px;
}

.timeline-prompt {
  font-size: 18px;
  line-height: 1.6;
}

.winners {
  background: var(--color-bg);
}

.winners-intro {
  margin-bottom: 32px;
}

.criteria-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.winners-subtitle {
  margin-top: 32px;
  margin-bottom: 24px;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.winner-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-cta);
}

.winner-week {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cta);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.winner-title {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.winner-summary {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.winner-student {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.7;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-state p {
  font-size: 18px;
  color: var(--color-text);
  opacity: 0.8;
}

.submit {
  background: var(--white);
}

.typeform-embed {
  margin-top: 24px;
}

.teachers {
  background: var(--color-success);
  color: var(--white);
}

.teachers h2 {
  color: var(--white);
}

.teachers-content {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.teachers p {
  margin-bottom: 32px;
  font-size: 18px;
}

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

.faq {
  background: var(--color-bg);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.faq-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.faq-item summary {
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: bold;
  color: var(--color-cta);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq-item p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-panel);
}

.faq-contact {
  text-align: center;
  font-size: 18px;
}

.footer {
  background: var(--color-text);
  color: var(--white);
  padding: 60px 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-legal,
.footer-contact {
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer a {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 390px) {
  body {
    font-size: 16px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .btn-primary,
  .btn-outline {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
