/* ===== VARIABLES ===== */
:root {
  --deep-void: #1A0B2E;
  --royal-purple: #4A1259;
  --maranon-orange: #E35D33;
  --amber: #FF9100;
  --gold: #FFB74D;
  --success: #00E676;
  --error: #FF5252;
  --text-primary: #FFFFFF;
  --text-secondary: #FFE0B2;
  --glass-base: rgba(255, 243, 224, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font);
  background: var(--deep-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ===== SECTION TITLE ===== */
.section__title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--maranon-orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 11, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 1001;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Hamburger (CSS-only) */
.nav__toggle-checkbox {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle-checkbox:checked ~ .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle-checkbox:checked ~ .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav__toggle-checkbox:checked ~ .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: rgba(26, 11, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right 0.3s ease;
}

.nav__toggle-checkbox:checked ~ .nav__menu {
  right: 0;
}

.nav__link {
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--maranon-orange);
}

.nav__link--github {
  color: var(--gold);
}

/* Language toggle */
.lang-toggle {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 243, 224, 0.12);
  border-color: var(--maranon-orange);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep-void) 0%, var(--royal-purple) 50%, var(--maranon-orange) 100%);
  z-index: -2;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(227, 93, 51, 0.2) 0%, transparent 60%);
  z-index: -1;
}

.hero__content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__title-sub {
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.8;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 500px;
}

.hero__loading {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.85;
  min-height: 1.5em;
  transition: opacity 0.3s ease;
}

/* ===== RAIN PARTICLES ===== */
.hero__rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  top: -30px;
  width: 24px;
  height: 24px;
  background: url('../img/cashu-tiny.png') center/contain no-repeat;
  animation: rain-fall linear infinite;
  image-rendering: pixelated;
}

.rain-drop:nth-child(1)  { left: 5%;  animation-duration: 7s;   animation-delay: 0s;   width: 18px; height: 18px; }
.rain-drop:nth-child(2)  { left: 12%; animation-duration: 9s;   animation-delay: 2s;   width: 28px; height: 28px; }
.rain-drop:nth-child(3)  { left: 22%; animation-duration: 8s;   animation-delay: 0.8s; }
.rain-drop:nth-child(4)  { left: 30%; animation-duration: 10s;  animation-delay: 3.5s; width: 16px; height: 16px; }
.rain-drop:nth-child(5)  { left: 38%; animation-duration: 8.5s; animation-delay: 1.2s; width: 28px; height: 28px; }
.rain-drop:nth-child(6)  { left: 45%; animation-duration: 7.5s; animation-delay: 2.8s; width: 20px; height: 20px; }
.rain-drop:nth-child(7)  { left: 53%; animation-duration: 9.5s; animation-delay: 0.5s; width: 16px; height: 16px; }
.rain-drop:nth-child(8)  { left: 60%; animation-duration: 10s;  animation-delay: 4s;   width: 28px; height: 28px; }
.rain-drop:nth-child(9)  { left: 68%; animation-duration: 8s;   animation-delay: 1.6s; }
.rain-drop:nth-child(10) { left: 75%; animation-duration: 9s;   animation-delay: 1s;   width: 18px; height: 18px; }
.rain-drop:nth-child(11) { left: 82%; animation-duration: 10.5s;animation-delay: 3s;   }
.rain-drop:nth-child(12) { left: 88%; animation-duration: 7.5s; animation-delay: 4.5s; width: 28px; height: 28px; }
.rain-drop:nth-child(13) { left: 93%; animation-duration: 9.5s; animation-delay: 0.3s; width: 16px; height: 16px; }
.rain-drop:nth-child(14) { left: 17%; animation-duration: 10s;  animation-delay: 2.2s; width: 20px; height: 20px; }
.rain-drop:nth-child(15) { left: 50%; animation-duration: 8.5s; animation-delay: 3.3s; width: 28px; height: 28px; }
.rain-drop:nth-child(16) { left: 3%;  animation-duration: 9s;   animation-delay: 1.5s; width: 20px; height: 20px; }
.rain-drop:nth-child(17) { left: 9%;  animation-duration: 7.8s; animation-delay: 3.8s; width: 16px; height: 16px; }
.rain-drop:nth-child(18) { left: 26%; animation-duration: 10.2s;animation-delay: 0.6s; width: 22px; height: 22px; }
.rain-drop:nth-child(19) { left: 34%; animation-duration: 8.2s; animation-delay: 4.2s; width: 18px; height: 18px; }
.rain-drop:nth-child(20) { left: 42%; animation-duration: 9.3s; animation-delay: 1.8s; width: 26px; height: 26px; }
.rain-drop:nth-child(21) { left: 48%; animation-duration: 7.2s; animation-delay: 3.1s; width: 16px; height: 16px; }
.rain-drop:nth-child(22) { left: 56%; animation-duration: 10.5s;animation-delay: 0.2s; width: 20px; height: 20px; }
.rain-drop:nth-child(23) { left: 64%; animation-duration: 8.8s; animation-delay: 2.5s; width: 28px; height: 28px; }
.rain-drop:nth-child(24) { left: 72%; animation-duration: 7.6s; animation-delay: 4.6s; width: 18px; height: 18px; }
.rain-drop:nth-child(25) { left: 78%; animation-duration: 9.8s; animation-delay: 1.1s; width: 22px; height: 22px; }
.rain-drop:nth-child(26) { left: 85%; animation-duration: 8.4s; animation-delay: 3.6s; width: 16px; height: 16px; }
.rain-drop:nth-child(27) { left: 91%; animation-duration: 10.3s;animation-delay: 0.9s; width: 26px; height: 26px; }
.rain-drop:nth-child(28) { left: 96%; animation-duration: 7.4s; animation-delay: 2.7s; width: 18px; height: 18px; }
.rain-drop:nth-child(29) { left: 20%; animation-duration: 9.6s; animation-delay: 4.0s; width: 20px; height: 20px; }
.rain-drop:nth-child(30) { left: 58%; animation-duration: 8.1s; animation-delay: 1.4s; width: 16px; height: 16px; }

@keyframes rain-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(100vh) rotate(25deg);
    opacity: 0;
  }
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__mascot {
  position: relative;
}

.hero__mascot::before {
  content: '';
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.75) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__mascot-video {
  position: relative;
  z-index: 1;
  width: 260px;
  border-radius: 16px;
  mix-blend-mode: lighten;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--maranon-orange), var(--amber));
  color: #fff;
  box-shadow: 0 4px 20px rgba(227, 93, 51, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(227, 93, 51, 0.6);
}

.btn--glass {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255, 243, 224, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

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

/* Button icon */
.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features {
  padding: 5rem 0;
  background: var(--deep-void);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--maranon-orange);
  box-shadow: 0 8px 32px rgba(227, 93, 51, 0.15);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--maranon-orange);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--deep-void) 0%, rgba(74, 18, 89, 0.3) 100%);
}

.screenshots__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.screenshots__track::-webkit-scrollbar {
  height: 6px;
}

.screenshots__track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.screenshots__track::-webkit-scrollbar-thumb {
  background: var(--maranon-orange);
  border-radius: 3px;
}

.phone-mockup {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.phone-mockup:hover {
  transform: scale(1.03);
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 5rem 0;
  background: var(--deep-void);
}

.how__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step {
  text-align: center;
  max-width: 320px;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maranon-orange), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(227, 93, 51, 0.3);
}

.step__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.step__connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--maranon-orange), transparent);
  margin: 0.5rem auto;
}

/* ===== DOWNLOAD ===== */
.download {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--royal-purple) 0%, var(--deep-void) 100%);
}

.download__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.download__logo {
  flex-shrink: 0;
}

.download__logo-img {
  width: 200px;
}

.download__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .download__layout {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .download__content {
    align-items: flex-start;
    text-align: left;
  }

  .download__badges {
    justify-content: flex-start;
  }
}

.download__title {
  font-size: 2rem;
  font-weight: 800;
}

.download__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.download__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.download__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(227, 93, 51, 0.25);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

/* ===== DEVELOPER ===== */
.developer {
  padding: 5rem 0;
  background: var(--deep-void);
}

.developer__card {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.developer__photo {
  width: 200px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
}

.developer__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.developer__label {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--maranon-orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.developer__name {
  font-size: 1.5rem;
  font-weight: 700;
}

.developer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.developer__links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.developer__links a:hover {
  color: var(--maranon-orange);
}

.developer__links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.developer__nostr-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(0.8);
  transition: filter 0.2s;
}

.developer__links a:hover .developer__nostr-icon {
  filter: brightness(0) invert(0.5) sepia(1) hue-rotate(-15deg) saturate(5);
}

@media (max-width: 480px) {
  .developer__card {
    flex-direction: column;
    text-align: center;
  }

  .developer__photo {
    width: 180px;
  }

  .developer__info {
    align-items: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(26, 11, 46, 0.6);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--maranon-orange);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE: TABLET (768px) ===== */
@media (min-width: 768px) {
  .section__title {
    font-size: 2.5rem;
  }

  .hero__content {
    flex-direction: row;
    text-align: left;
    padding: 4rem 1.5rem;
  }

  .hero__text {
    flex: 1;
  }

  .hero__buttons {
    justify-content: flex-start;
  }

  .hero__mascot {
    flex: 0 0 auto;
  }

  .hero__mascot-video {
    width: 320px;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-mockup {
    width: 240px;
  }

  .how__steps {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  .step__connector {
    width: 60px;
    height: 2px;
    margin: 0 0.5rem;
    background: linear-gradient(to right, var(--maranon-orange), transparent);
    align-self: center;
    margin-top: -2rem;
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer__brand,
  .footer__links,
  .footer__copy {
    flex: 1;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__copy {
    text-align: right;
  }
}

/* ===== RESPONSIVE: DESKTOP (1024px) ===== */
@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav__link {
    font-size: 0.95rem;
  }

  .hero__mascot-video {
    width: 380px;
  }

  .hero__title {
    font-size: 3.2rem;
  }

  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .screenshots__track {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .phone-mockup {
    width: 200px;
  }

  .step__connector {
    width: 80px;
  }
}
