/* ═══════════════════════════════════════════════
   PumaPay — Premium Design System v2
   ═══════════════════════════════════════════════ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── Design Tokens ─── */
:root {
  --bg-main: #03030b;
  --bg-elevated: #07071a;
  --bg-card: rgba(10, 10, 30, 0.55);
  --bg-console: #060613;
  --bg-glass: rgba(12, 12, 35, 0.4);

  --border-subtle: rgba(122, 0, 255, 0.12);
  --border-default: rgba(122, 0, 255, 0.2);
  --border-hover: rgba(155, 255, 0, 0.35);
  --border-glass: rgba(255, 255, 255, 0.06);

  --color-lime: #9BFF00;
  --color-lime-dim: rgba(155, 255, 0, 0.15);
  --color-violet: #7A00FF;
  --color-violet-dim: rgba(122, 0, 255, 0.12);
  --color-red: #FF2A5F;
  --color-white: #F0F0FA;
  --color-text-main: #E2E2F0;
  --color-text-muted: #7B7F9E;
  --color-text-dim: rgba(142, 146, 178, 0.45);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow-lime: 0 0 40px rgba(155, 255, 0, 0.12);
  --shadow-glow-violet: 0 0 40px rgba(122, 0, 255, 0.15);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--bg-main);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ─── Ambient Background ─── */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(122, 0, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.bg-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.bg-glow-violet {
  background: radial-gradient(circle, var(--color-violet), transparent 70%);
  top: -15%;
  right: -10%;
  animation: orbitGlow 25s infinite alternate ease-in-out;
}

.bg-glow-lime {
  background: radial-gradient(circle, var(--color-lime), transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: orbitGlow 30s infinite alternate-reverse ease-in-out;
}

@keyframes orbitGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, 60px) scale(1.05);
  }

  66% {
    transform: translate(-30px, 90px) scale(0.95);
  }

  100% {
    transform: translate(60px, 30px) scale(1.08);
  }
}

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ─── Utility Colors ─── */
.text-violet {
  color: var(--color-violet);
}

.font-lime {
  color: var(--color-lime);
}

.font-violet {
  color: var(--color-violet);
}

.font-red {
  color: var(--color-red);
}

.gradient-text {
  background: linear-gradient(135deg, #FFF 10%, var(--color-lime) 55%, var(--color-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════
   SCROLL REVEAL
   ═══════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-bounce);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════
   BUTTONS
   ═══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-lime) 0%, #7dcc00 100%);
  color: #03030b;
  box-shadow: 0 4px 24px rgba(155, 255, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(155, 255, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--color-text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  border-color: var(--color-lime);
  color: #FFF;
  box-shadow: 0 0 20px rgba(155, 255, 0, 0.08);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
}

/* Shimmer loading effect for submit button */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ═══════════════════
   HEADER
   ═══════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(3, 3, 11, 0.55);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
  padding: 0.7rem 0;
  background: rgba(3, 3, 11, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border-subtle);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s var(--ease-spring);
}

.logo-wrapper:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.logo-icon-sm {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-lime);
  font-style: italic;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-lime);
  border-radius: 2px;
  transition: width 0.4s var(--ease-spring);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.35rem 0.8rem;
  background: var(--color-violet-dim);
  border: 1px solid rgba(122, 0, 255, 0.25);
  color: #b87eff;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.brand-badge:hover {
  background: rgba(122, 0, 255, 0.2);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--color-text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
}

/* ═══════════════════
   HERO
   ═══════════════════ */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 5rem;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-lime-dim);
  border: 1px solid rgba(155, 255, 0, 0.15);
  color: var(--color-lime);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  animation: fadeSlideDown 0.8s var(--ease-spring) 0.2s both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-lime);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.5;
    box-shadow: 0 0 4px var(--color-lime);
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 12px var(--color-lime);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.8rem;
  animation: fadeSlideUp 0.9s var(--ease-spring) 0.35s both;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.8rem;
  max-width: 520px;
  line-height: 1.7;
  animation: fadeSlideUp 0.9s var(--ease-spring) 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  animation: fadeSlideUp 0.9s var(--ease-spring) 0.65s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Console Mockup ─── */
.hero-visual {
  position: relative;
  animation: fadeSlideUp 1s var(--ease-spring) 0.5s both;
}

.console-box {
  background: var(--bg-console);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep), var(--shadow-glow-violet);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
  max-width: 100%;
}

/* Gradient top border on console */
.console-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-violet) 30%, var(--color-lime) 70%, transparent 100%);
}

.console-header {
  background: rgba(255, 255, 255, 0.015);
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
}

.console-dots {
  display: flex;
  gap: 7px;
}

.console-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.console-dots .dot:hover {
  transform: scale(1.3);
}

.console-dots .red {
  background: var(--color-red);
  box-shadow: 0 0 6px rgba(255, 42, 95, 0.4);
}

.console-dots .yellow {
  background: #FFB800;
  box-shadow: 0 0 6px rgba(255, 184, 0, 0.4);
}

.console-dots .green {
  background: var(--color-lime);
  box-shadow: 0 0 6px rgba(155, 255, 0, 0.4);
}

.console-title {
  margin-left: 1.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.console-body {
  padding: 1.5rem 1.8rem;
  font-size: 0.88rem;
  overflow-x: auto;
  min-height: 240px;
  position: relative;
}

.console-body pre {
  white-space: pre-wrap;
  word-break: break-all;
}

/* Typing cursor blink */
.console-body .typing-cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--color-lime);
  margin-left: 2px;
  animation: blinkCursor 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.code-keyword {
  color: #FF7B72;
}

.code-string {
  color: var(--color-lime);
}

.code-comment {
  color: #6e7681;
  font-style: italic;
}

.code-func {
  color: #D2A8FF;
}

/* Floating Stats */
.floating-stat {
  position: absolute;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--ease-spring);
  animation: floatIdle 6s infinite ease-in-out;
}

.floating-stat:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--color-lime);
  box-shadow: var(--shadow-glow-lime);
}

.stat-1 {
  top: -12%;
  right: -8%;
  animation-delay: 0s;
}

.stat-2 {
  bottom: -8%;
  left: -8%;
  animation-delay: 3s;
}

@keyframes floatIdle {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.stat-icon {
  font-size: 1.6rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
  font-family: var(--font-mono);
}

/* ═══════════════════
   FEATURES
   ═══════════════════ */
.features-section {
  padding: 8rem 0;
  position: relative;
}

/* Divider glow line */
.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-violet), transparent);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

/* Animated gradient border effect */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-lime), var(--color-violet), transparent);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-spring);
}

/* Inner glow on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(155, 255, 0, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), var(--shadow-glow-lime);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1.8rem;
  display: inline-block;
  transition: transform 0.4s var(--ease-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ═══════════════════
   WORKFLOW (Interactive)
   ═══════════════════ */
.workflow-section {
  padding: 8rem 0;
  position: relative;
}

.workflow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(122, 0, 255, 0.035) 0%, transparent 60%);
  pointer-events: none;
}

.workflow-tabs-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}

.workflow-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: sticky;
  top: 120px;
}

.workflow-tab {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

/* Active indicator bar */
.workflow-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-violet);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-spring);
}

.workflow-tab:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-subtle);
  color: var(--color-text-main);
}

.workflow-tab.active {
  background: var(--color-violet-dim);
  border-color: rgba(122, 0, 255, 0.35);
  color: #FFF;
  box-shadow: 0 4px 24px rgba(122, 0, 255, 0.12);
}

.workflow-tab.active::before {
  transform: scaleY(1);
}

.workflow-tab.active .tab-num {
  color: var(--color-lime);
  text-shadow: 0 0 12px rgba(155, 255, 0, 0.4);
}

.tab-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dim);
  min-width: 28px;
  transition: all 0.3s ease;
}

.tab-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.workflow-panels {
  position: relative;
  min-height: 400px;
}

.workflow-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.workflow-panel.active {
  display: grid;
  animation: panelReveal 0.55s var(--ease-spring) forwards;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-content h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0.8rem 0 1.2rem 0;
  line-height: 1.2;
}

.panel-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.panel-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.panel-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-text-main);
  font-size: 0.9rem;
}

.panel-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-lime);
  font-weight: 700;
}

/* Panel Visuals */
.panel-visual {
  background: var(--bg-console);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow for panel visuals */
.panel-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-violet), transparent);
}

.panel-code-box {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.file-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.json-key {
  color: #79C0FF;
}

.json-string {
  color: var(--color-lime);
}

/* KYC checklist */
.kyc-check-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.kyc-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.kyc-item.checked {
  border-color: rgba(155, 255, 0, 0.15);
}

.kyc-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.check-icon {
  background: rgba(155, 255, 0, 0.1);
  color: var(--color-lime);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.check-label {
  flex-grow: 1;
  margin-left: 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.check-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Cashier Mockup */
.cashier-mockup {
  width: 100%;
}

.mockup-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mockup-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mockup-field label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.mockup-field input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  color: #FFF;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.mockup-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mockup-badge {
  background: var(--color-lime-dim);
  color: var(--color-lime);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 0.55rem;
  border-radius: 6px;
  margin-top: 0.6rem;
  letter-spacing: 0.5px;
}

/* Chart */
.chart-container {
  width: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.chart-header span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.chart-header .chart-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-lime);
  font-family: var(--font-mono);
  text-shadow: 0 0 12px rgba(155, 255, 0, 0.25);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 130px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.chart-bar {
  width: 12%;
  height: var(--height);
  background: linear-gradient(180deg, var(--color-lime), var(--color-violet));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.chart-bar:hover {
  opacity: 1;
}

/* Only animate chart bars when panel is visible */
.workflow-panel.active .chart-bar {
  animation: growBar 0.8s var(--ease-spring) forwards;
}

.workflow-panel.active .chart-bar:nth-child(1) {
  animation-delay: 0.1s;
}

.workflow-panel.active .chart-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.workflow-panel.active .chart-bar:nth-child(3) {
  animation-delay: 0.3s;
}

.workflow-panel.active .chart-bar:nth-child(4) {
  animation-delay: 0.4s;
}

.workflow-panel.active .chart-bar:nth-child(5) {
  animation-delay: 0.5s;
}

.workflow-panel.active .chart-bar:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* ═══════════════════
   ARCHITECTURE
   ═══════════════════ */
.architecture-section {
  padding: 8rem 0;
}

.architecture-box {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}

/* Corner accent */
.architecture-box::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(122, 0, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.architecture-text h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 1rem 0 1.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.architecture-text p {
  color: var(--color-text-muted);
  margin-bottom: 2.8rem;
  font-size: 1rem;
  line-height: 1.7;
}

.tech-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.spec-text {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* Architecture Diagram */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-layer {
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.4s var(--ease-spring);
}

.arch-layer:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.arch-layer.highlight-lime {
  border-color: rgba(155, 255, 0, 0.2);
  background: rgba(155, 255, 0, 0.02);
}

.arch-layer.highlight-violet {
  border-color: rgba(122, 0, 255, 0.25);
  background: rgba(122, 0, 255, 0.03);
}

.layer-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.layer-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.layer-boxes span {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.layer-boxes span:hover {
  border-color: var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
}

.arch-arrow {
  color: var(--color-text-dim);
  font-size: 1.4rem;
  margin: 0.35rem 0;
  font-family: var(--font-mono);
  opacity: 0.6;
}

/* ═══════════════════
   CONTACT
   ═══════════════════ */
.contact-section {
  padding: 8rem 0;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(122, 0, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.contact-tag {
  color: var(--color-lime);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-header h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin: 1rem 0 1.5rem 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.contact-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  max-width: 420px;
  line-height: 1.7;
}

.contact-email-fallback {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: max-content;
  transition: all 0.3s ease;
}

.contact-email-fallback:hover {
  border-color: var(--border-subtle);
}

.contact-email-fallback span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.email-link {
  color: var(--color-lime);
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.email-link:hover {
  text-shadow: 0 0 14px rgba(155, 255, 0, 0.4);
}

/* Contact Card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-deep);
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Subtle gradient corner accent */
.contact-card::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(155, 255, 0, 0.04), transparent 70%);
  pointer-events: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s var(--ease-spring);
}

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

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

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.35s var(--ease-spring);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-violet);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(122, 0, 255, 0.12), 0 0 20px rgba(122, 0, 255, 0.08);
}

.form-group select option {
  background-color: var(--bg-main);
  color: #FFF;
}

.form-group textarea {
  resize: vertical;
}

/* ─── Success State ─── */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: successReveal 0.6s var(--ease-bounce) forwards;
}

@keyframes successReveal {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hidden {
  display: none !important;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.checkmark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--color-lime);
  stroke-miterlimit: 10;
  animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--color-lime);
  fill: none;
  animation: strokeCheckmark .6s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheckmark .3s cubic-bezier(0.650, 0.000, 0.450, 1.000) .8s forwards;
}

@keyframes strokeCheckmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fillCheckmark {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(155, 255, 0, 0.04);
  }
}

@keyframes scaleCheckmark {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

.success-state h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.success-state p {
  color: var(--color-text-muted);
  max-width: 320px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.success-note {
  font-size: 0.8rem !important;
  opacity: 0.7;
  margin-bottom: 2rem !important;
}

/* ═══════════════════
   FOOTER
   ═══════════════════ */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem 0;
  background: #020208;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-violet), transparent);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 1.2rem;
  line-height: 1.65;
}

.footer-links-group {
  display: flex;
  gap: 5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--color-lime);
  transform: translateX(3px);
  display: inline-block;
}

.footer-static-info {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.copyright {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.legal-disclaimer {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

/* ═══════════════════
   RESPONSIVE
   ═══════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero {
    padding: 8rem 0 4rem 0;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .workflow-tabs-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .workflow-tabs {
    position: static;
    flex-direction: row;
    display: flex;
    gap: 0.8rem;
  }

  .workflow-tab {
    flex: 1 1 0%;
    min-width: 0;
    padding: 1rem 1.2rem;
  }

  .workflow-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .architecture-box {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.6rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .console-body {
    font-size: 0.75rem;
    padding: 1rem 1.2rem;
    min-height: 180px;
  }

  .console-title {
    font-size: 0.7rem;
    margin-left: 1rem;
  }

  .console-dots .dot {
    width: 9px;
    height: 9px;
  }

  .floating-stat {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links-group {
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tech-specs {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .spec-num {
    font-size: 1.3rem;
  }

  .spec-text {
    font-size: 0.7rem;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .architecture-text h2 {
    font-size: 1.8rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .architecture-box {
    padding: 2rem;
  }

  .panel-content h3 {
    font-size: 1.4rem;
  }

  .workflow-section {
    padding: 4rem 0;
  }

  .features-section {
    padding: 4rem 0;
  }

  .architecture-section {
    padding: 4rem 0;
  }

  .contact-section {
    padding: 4rem 0;
  }

  .arch-layer {
    padding: 1rem;
  }

  .layer-boxes {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .layer-boxes span {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* Workflow Tabs 2x2 Grid for Tablet/Mobile */
  .workflow-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    position: static;
  }

  .workflow-tab {
    min-width: 0;
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* Fullscreen Active Mobile Menu */
  .header.nav-active {
    height: 100vh;
    background: #03030b !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .header.nav-active .header-container {
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    padding: 6rem 2rem 4rem 2rem;
    position: relative;
  }

  .header.nav-active .logo-wrapper {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
  }

  .header.nav-active .mobile-menu-btn {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    z-index: 110;
  }

  .header.nav-active .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .header.nav-active .nav-link {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-white);
  }

  .header.nav-active .header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .header.nav-active .header-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  .hero {
    padding: 7rem 0 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .promo-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.9rem;
  }

  .console-body {
    font-size: 0.68rem;
    padding: 0.8rem 1rem;
    min-height: 160px;
  }

  .console-header {
    padding: 0.6rem 0.8rem;
  }

  .tech-specs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .spec-item {
    flex-direction: column;
    align-items: center;
  }

  .contact-header h2 {
    font-size: 1.6rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .architecture-box {
    padding: 1.5rem;
  }

  .architecture-text h2 {
    font-size: 1.5rem;
  }

  .footer-links-group {
    flex-direction: column;
    gap: 2rem;
  }

  .workflow-tab {
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
  }

  .tab-num {
    font-size: 0.85rem;
  }

  .panel-content h3 {
    font-size: 1.2rem;
  }

  .panel-tag {
    font-size: 0.65rem;
  }

  .kyc-item {
    padding: 0.7rem;
    gap: 0.6rem;
  }

  .check-label {
    font-size: 0.82rem;
  }

  .check-status {
    font-size: 0.65rem;
  }

  .mockup-header {
    font-size: 0.7rem;
  }

  .mockup-field label {
    font-size: 0.7rem;
  }

  .mockup-field input {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
  }

  .mockup-field-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .chart-header {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }

  .legal-disclaimer {
    font-size: 0.65rem;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .logo-icon {
    width: 60px;
  }

  .logo-icon-sm {
    width: 50px;
  }
}