/* PONDA landing — dark premium flywheel aesthetic */

:root {
  --ink: #050505;
  --panel: #0e0e0e;
  --ember: #E84A2E;
  --glow: #FF7A45;
  --gold: #D4AF37;
  --mute: #9a9a9a;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Ambient layers */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 15%, transparent 72%);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.text-gradient {
  background: linear-gradient(135deg, #FF9A6A 0%, #FF7A45 28%, #E84A2E 55%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sticky nav polish */
.site-header {
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.78);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--ember), var(--glow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #E84A2E 0%, #FF7A45 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgba(255,122,69,0.25),
    0 0 28px rgba(232, 74, 46, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, filter 0.2s ease;
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,122,69,0.4),
    0 8px 36px rgba(232, 74, 46, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.28);
  filter: brightness(1.06);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0) scale(0.98); }

.stat-pill {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border-radius: 1rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.stat-pill:hover {
  border-color: rgba(232, 74, 46, 0.35);
  transform: translateY(-2px);
}

.glass-card {
  background: rgba(14,14,14,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.feature-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(232, 74, 46, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(232, 74, 46, 0.08);
}

.icon-box {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  background: rgba(232, 74, 46, 0.14);
  color: #FF7A45;
  border: 1px solid rgba(232, 74, 46, 0.32);
  box-shadow: 0 0 20px rgba(232, 74, 46, 0.12);
}

.phase-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18,18,18,0.9), rgba(10,10,10,0.85));
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.phase-card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(232, 74, 46, 0.08), 0 16px 48px rgba(0,0,0,0.35);
}
.phase-card.border-ember\/30:hover {
  border-color: rgba(232, 74, 46, 0.4);
  box-shadow: 0 0 40px rgba(232, 74, 46, 0.08);
}
@media (min-width: 640px) {
  .phase-card { padding: 2rem; }
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #cfcfcf;
}

.flywheel-loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  line-height: 1.6;
  color: #e8e8e8;
}
.flywheel-loop .arrow {
  color: #E84A2E;
  opacity: 0.85;
  font-weight: 600;
}
.flywheel-loop span:not(.arrow) {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.flywheel-loop span:not(.arrow):hover {
  border-color: rgba(232, 74, 46, 0.35);
  background: rgba(232, 74, 46, 0.08);
}

.flow-diagram {
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, #0c0c0c, #080808);
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem;
  max-width: 36rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (min-width: 640px) {
  .flow-diagram { padding: 2rem 2.5rem; }
}

.flow-node {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  text-align: center;
  color: #f0f0f0;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}
.flow-node:hover {
  transform: scale(1.015);
  border-color: rgba(255,255,255,0.2);
}
.flow-node.accent {
  border-color: rgba(232, 74, 46, 0.5);
  background: rgba(232, 74, 46, 0.12);
  color: #FF7A45;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(232, 74, 46, 0.15);
}
.flow-node.success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
}
.flow-node.muted {
  border-color: rgba(255,255,255,0.08);
  color: #9a9a9a;
}
.flow-node .tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.4rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(255,255,255,0.08);
  color: #cfcfcf;
  vertical-align: middle;
}
.flow-arrow {
  text-align: center;
  color: #E84A2E;
  padding: 0.35rem 0;
  font-size: 1.1rem;
  line-height: 1;
}

.dash-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0a0a;
  border-radius: 1.15rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.dash-card:hover { border-color: rgba(255,255,255,0.14); }
.dash-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255,255,255,0.015) 6px,
    rgba(255,255,255,0.015) 12px
  );
  pointer-events: none;
}

/* Hero mascot frame */
.mascot-frame {
  position: relative;
  border-radius: 2rem;
  background: linear-gradient(160deg, rgba(255,122,69,0.35), rgba(255,255,255,0.08) 40%, transparent 70%);
  padding: 1px;
  box-shadow: 0 0 60px rgba(232, 74, 46, 0.18);
}
.mascot-frame-inner {
  border-radius: calc(2rem - 1px);
  background: radial-gradient(ellipse at 50% 30%, #1a1210 0%, #0a0a0a 70%);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-img {
  width: 92%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(232, 74, 46, 0.25));
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  object-fit: cover;
  ring: 1px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
a:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(232, 74, 46, 0.35);
}

.float-slow {
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* Optional soft page load */
.page-ready body { opacity: 1; }
html:not(.page-ready) body {
  opacity: 0;
  transition: opacity 0.35s ease;
}
html.page-ready body {
  opacity: 1;
  transition: opacity 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .float-slow { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary, .btn-ghost, .feature-card, .stat-pill, .brand-mark, .flow-node {
    transition: none;
  }
  .btn-primary:hover, .btn-ghost:hover, .feature-card:hover, .stat-pill:hover {
    transform: none;
  }
  html:not(.page-ready) body,
  html.page-ready body {
    opacity: 1;
    transition: none;
  }
}

::selection {
  background: rgba(232, 74, 46, 0.4);
  color: #fff;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #E84A2E;
  outline-offset: 3px;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
}
.mobile-nav.open {
  display: block;
}
@media (min-width: 768px) {
  .mobile-nav, .mobile-nav.open { display: none !important; }
}

.section-label {
  color: var(--ember);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
