/* ETHConf Community Partners - CSS Stylesheet */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-primary: #0F0321;
  --color-secondary: #06073d;
  --color-footer: #0d0322;
  --color-accent: #F6D900;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.65);
  
  /* Border Colors */
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.5);
  --border-accent: rgba(255, 255, 255, 0.14);
  
  /* Background Colors */
  --bg-primary: #0F0321;
  --bg-secondary: #06073d;
  --bg-card: rgba(0, 0, 0, 0.5);
  --bg-hover: rgba(255, 255, 255, 0.07);
  
  /* Gradients */
  --gradient-hero: radial-gradient(circle at top, rgba(123, 67, 255, 0.28), transparent 55%), 
                    radial-gradient(circle at bottom, rgba(20, 235, 255, 0.18), transparent 1%);
  
  /* Typography */
  --font-geist: 'Geist', sans-serif;
  --font-hanken: 'Hanken Grotesk', sans-serif;
  --font-playfair: 'Playfair Display', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-button: 0 12px 30px rgba(245, 196, 0, 0.35);
  --shadow-card: 0 35px 90px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 12px 30px rgba(255, 255, 255, 0.35);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  color: var(--text-primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.nav-content {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black);
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-button:hover {
  transform: translateY(1px);
  box-shadow: var(--shadow-button);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-primary);
  color: var(--text-primary);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-title {
  font-family: var(--font-playfair);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-title-line {
  display: block;
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-hanken);
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-black);
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(1px);
  box-shadow: var(--shadow-button);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--color-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(1px);
  box-shadow: var(--shadow-hover);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-intro {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-playfair);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  font-family: var(--font-hanken);
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.intro-text {
  font-family: var(--font-hanken);
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.intro-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== BACKGROUND PATTERNS ===== */
.section-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.section-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 90px 90px;
  background-position: center;
}

/* ===== WHAT YOU WIN GRID (REDESIGNED) ===== */
.benefits-redesigned-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Center the last 2 items (4th and 5th) in a 3-column grid */
/* Items 1-3 fill the first row naturally (columns 1, 2, 3) */
/* Items 4-5 are wrapped in a centered container spanning columns 2-4 (centered) */
.benefits-row-centered {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.benefits-row-centered .benefit-card-redesigned {
  flex: 0 1 calc(50% - 1rem);
  max-width: 400px;
}

.benefit-card-redesigned {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card-redesigned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), rgba(246, 217, 0, 0.5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.benefit-card-redesigned:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(246, 217, 0, 0.3);
}

.benefit-card-redesigned:hover::before {
  transform: scaleX(1);
}

.benefit-icon-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon-large {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(246, 217, 0, 0.2));
}

.benefit-card-title {
  font-family: var(--font-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.benefit-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-features li {
  font-family: var(--font-hanken);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
  transition: color 0.2s ease;
}

.benefit-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
}

.benefit-card-redesigned:hover .benefit-features li {
  color: var(--text-primary);
}



/* ===== ORIGINAL BENEFITS FOR INDEX.HTML ===== */
/* ===== BENEFITS GRID ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.benefit-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.benefit-description {
  font-family: var(--font-hanken);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== WHO APPLY GRID (Original) ===== */
.who-apply-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.who-item {
  text-align: center;
  padding: 2rem 1rem;
}

.who-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.who-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.who-item p {
  font-family: var(--font-hanken);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== DIAMOND ICON ===== */
.diamond-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.diamond-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--diamond-color);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ===== WHO SHOULD APPLY GRID (REDESIGNED) ===== */
.who-apply-redesigned-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Center the last 2 items (4th and 5th) in a 3-column grid */
/* Items 1-3 fill the first row naturally (columns 1, 2, 3) */
/* Items 4-5 are wrapped in a centered container spanning all columns */
.who-apply-row-centered {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.who-apply-row-centered .who-apply-card {
  flex: 0 1 calc(50% - 1rem);
  max-width: 400px;
}

.who-apply-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.who-apply-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--color-accent), transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.who-apply-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(246, 217, 0, 0.3);
}

.who-apply-card:hover::after {
  opacity: 1;
}

.who-apply-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(246, 217, 0, 0.3));
  transition: transform 0.3s ease;
}

.who-apply-card:hover .who-apply-icon {
  transform: scale(1.1) rotate(5deg);
}

.who-apply-title {
  font-family: var(--font-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.who-apply-description {
  font-family: var(--font-hanken);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.who-apply-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

.detail-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(246, 217, 0, 0.1);
  border: 1px solid rgba(246, 217, 0, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-hanken);
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 500;
  transition: all 0.2s ease;
}

.who-apply-card:hover .detail-badge {
  background: rgba(246, 217, 0, 0.15);
  border-color: rgba(246, 217, 0, 0.5);
  transform: translateY(-1px);
}



/* ===== STEPS ===== */
.steps-container {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
}

.step-content {
  flex: 1;
}

.step-number {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-item:last-child .step-arrow {
  display: none;
}

.step-content p {
  font-family: var(--font-hanken);
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-left: 1rem;
}

/* ===== RULES SECTION ===== */
.section-rules {
  background: var(--color-secondary);
}

.rules-container {
  max-width: 900px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.rule-category {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: all 0.3s ease;
}

.rule-category:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(246, 217, 0, 0.3);
}

.rule-category-title {
  font-family: var(--font-playfair);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(246, 217, 0, 0.3);
}

.rule-item {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  padding-left: 3rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.2s ease;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-item:hover {
  border-color: rgba(246, 217, 0, 0.4);
  background: rgba(246, 217, 0, 0.03);
  transform: translateX(4px);
}

.rule-item::before {
  content: '▸';
  position: absolute;
  left: 1.25rem;
  top: 1.75rem;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.rule-title {
  font-family: var(--font-playfair);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.rule-description {
  font-family: var(--font-hanken);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ===== PERKS TABLE ===== */
.perks-table-container {
  margin-top: 3rem;
  overflow-x: auto;
}

.perks-table {
  width: 100%;
  min-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-primary);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  border-bottom: 1px solid var(--border-primary);
  transition: background-color 0.2s ease;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: var(--bg-hover);
}

.table-cell {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
  border-right: 1px solid var(--border-primary);
}

.table-cell:first-child {
  justify-content: flex-start;
  font-weight: 500;
}

.table-cell:last-child {
  border-right: none;
}

.table-header .table-cell {
  font-weight: 600;
  color: var(--color-accent);
}

.check {
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== APPLY SECTION ===== */
.section-apply {
  background: var(--color-secondary);
  text-align: center;
}

.apply-content {
  max-width: 600px;
  margin: 0 auto;
}

.apply-title {
  font-family: var(--font-playfair);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.apply-description {
  font-family: var(--font-hanken);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.apply-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ===== TERMS SECTION ===== */
.section-terms {
  background: var(--color-footer);
  padding: 3rem 0;
}

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

.terms-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.terms-list {
  font-family: var(--font-hanken);
  color: var(--text-secondary);
}

.terms-list p {
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-footer);
  color: var(--text-primary);
  padding: 4rem 0;
}

.footer-background {
  position: absolute;
  inset: 0;
}

.footer-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
}

.footer-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-image {
  height: 64px;
  width: auto;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  align-items: flex-end;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px dashed var(--border-secondary);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.social-link:hover {
  border-color: var(--text-primary);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
  
  .apply-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .who-apply-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-links {
    font-size: 1.125rem;
    gap: 2rem;
  }
  
  .winners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .apply-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefits-redesigned-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .who-apply-redesigned-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .table-cell {
    padding: 1.25rem;
    font-size: 1rem;
  }
  
  .step-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  .step-arrow {
    transform: rotate(0deg);
    margin: 0 0 0 1rem;
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
  
  .nav-container {
    padding: 0 2rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-content {
    gap: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-content {
    padding-top: 120px;
    min-height: 100vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .perks-table {
    min-width: 500px;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1.5fr repeat(4, 0.8fr);
  }
  
  .table-cell {
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .step-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

/* ===== FORM STYLING ===== */
.section-form {
  background: var(--color-secondary);
}

.startup-application-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

/* Ensure hidden form sections take no space */
.form-section[style*="display: none"],
.form-section[style*="display:none"],
.form-section[style*="display: none;"],
.form-section[style*="display:none;"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.form-section:hover {
  box-shadow: var(--shadow-card);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.section-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.form-section-header h3 {
  font-family: var(--font-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.time-estimate {
  font-family: var(--font-hanken);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(246, 217, 0, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(246, 217, 0, 0.3);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-hanken);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.form-field small {
  font-family: var(--font-hanken);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Form Input Styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-geist);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
  min-height: 48px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 217, 0, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input.error,
select.error,
textarea.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.form-input.error:focus {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 12px 8px;
  padding-right: 3rem;
  appearance: none;
  min-height: 48px;
}

textarea {
  resize: vertical;
  min-height: 120px;
  padding: 1rem 1.25rem;
  line-height: 1.6;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--font-hanken);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.checkbox-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + span {
  color: var(--text-primary);
  font-weight: 500;
}

.checkbox-error {
  border: 1px solid #ff4444 !important;
  border-radius: var(--radius-md) !important;
  background: rgba(255, 68, 68, 0.05) !important;
}

/* ===== FORM SUCCESS MESSAGE ===== */
.form-success {
  background: var(--color-secondary);
  padding: 4rem 0;
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content {
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.success-content h2 {
  font-family: var(--font-playfair);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.success-content p {
  font-family: var(--font-hanken);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.form-navigation .btn-primary,
.form-navigation .btn-secondary {
  min-width: 140px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-navigation .btn-primary,
.form-navigation .btn-secondary {
  min-width: 140px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Form Progress */
.form-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 12.5%; /* 1/8 sections */
}

.progress-text {
  font-family: var(--font-hanken);
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 100px;
}

/* Regional Structure */
.regional-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.regional-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.regional-list {
  display: grid;
  gap: 0.5rem;
}

.regional-item {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-hanken);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.regional-item:hover {
  border-color: var(--color-accent);
  color: var(--text-primary);
  transform: translateX(2px);
}

.regional-item.wildcard {
  border-color: rgba(246, 217, 0, 0.3);
  background: rgba(246, 217, 0, 0.05);
}

.regional-item.wildcard:hover {
  border-color: var(--color-accent);
  background: rgba(246, 217, 0, 0.1);
}

/* Sponsors Section */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.sponsor-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.sponsor-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sponsor-description {
  font-family: var(--font-hanken);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Form Validation Styles */
.field-error {
  color: #ff4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-family: var(--font-hanken);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input.error,
select.error,
textarea.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

input.error:focus,
select.error:focus,
textarea.error:focus {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

/* Success state */
input.success,
select.success,
textarea.success {
  border-color: #44ff44;
  box-shadow: 0 0 0 3px rgba(68, 255, 68, 0.1);
}

/* Loading state */
input.loading,
select.loading,
textarea.loading {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2C12.7614 2 15 4.23858 15 7C15 9.76142 12.7614 12 10 12C7.23858 12 5 9.76142 5 7C5 4.23858 7.23858 2 10 2Z' stroke='%23F6D900' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 20px;
  padding-right: 3.5rem;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    gap: 0.25rem;
  }
  
  .winners-grid,
  .apply-grid,
  .benefits-redesigned-grid,
  .who-apply-redesigned-grid,
  .who-apply-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-redesigned-grid > .benefit-card-redesigned:nth-child(4),
  .benefits-row-centered,
  .who-apply-redesigned-grid > .who-apply-card:nth-child(4),
  .who-apply-row-centered {
    grid-column: 1 / -1;
  }
  
  .benefits-row-centered,
  .who-apply-row-centered {
    flex-direction: column;
    align-items: center;
  }
  
  .benefits-row-centered .benefit-card-redesigned,
  .who-apply-row-centered .who-apply-card {
    max-width: 100%;
    width: 100%;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .perks-table {
    min-width: 400px;
  }
  
  .table-cell {
    font-size: 0.7rem;
    padding: 0.5rem 0.25rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Form Mobile Styles */
  .form-section {
    padding: 2rem;
    margin-bottom: 1rem;
  }
  
  .form-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  select,
  textarea {
    min-height: 52px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .regional-grid {
    grid-template-columns: 1fr;
  }
  
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .rules-container {
    gap: 2.5rem;
  }
  
  .rule-category {
    padding: 2rem;
  }
  
  .rule-category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  
  .rule-item {
    padding: 1.5rem;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .rule-item::before {
    left: 1rem;
    top: 1.5rem;
    font-size: 1.25rem;
  }
  
  .rule-title {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
  }
  
  .rule-description {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  
  .mobile-menu-button {
    display: flex;
  }
}