/* Zvicra Chat – Landing page styles */
:root {
  --bg-dark: #0c0f14;
  --bg-card: #13171e;
  --bg-card-hover: #1a1f28;
  --text: #e6e9ef;
  --text-muted: #8b92a0;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-secondary: #10b981;
  --accent-secondary-soft: rgba(16, 185, 129, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --nav-height: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Navbar ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-brand:hover {
  color: var(--accent);
  transform: scale(1.02);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #d97706);
  border-radius: var(--radius-sm);
  color: #0c0f14;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(12, 15, 20, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16, 185, 129, 0.08), transparent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: glow-pulse 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: -50px;
  left: -50px;
  animation-delay: -4s;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.title-line {
  display: block;
  opacity: 0;
  animation: title-in 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.35s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.accent {
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  max-width: 520px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
  opacity: 0;
  animation: fade-in 0.6s ease 0.8s forwards;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.animate-fade-in {
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
}

.animate-fade-in.delay-1 { animation-delay: 0.5s; }

@keyframes fade-in {
  to { opacity: 1; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  animation: bounce 2s ease infinite;
}

.scroll-hint:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(-50%) translateY(-4px);
}

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

/* ----- Floating Radio ----- */
.radio-float {
  position: absolute;
  bottom: 100px;
  right: 24px;
  z-index: 2;
  animation: radio-float-in 0.8s ease 0.6s both;
}

@keyframes radio-float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.radio-float-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 380px;
  background: rgba(19, 23, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 158, 11, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radio-float-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 158, 11, 0.12);
}

.radio-float-art-wrap {
  position: relative;
  width: 120px;
  min-width: 120px;
  background: linear-gradient(145deg, var(--bg-card), #0f1218);
}

.radio-float-art,
.radio-float-art-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-float-art-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--accent);
  font-size: 2rem;
  opacity: 0.9;
}

.radio-float-art[src=""],
.radio-float-art:not([src]) {
  opacity: 0;
}

.radio-float-art-wrap:has(.radio-float-art[src^="http"]) .radio-float-art-placeholder {
  display: none;
}

.radio-float-art-wrap:has(.radio-float-art[src^="http"]) .radio-float-art {
  opacity: 1;
}

.radio-float-live {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0c0f14;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.radio-float-live i {
  font-size: 0.5rem;
  animation: radio-live-pulse 1.5s ease infinite;
}

@keyframes radio-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.radio-float-body {
  flex: 1;
  padding: 16px 18px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.radio-float-station {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.radio-float-now {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-float-progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.radio-float-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.radio-float-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-float-listeners {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.radio-float-listeners i {
  margin-right: 4px;
  color: var(--accent-secondary);
}

.radio-float-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}

.radio-float-link:hover {
  color: #fbbf24;
  gap: 8px;
}

.radio-float-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.radio-float-play {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #0c0f14;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.radio-float-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.radio-float-play.playing {
  background: linear-gradient(135deg, var(--accent-secondary), #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.radio-float-play.playing i {
  margin-left: -2px;
}

.radio-float-play i.fa-play {
  margin-left: 3px;
}

.radio-float-play.loading {
  pointer-events: none;
  opacity: 0.9;
}

.radio-float-play.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 900px) {
  .radio-float {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 48px;
    padding: 0 24px;
  }

  .radio-float-card {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .radio-float-card {
    flex-direction: column;
  }

  .radio-float-art-wrap {
    width: 100%;
    height: 140px;
    min-width: unset;
  }

  .radio-float-art,
  .radio-float-art-placeholder {
    position: relative;
    height: 140px;
  }
}

/* ----- Section common ----- */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title i {
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ----- Cards ----- */
.section-cards {
  padding-top: 120px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-kiwi::before {
  background: linear-gradient(90deg, var(--accent), #fbbf24);
}

.card-lounge::before {
  background: linear-gradient(90deg, var(--accent-secondary), #34d399);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-kiwi:hover {
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.08);
}

.card-lounge:hover {
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-kiwi .card-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.card-lounge .card-icon {
  background: var(--accent-secondary-soft);
  color: var(--accent-secondary);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  transition: gap 0.2s ease;
}

.card-lounge .card-cta {
  color: var(--accent-secondary);
}

.card:hover .card-cta {
  gap: 12px;
}

/* ----- Pse / Features ----- */
.section-why {
  background: rgba(0, 0, 0, 0.2);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
}

.feature h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----- Radio player ----- */
.section-radio {
  background: rgba(0, 0, 0, 0.2);
}

.radio-player-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.radio-player-inner .radio-audio {
  width: 100%;
  height: 48px;
  margin-bottom: 12px;
}

.radio-player-inner .radio-audio::-webkit-media-controls-panel {
  background: var(--bg-dark);
}

.radio-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.radio-hint a {
  color: var(--accent);
  text-decoration: none;
}

.radio-hint a:hover {
  text-decoration: underline;
}

.radio-goto-float {
  font-weight: 600;
  color: var(--accent);
}

/* ----- CTA strip ----- */
.section-cta {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.cta-box h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #0c0f14;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid var(--accent-secondary);
}

.btn-secondary:hover {
  background: var(--accent-secondary-soft);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

/* ----- Footer ----- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}
