/*
 * Tiranga Official Channel — dark navy "live color trading" theme.
 * Plain CSS, no framework. Colors use oklch() (supported in all modern browsers).
 */

:root {
  --radius: 0.75rem;
  --background: oklch(0.16 0.045 268);
  --foreground: oklch(0.95 0.015 260);
  --card: oklch(0.2 0.045 268);
  --card-foreground: oklch(0.95 0.015 260);
  --primary: oklch(0.76 0.12 278);
  --primary-foreground: oklch(0.17 0.05 268);
  --secondary: oklch(0.25 0.045 268);
  --muted: oklch(0.23 0.04 268);
  --muted-foreground: oklch(0.68 0.03 265);
  --border: oklch(0.95 0.02 280 / 12%);
  --signal-red: oklch(0.66 0.22 25);
  --signal-green: oklch(0.78 0.17 152);
  --saffron: oklch(0.8 0.15 70);
  --india-green: oklch(0.72 0.19 150);
  --glow: oklch(0.76 0.12 278);

  --font-display: "Bebas Neue", "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  background-color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
}

/* Ambient page glow */
.page-glow {
  min-height: 100vh;
  background:
    radial-gradient(60rem 32rem at 50% -6rem, oklch(0.55 0.14 278 / 0.22), transparent 70%),
    radial-gradient(40rem 24rem at 50% 110%, oklch(0.5 0.12 160 / 0.08), transparent 70%),
    var(--background);
}

.container {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1rem 4rem;
}

@media (min-width: 640px) {
  .container { padding-top: 5rem; }
}

/* Brand row: logo left, name right */
.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.brand-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-logo { width: 5.5rem; height: 5.5rem; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--signal-green);
  color: var(--signal-green);
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1.5px solid currentColor;
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.live-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.brand-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-align: left;
}

@media (min-width: 640px) {
  .brand-title { font-size: 3.5rem; }
}

.brand-line1,
.brand-line2 {
  display: block;
}

.brand-line1 {
  color: var(--foreground);
}

.brand-line2 {
  background: linear-gradient(90deg, var(--saffron), var(--foreground), var(--india-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Step audio section */
.audio-section {
  width: 100%;
  margin-top: 1rem;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.headphones-icon {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

.label-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}

.audio-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1rem;
}

.audio-num {
  width: 4rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.audio-num-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.audio-num-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.audio-row audio {
  height: 2.25rem;
  width: 100%;
  min-width: 0;
  color-scheme: dark;
}

/* Buttons */
.cta-row {
  margin-top: 2rem;
  width: 100%;
  max-width: 21rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-row {
    max-width: none;
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover { transform: scale(1.03); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
}

.btn-secondary:hover { background: var(--muted); }

.btn-icon { font-size: 1.1rem; line-height: 1; }
.btn-icon.send { color: var(--primary); }

/* Glow halo on primary buttons */
.btn-glow {
  box-shadow:
    0 0 24px 2px color-mix(in oklab, var(--glow) 55%, transparent),
    0 0 64px 8px color-mix(in oklab, var(--glow) 28%, transparent);
}

.btn-glow:hover {
  box-shadow:
    0 0 32px 4px color-mix(in oklab, var(--glow) 70%, transparent),
    0 0 80px 12px color-mix(in oklab, var(--glow) 34%, transparent);
}

/* Avatar halo */
.avatar-halo {
  box-shadow:
    0 0 0 2px color-mix(in oklab, var(--glow) 80%, transparent),
    0 0 40px 6px color-mix(in oklab, var(--glow) 40%, transparent),
    0 0 90px 18px color-mix(in oklab, var(--glow) 18%, transparent);
}

/* Stats */
.stats {
  margin-top: 2.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.stat + .stat { border-left: 1px solid var(--border); }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .stat-value { font-size: 2.25rem; }
}

.stat-value.accent { color: var(--primary); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

/* Ticker */
.ticker {
  margin-top: 1.5rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 50%, transparent);
  border-radius: 9999px;
  padding: 0.75rem 0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-left: 3rem;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .ticker-item { font-size: 0.875rem; }
}

.ticker-dot { font-size: 1rem; line-height: 1; }
.ticker-item.red .ticker-dot,
.ticker-item.red .red-word { color: var(--signal-red); }
.ticker-item .red-word { color: var(--signal-red); font-weight: 700; }
.ticker-item .green-word { color: var(--signal-green); font-weight: 700; }
.ticker-item .num { color: var(--muted-foreground); }
.ticker-item .sep { color: var(--muted-foreground); opacity: 0.6; }

/* Features */
.features {
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: background-color 0.2s ease;
}

.feature-card:hover { background: var(--card); }

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--secondary);
  border-radius: 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.feature-body {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Bottom CTA */
.bottom-cta {
  margin-top: 2.5rem;
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .bottom-cta { padding: 2rem; }
}

.tricolor-strip {
  display: inline-flex;
  height: 0.25rem;
  width: 2.5rem;
  overflow: hidden;
  border-radius: 9999px;
}

.tricolor-strip span { flex: 1; height: 100%; }
.tricolor-strip span:nth-child(1) { background: var(--saffron); }
.tricolor-strip span:nth-child(2) { background: var(--foreground); }
.tricolor-strip span:nth-child(3) { background: var(--india-green); }

.bottom-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .bottom-title { font-size: 2.25rem; }
}

.bottom-sub {
  margin: 0.5rem auto 0;
  max-width: 21rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.bottom-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .bottom-buttons { flex-direction: row; justify-content: center; }
  .bottom-buttons .btn { padding: 0.875rem 1.75rem; }
}

/* Footer */
.footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-text {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

/* Entrance animation */
.rise-in {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .rise-in { animation: none; }
  .pulse-dot::after { animation: none; }
}
