/* ═══════════════════════════════════════════════════════════
   OCS Landing Page — Premium Dark Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #8b5cf6 50%,
    #a855f7 100%
  );

  --deny: #ef4444;
  --warn: #f59e0b;
  --allow: #22c55e;
  --cost: #06b6d4;

  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(99, 102, 241, 0.5);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --section-padding: 120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   Background Effects
   ═══════════════════════════════════════════════════════════ */

.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--accent-primary) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
  animation: orb-float 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    var(--accent-secondary) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
  animation: orb-float 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cost) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-pulse 15s ease-in-out infinite;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(40px, 10px) scale(1.02);
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* ═══════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-size: 28px;
}

.nav-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-link.btn-primary {
  background: var(--accent-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Aligner to top */
  padding: 60px 24px 40px; /* Reduced manual top spacing */
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 1200px; /* Aumentado de 900px para caber o título */
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--allow);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(40px, 6vw, 80px); /* Increased impact */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 1200px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px; /* Increased readability */
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 40px;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   Terminal
   ═══════════════════════════════════════════════════════════ */

.terminal-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #febc2e;
}
.dot.green {
  background: #28c840;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.prompt {
  color: var(--allow);
  font-weight: 600;
}

.command {
  color: var(--text-primary);
}

.terminal-output p {
  margin: 2px 0;
}

.output-header {
  color: var(--text-muted);
}

.output-title {
  color: var(--accent-primary);
  font-weight: 600;
}

.output-decision {
  font-weight: 600;
}

.deny-icon {
  font-size: 16px;
}

.deny-text {
  color: var(--deny);
  font-weight: 700;
}

.output-section {
  color: var(--deny);
  margin-top: 8px;
}

.output-violation {
  color: var(--deny);
}

.output-detail {
  color: var(--text-secondary);
  padding-left: 20px;
}

.cost-text {
  color: var(--warn);
  font-weight: 600;
}

.output-footer {
  color: var(--deny);
  margin-top: 8px;
}

/* Typing animation */
.typing {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(30) forwards;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.fade-in-sequence p {
  opacity: 0;
  animation: fade-in 0.3s forwards;
}

.fade-in-sequence p:nth-child(1) {
  animation-delay: 2.2s;
}
.fade-in-sequence p:nth-child(2) {
  animation-delay: 2.4s;
}
.fade-in-sequence p:nth-child(3) {
  animation-delay: 2.6s;
}
.fade-in-sequence p:nth-child(4) {
  animation-delay: 2.8s;
}
.fade-in-sequence p:nth-child(5) {
  animation-delay: 3s;
}
.fade-in-sequence p:nth-child(6) {
  animation-delay: 3.2s;
}
.fade-in-sequence p:nth-child(7) {
  animation-delay: 3.4s;
}
.fade-in-sequence p:nth-child(8) {
  animation-delay: 3.6s;
}
.fade-in-sequence p:nth-child(9) {
  animation-delay: 3.8s;
}
.fade-in-sequence p:nth-child(10) {
  animation-delay: 4s;
}
.fade-in-sequence p:nth-child(11) {
  animation-delay: 4.2s;
}
.fade-in-sequence p:nth-child(12) {
  animation-delay: 4.4s;
}

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

/* ═══════════════════════════════════════════════════════════
   Floating Cards
   ═══════════════════════════════════════════════════════════ */

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 24px;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.card-value {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.card-value.savings {
  color: var(--allow);
}

.card-value.fast {
  color: var(--cost);
}

.card-value.blocked {
  color: var(--deny);
}

/* Card Positions */
.card-1 {
  top: 20%;
  left: 5%;
}

.card-2 {
  top: 35%;
  right: 8%;
}

.card-3 {
  bottom: 35%;
  left: 8%;
}

.card-4 {
  top: 15%;
  right: 15%;
}

.card-5 {
  bottom: 25%;
  right: 5%;
}

.card-6 {
  bottom: 20%;
  left: 12%;
}

/* Float Animations */
.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes float-medium {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

@keyframes float-fast {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.animate-float {
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ═══════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════ */

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   Stats Section
   ═══════════════════════════════════════════════════════════ */

.stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .floating-cards {
    display: none;
  }

  .nav {
    padding: 16px 24px;
  }

  .hero {
    padding: 120px 24px 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .terminal-body {
    padding: 16px;
    font-size: 12px;
  }

  .stats {
    flex-direction: column;
    gap: 32px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* Footer Links */
.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px dotted var(--text-muted);
}

.footer a:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════════
   Features Accordion (FAQ Style)
   ═══════════════════════════════════════════════════════════ */

.features-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: var(--bg-card-hover);
}

.feature-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
}

.feature-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.feature-header::-webkit-details-marker {
  display: none; /* Safari */
}

.feature-icon-small {
  font-size: 24px;
  margin-right: 16px;
}

.feature-name {
  font-size: 18px;
  font-weight: 600;
  flex-grow: 1;
  color: var(--text-primary);
}

.feature-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  margin-left: 16px;
}

.feature-item[open] .feature-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.feature-body {
  padding: 0 24px 24px 64px; /* Align with text start */
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.feature-item[open] .feature-body {
  animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-body p {
  margin-bottom: 12px;
}

.feature-body strong {
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════
   Features Modal (Global)
   ═══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh; /* Limita altura */
  overflow-y: auto; /* Habilita scroll dentro do modal */
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -1px;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════
   Pricing Modal
   ═══════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.pricing-card.featured {
  border-color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tier-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 40px; /* Alinhamento */
}

.tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex-grow: 1; /* Empurra botão para baixo */
}

.tier-features li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   Logo Branding
   ═══════════════════════════════════════════════════════════ */

.nav-logo-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.1) rotate(5deg);
}
