/* ===== FLUXPAY INSTITUTIONAL DESIGN SYSTEM (V4.0) ===== */
/* Direction: Silent Infrastructure / Technical Elite / Monochrome */

:root {
  /* Palette: Strict Institutional Monochrome */
  --bg-base: #000000;
  --bg-surface: #000000;
  --bg-elevated: #000000;
  --bg-panel: rgba(0, 0, 0, 0.9);
  
  --fg-bright: #ffffff;
  --fg-primary: #ffffff;
  --fg-secondary: rgba(255, 255, 255, 0.9);
  --fg-muted: rgba(255, 255, 255, 0.6);
  --fg-technical: rgba(255, 255, 255, 0.4);
  
  --accent: #ffffff; 
  
  --border-dim: rgba(255, 255, 255, 0.1);
  --border-med: rgba(255, 255, 255, 0.2);
  --border-strong: rgba(255, 255, 255, 0.3);
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --container-max: 1280px;
  --nav-height: 80px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
}

body {
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.03) 0%, transparent 70%);
  color: var(--fg-primary);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Layers */
.bg-system {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg-base);
}

.bg-noise { display: none; } /* Removed to clarify background */

.bg-grid {
  display: none;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-dim);
  background: #000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--fg-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo styles removed in favor of image-based logo */

.nav-links {
  display: flex;
  gap: 48px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-only, .flex-mobile {
  display: none !important;
}

@media (min-width: 1025px) {
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--fg-bright);
  transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Full width for better experience */
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 20px;
    letter-spacing: 0.2em;
  }
  
  .nav-actions {
    display: none; 
  }

  .mobile-only {
    display: block !important;
  }
  
  .flex-mobile {
    display: flex !important;
  }
  
  .nav-links .btn {
    margin-top: 20px;
    display: inline-flex;
    width: 80%;
    max-width: 300px;
  }
}

.btn {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--fg-bright);
  color: var(--bg-base);
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--fg-secondary);
  border: 1px solid var(--border-med);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  color: var(--fg-bright);
  border-color: var(--fg-bright);
  background: rgba(255, 255, 255, 0.05);
}

/* Typography Editorial */
h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: var(--fg-bright);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-bright);
}

.text-technical {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero .text-technical { margin-bottom: 24px; }
.features-section .text-technical,
.pricing-section .text-technical { margin-bottom: 80px; }

@media (max-width: 768px) {
  .features-section .text-technical,
  .pricing-section .text-technical { margin-bottom: 40px; }
}

.text-technical::before,
.text-technical::after {
  content: '';
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 80px;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero-content {
  max-width: 850px;
}

.hero-description {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin-bottom: 48px;
}

.hero-logo-main {
  width: 180px; /* Increased size for impact */
  height: auto;
  margin-bottom: 32px;
}

.hero-actions {
  margin-top: 48px;
}

.hero-actions .btn-ghost {
  margin-left: 16px;
}

/* Method Badges */
.methods-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .methods-grid {
    gap: 8px;
  }
  .method-tag {
    font-size: 10px;
    padding: 6px 12px;
  }
}

.method-tag {
  padding: 8px 16px;
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.method-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
}

/* Accordion Features */
.features-section {
  padding: 160px 0;
  border-top: 1px solid var(--border-dim);
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion-item {
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}

.accordion-item:first-child {
  border-top: 1px solid var(--border-dim);
}

.accordion-header {
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header:hover .accordion-title {
  color: var(--fg-bright);
}

.accordion-title-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.accordion-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-muted);
}

.accordion-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--fg-secondary);
  transition: color 0.3s ease;
  letter-spacing: -0.02em;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--fg-bright);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::before { width: 14px; height: 1.5px; }
.accordion-icon::after { width: 1.5px; height: 14px; transition: transform 0.4s; }

.accordion-item.active .accordion-icon { transform: rotate(135deg); }
.accordion-item.active .accordion-icon::after { opacity: 0; }

.accordion-content {
  max-height: 0;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 60px;
}

.accordion-desc {
  padding-left: 58px;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* Pricing Section */
.pricing-section {
  padding: 160px 0;
  border-top: 1px solid var(--border-dim);
}

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

.pricing-card {
  border: 1px solid var(--border-med);
  padding: 60px 48px;
  background: #000;
  position: relative;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
}

.pricing-action {
  margin-top: auto;
  padding-top: 40px;
}

.pricing-card:hover {
  border-color: var(--fg-bright);
  transform: translateY(-8px);
}

.pricing-card.black {
  background: #000;
  border-color: var(--border-strong);
  color: #fff;
}

.pricing-card.white {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.pricing-card.white .pricing-name,
.pricing-card.white .pricing-price,
.pricing-card.white .pricing-desc,
.pricing-card.white .pricing-features li {
  color: #000;
}

.pricing-card.white .btn-primary {
  background: #000;
  color: #fff;
}

.pricing-card.white .btn-ghost {
  border-color: rgba(0,0,0,0.2);
  color: #000;
}

.pricing-card.platinum {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
}

.pricing-card.platinum:hover {
  background: rgba(255, 255, 255, 0.05);
  border-style: solid;
}

.pricing-name {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: block;
  color: var(--fg-muted);
}

.pricing-price {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
  letter-spacing: -0.04em;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
}

.pricing-desc {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 40px;
  min-height: 48px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '→';
  font-family: var(--font-mono);
}

/* Institutional Banner */
.institutional-banner {
  padding: 80px 0;
  border-top: 1px solid var(--border-dim);
  text-align: center;
}

.banner-text {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--fg-muted);
}

.institutional-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.6;
  padding: 40px 60px;
}

@media (max-width: 768px) {
  .institutional-banner .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 40px 24px;
  }
  .banner-text {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}

/* Footer */
footer {
  padding: 120px 0 80px;
  background: #000;
  border-top: 1px solid var(--border-med);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr repeat(3, 1fr);
  gap: 100px;
  margin-bottom: 100px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg-bright);
  text-decoration: none;
  margin-bottom: 32px;
  display: block;
}

.footer-column h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link {
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--fg-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 60px;
  border-top: 1px solid var(--border-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* Animations */
[data-reveal] {
  opacity: 1; /* Fallback: Visible by default */
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform, filter;
}

/* If JS is active and IntersectionObserver is about to run */
.js-active [data-reveal]:not(.visible) {
  opacity: 0;
  transform: translateY(10px);
}

[data-reveal].visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Mobile */
@media (max-width: 1200px) {
  .container { padding: 0 40px; }
  .footer-grid { gap: 60px; }
}

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 80px; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-panel { max-width: 600px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .accordion-title-row { gap: 20px; }
  .accordion-desc { padding-left: 0; margin-top: 20px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { margin: 0 auto 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .hero { padding-top: 100px; padding-bottom: 60px; }
  .hero-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    width: 100%; 
    max-width: 300px; 
    margin: 48px auto 0;
  }
  .hero-actions .btn { margin-left: 0 !important; width: 100%; }
  .pricing-section, .features-section { padding: 80px 0; }
  .pricing-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-description { font-size: 16px; }
  .accordion-title { font-size: 1.25rem; }
  .pricing-price { font-size: 40px; }
}

/* Auth Pages (Login / Register) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  border-radius: 12px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .pricing-card.platinum .btn {
    width: 100%;
  }
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fg-bright);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.auth-header p {
  color: var(--fg-secondary);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
}

.form-control {
  background: #000;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--fg-bright);
  font-family: var(--font-main);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.02);
}

.auth-btn {
  width: 100%;
  margin-top: 12px;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-secondary);
}

.auth-footer a {
  color: var(--fg-bright);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Plan Grid for Register */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-card {
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.plan-card input {
  position: absolute;
  opacity: 0;
}

.plan-card.active {
  border-color: var(--fg-bright);
  background: rgba(255,255,255,0.02);
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-details {
  font-size: 10px;
  color: var(--fg-muted);
}
