:root {
  /* Palette Variables */
  --slate-dark: #1e293b;
  --slate: #475569;
  --slate-light: #94a3b8;
  --slate-border: #e2e8f0;
  --off-white: #f8fafc;
  --white: #ffffff;
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-light: #ccfbf1;
  --gold: #ca8a04;
  --error: #ef4444;

  /* Typography */
  --font-heading: 'Inter Tight', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-body);
  color: var(--slate);
  background-color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-dark);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--teal-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.max-w-lg { max-width: 800px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.font-mono { font-family: var(--font-mono); }
.text-white { color: var(--white); }
.text-slate { color: var(--slate); }
.text-slate-light { color: var(--slate-light); }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.bg-slate { background-color: var(--slate-dark); }
.mt-6 { margin-top: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* Navigation */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--slate-dark);
}
.logo-icon {
  color: var(--teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--teal-hover);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--slate-border);
  color: var(--slate-dark);
}
.btn-outline:hover {
  border-color: var(--slate);
  background-color: var(--off-white);
}
.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}
.btn-full {
  width: 100%;
}
.btn:disabled, .btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero Section */
.hero {
  padding: 80px 0;
  background-color: var(--off-white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--teal-light);
  color: var(--teal-hover);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.25rem;
  color: var(--slate);
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-image-wrapper {
  position: relative;
}
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  background-color: var(--slate-border);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Prizes Section */
.prizes-section {
  padding: 80px 0;
}
.section-header {
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.prize-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease;
}
.prize-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
}
.prize-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.prize-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.prize-card p {
  color: var(--slate-light);
  font-size: 0.95rem;
}

/* Form Section */
.submission-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}
.submission-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-border);
  padding: 48px;
}
.card-header {
  text-align: center;
  margin-bottom: 40px;
}
.card-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}
.card-header p {
  color: var(--slate);
}

/* Forms */
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.two-col {
  grid-template-columns: 1fr 1fr;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.field-hint {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 10px;
  margin-top: -4px;
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate-dark);
  background-color: var(--white);
  transition: all 0.2s;
}
input::placeholder, textarea::placeholder {
  color: var(--slate-light);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.divider {
  border: none;
  border-top: 1px solid var(--slate-border);
  margin: 32px 0;
}
.metrics-container {
  background-color: var(--off-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-border);
  margin-bottom: 24px;
}
.metric-input-group {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.metric-input-group:last-child {
  margin-bottom: 0;
}
.metric-desc { flex: 2; }
.metric-val { flex: 1; }

.alert {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.alert-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

/* Success View & Share */
.success-state {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-state h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.success-state p {
  color: var(--slate);
  margin-bottom: 32px;
}

.share-panel {
  background-color: var(--off-white);
  border: 1px dashed var(--slate-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 32px;
}
.share-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.share-controls {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.share-input {
  flex: 1;
  background-color: var(--white) !important;
  color: var(--slate-dark) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
}
.social-share {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-social {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--white);
  border: 1px solid var(--slate-border);
  color: var(--slate-dark);
}
.btn-social:hover {
  background-color: var(--off-white);
  border-color: var(--slate);
}

/* Testimonials */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.testimonial-card {
  background-color: var(--off-white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote {
  font-size: 1.125rem;
  color: var(--slate-dark);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.7;
}
.author-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background-color: var(--white);
}
.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slate-dark);
}
.author-role {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Judging Section */
.judging-section {
  padding: 100px 0;
}
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.criteria-item {
  display: flex;
  gap: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.criteria-number {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}
.criteria-item h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 40px 0;
  border-top: 1px solid var(--slate-border);
}
#wbx-powered-by-slot {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Status Banner */
#status-banner {
  background-color: var(--error);
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: 500;
}
#status-banner.info {
  background-color: var(--slate-dark);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 40px; }
  .hero h1 { font-size: 3rem; }
  .prize-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .two-col { grid-template-columns: 1fr; }
  .metric-input-group { flex-direction: column; gap: 8px; }
  .submission-card { padding: 24px; }
  .criteria-item { flex-direction: column; gap: 16px; }
}