/* Biran landing — custom styles (Tailwind utilities loaded from CDN in index.html) */

* {
  scrollbar-width: thin;
  scrollbar-color: #00d4ff22 #111;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050507;
  color: #f0f0f5;
  font-family: "Inter", sans-serif;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.animate-slide-up {
  animation: slide-up 0.7s ease forwards;
  opacity: 0;
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
}

.pricing-popular {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.code-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.syntax-key {
  color: #7dd3fc;
}

.syntax-str {
  color: #86efac;
}

.syntax-fn {
  color: #c084fc;
}

.nav-blur {
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 7, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Clear notch / Dynamic Island on iOS */
  padding-top: env(safe-area-inset-top, 0px);
}

/* Momentum scrolling for code blocks on iOS */
.code-scroll-touch {
  -webkit-overflow-scrolling: touch;
}

.provider-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.provider-badge:hover {
  background: rgba(255, 255, 255, 0.08);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(0, 212, 255, 0.35);
  transition: all 0.3s ease;
  color: #00d4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.6);
}

.telegram-btn {
  background: #229ed9;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.telegram-btn:hover {
  background: #1a8fc0;
  box-shadow: 0 0 20px rgba(34, 158, 217, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.stat-number {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-num {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #00d4ff;
}

.glow-box {
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.glow-box:hover {
  box-shadow:
    0 0 50px rgba(0, 212, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.footer-link {
  color: #6b7280;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #f0f0f5;
}

.method-get {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.method-post {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover {
  color: #e5e7eb;
  background: rgba(0, 212, 255, 0.06);
}

.lang-btn-active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.12);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.5);
  outline-offset: 2px;
}

/* API copy button */
.api-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
}
.api-copy-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: #00d4ff;
}
.api-copy-btn.copied {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

/* FAQ accordion */
.faq-item {
  overflow: hidden;
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: #00d4ff; }
.faq-chevron {
  flex-shrink: 0;
  color: #6b7280;
  transition: transform 0.25s ease;
}
details[open] > .faq-summary .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #9ca3af;
}
