/* 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(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 8ch;
  text-align: center;
}

.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;
}

/* ===== 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;
}

/* ===== 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 APPLY GRID ===== */
.who-apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.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;
}

/* ===== 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;
}

/* ===== 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;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .who-apply-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;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .hero-title {
    max-width: 8ch;
  }
  
  .benefits-grid,
  .who-apply-grid {
    grid-template-columns: 1fr;
  }
  
  .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;
  }
}