/* ============================================================================
   RESET & BASE
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

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

ul {
  list-style: none;
}

/* Remove number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Selection */
::selection {
  background: rgba(0, 255, 163, 0.3);
  color: white;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-sm {
  max-width: 42rem;
}

.container-md {
  max-width: 48rem;
}

.hidden {
  display: none !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    90deg,
    #00FFA3 0%,
    #03E1FF 25%,
    #DC1FFF 50%,
    #03E1FF 75%,
    #00FFA3 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-cycle 4s linear infinite;
}

@keyframes gradient-cycle {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(to right, #00FFA3, #03E1FF);
  color: #000;
  border-radius: 0.375rem;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  padding: 0.75rem 1rem;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

#navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo img {
  width: 1.75rem;
  height: 1.75rem;
}

.logo span {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-btn {
  display: none;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

.mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  background-color: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-wallet-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .nav-btn {
    display: block;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* ============================================================================
   HERO
   ============================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.25rem 5rem;
}

.hero-text {
  max-width: 48rem;
}

.hero-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================================
   STATS
   ============================================================================ */

.stats-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #000;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  padding-right: 2rem;
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  
  .stat-item {
    padding: 0 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .stat-item:first-child {
    padding-left: 0;
  }
  
  .stat-item:last-child {
    border-right: none;
  }
}

/* ============================================================================
   SPONSORS
   ============================================================================ */

.sponsors-section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background-color: #000;
}

.sponsors-title {
  text-align: center;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 2rem;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 2.5rem;
}

.sponsor-item {
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.sponsor-item:hover {
  opacity: 0.7;
  filter: grayscale(0);
}

.sponsor-item img {
  height: 1.5rem;
  width: auto;
  object-fit: contain;
}

/* ============================================================================
   SECTION HEADERS
   ============================================================================ */

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

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 28rem;
  margin: 0 auto;
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq-section {
  padding: 5rem 0;
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.faq-question span:first-child {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding-right: 2rem;
  transition: color 0.2s;
}

.faq-question:hover span:first-child {
  color: #fff;
}

.faq-icon {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 1.25rem;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  white-space: pre-line;
}

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */

.how-section {
  padding: 5rem 0;
  background-color: #000;
}

.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.step-card {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.step-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.step-card:hover .step-number {
  color: rgba(255, 255, 255, 0.1);
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Yield Section */
.yield-section {
  margin-top: 4rem;
}

.yield-section .section-header {
  margin-bottom: 2.5rem;
}

.yield-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.yield-card {
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  transition: border-color 0.2s;
}

.yield-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.yield-card.featured {
  background: linear-gradient(to bottom right, rgba(0, 255, 163, 0.1), rgba(3, 225, 255, 0.05));
  border-color: rgba(0, 255, 163, 0.2);
}

.yield-period {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.25rem;
}

.yield-rate {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.yield-example {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 1024px) {
  .yield-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================================
   FEATURES
   ============================================================================ */

.features-section {
  padding: 5rem 0;
  background-color: #000;
}

.features-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 5rem;
}

.feature-card {
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Comparison Table */
.comparison-section {
  max-width: 48rem;
  margin: 0 auto;
}

.comparison-section > h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.comparison-table {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: rgba(255, 255, 255, 0.02);
}

.comparison-header .comparison-cell {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-header .comparison-cell:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-header .comparison-cell:last-child {
  border-right: none;
  color: rgba(255, 255, 255, 0.6);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-row .comparison-cell {
  padding: 1rem;
  font-size: 0.875rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

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

.comparison-row .comparison-cell.label {
  color: rgba(255, 255, 255, 0.5);
}

.comparison-row .comparison-cell.flash {
  text-align: center;
  color: #fff;
}

.comparison-row .comparison-cell.trad {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   CALCULATOR
   ============================================================================ */

.calculator-section {
  padding: 5rem 0;
  background-color: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.calculator-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.calculator-grid {
  display: grid;
  gap: 2rem;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.375rem;
  padding: 0.875rem 1rem;
  padding-right: 5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  border-color: rgba(0, 255, 163, 0.4);
}

.input-suffix {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.input-suffix span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.quick-amounts {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quick-amount {
  flex: 1;
  padding: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.quick-amount:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.quick-amount.active {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.period-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.period-btn {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

.period-btn:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.period-btn.active {
  background: linear-gradient(to right, rgba(0, 255, 163, 0.1), rgba(3, 225, 255, 0.1));
  border-color: rgba(0, 255, 163, 0.2);
  color: #fff;
}

.period-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}

.period-unit {
  display: block;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
}

.yield-rate-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.375rem;
}

.yield-rate-display span:first-child {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.yield-rate-display span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
}

.calculator-output {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.instant-yield-box {
  padding: 1.25rem;
  background: linear-gradient(to bottom right, rgba(0, 255, 163, 0.05), rgba(3, 225, 255, 0.05));
  border: 1px solid rgba(0, 255, 163, 0.1);
  border-radius: 0.5rem;
}

.instant-yield-box .yield-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.25rem;
}

.instant-yield-box .yield-amount {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
}

.instant-yield-box .yield-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.25rem;
}

.calculation-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
}

.detail-row span:first-child {
  color: rgba(255, 255, 255, 0.4);
}

.detail-row span:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.detail-row .penalty {
  color: #DC1FFF;
}

@media (min-width: 640px) {
  .calculator-card {
    padding: 2rem;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background-color: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  grid-column: span 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-size: 1rem;
  font-weight: 600;
}

.footer-brand > p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  max-width: 20rem;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.social-links a:hover {
  color: #fff;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
