/*
Theme Name: Falcn Security
Theme URI: https://falcn.io
Author: Falcn Team
Author URI: https://falcn.io
Description: A dark, cyberpunk-inspired theme for Falcn - The Next-Gen AI Security Platform for Software Supply Chains. Features a sleek dark interface with teal accents, terminal-style code blocks, and enterprise-grade aesthetics.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: MIT License
License URI: https://opensource.org/licenses/MIT
Text Domain: falcn
Tags: dark-mode, security, technology, one-column, custom-logo, custom-menu, featured-images

Falcn Security Theme - Secure Your Software Supply Chain with AI-Powered Precision
*/

/* ==========================================================================
   CSS Variables & Foundation
   ========================================================================== */

:root {
  /* Primary Colors */
  --falcn-dark: #0a0e14;
  --falcn-surface: #0d1117;
  --falcn-card: #141922;
  --falcn-card-hover: #1a1f2e;
  --falcn-border: #2d3548;
  
  /* Accent Colors */
  --falcn-teal: #00d4aa;
  --falcn-teal-dark: #00a888;
  --falcn-teal-glow: rgba(0, 212, 170, 0.15);
  --falcn-red: #ff6b6b;
  --falcn-yellow: #f5c542;
  --falcn-blue: #4dabf7;
  
  /* Text Colors */
  --falcn-text: #f0f4f8;
  --falcn-text-muted: #8892a2;
  --falcn-text-dim: #5c6370;
  
  /* Typography */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-width: 1200px;
  --container-padding: clamp(20px, 5vw, 40px);
  
  /* Effects */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--falcn-text);
  background: var(--falcn-dark);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--falcn-teal);
  color: var(--falcn-dark);
}

/* Links */
a {
  color: var(--falcn-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--falcn-text);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--falcn-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1em;
  color: var(--falcn-text-muted);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Accent Text */
.text-teal { color: var(--falcn-teal); }
.text-red { color: var(--falcn-red); }
.text-yellow { color: var(--falcn-yellow); }
.text-muted { color: var(--falcn-text-muted); }

/* Label/Tag Style */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--falcn-teal);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 800px;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--falcn-border);
  transition: transform var(--transition-medium);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--container-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--falcn-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--falcn-teal);
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--falcn-teal);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--falcn-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--falcn-text);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--falcn-teal);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Header CTA */
.header-cta {
  display: flex;
  gap: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--falcn-text);
  margin: 6px 0;
  transition: var(--transition-fast);
}

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--falcn-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition-medium);
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-menu a {
    font-size: 24px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--falcn-teal) 0%, var(--falcn-teal-dark) 100%);
  color: var(--falcn-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--falcn-dark);
}

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

.btn-secondary:hover {
  border-color: var(--falcn-teal);
  color: var(--falcn-teal);
}

.btn-ghost {
  background: transparent;
  color: var(--falcn-teal);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--falcn-teal-glow);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

/* Hero Background Effects */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 168, 136, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--falcn-card);
  border: 1px solid var(--falcn-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--falcn-text-muted);
  margin-bottom: 24px;
}

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

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

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--falcn-teal);
  position: relative;
}

.hero .lead {
  max-width: 700px;
  margin: 0 auto 40px;
}

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

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--falcn-text-muted);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--falcn-teal);
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-card {
  background: var(--falcn-card);
  border: 1px solid var(--falcn-border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--falcn-teal), var(--falcn-teal-dark));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.feature-card:hover {
  border-color: var(--falcn-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--falcn-teal-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  margin-bottom: 0;
}

/* ==========================================================================
   Code Blocks & Terminal
   ========================================================================== */

.terminal {
  background: var(--falcn-surface);
  border: 1px solid var(--falcn-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--falcn-card);
  border-bottom: 1px solid var(--falcn-border);
}

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

.terminal-dot.red { background: var(--falcn-red); }
.terminal-dot.yellow { background: var(--falcn-yellow); }
.terminal-dot.green { background: var(--falcn-teal); }

.terminal-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--falcn-text-muted);
}

.terminal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-line {
  display: block;
  white-space: pre;
}

.terminal-prompt {
  color: var(--falcn-teal);
}

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

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

.terminal-success {
  color: var(--falcn-teal);
}

.terminal-error {
  color: var(--falcn-red);
}

.terminal-warning {
  color: var(--falcn-yellow);
}

/* Inline Code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 8px;
  background: var(--falcn-card);
  border-radius: 4px;
  color: var(--falcn-teal);
}

pre {
  background: var(--falcn-surface);
  border: 1px solid var(--falcn-border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}

pre code {
  padding: 0;
  background: none;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-item {
  text-align: center;
  padding: 32px;
  background: var(--falcn-card);
  border: 1px solid var(--falcn-border);
  border-radius: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--falcn-teal);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   Pricing Table
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--falcn-card);
  border: 1px solid var(--falcn-border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--falcn-teal);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--falcn-teal);
  color: var(--falcn-dark);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--falcn-border);
}

.pricing-name {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--falcn-teal);
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--falcn-text-muted);
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--falcn-text-muted);
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: var(--falcn-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--falcn-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--falcn-text);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--falcn-teal);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--falcn-teal);
  transition: transform var(--transition-fast);
}

.faq-icon::before {
  width: 2px;
  height: 16px;
  left: 11px;
  top: 4px;
}

.faq-icon::after {
  width: 16px;
  height: 2px;
  left: 4px;
  top: 11px;
}

.faq-item.active .faq-icon::before {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--falcn-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--falcn-surface);
  border-top: 1px solid var(--falcn-border);
  padding: 80px 0 40px;
}

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

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--falcn-text);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--falcn-text-muted);
}

.footer-links a:hover {
  color: var(--falcn-teal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--falcn-border);
  font-size: 14px;
  color: var(--falcn-text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--falcn-card);
  border-radius: 8px;
  color: var(--falcn-text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--falcn-teal);
  color: var(--falcn-dark);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .label {
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* ==========================================================================
   Background Decorations
   ========================================================================== */

.bg-dark { background: var(--falcn-dark); }
.bg-surface { background: var(--falcn-surface); }

.glow-top-left::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.glow-bottom-right::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 168, 136, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Alignments */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

/* WordPress Admin Bar Fix */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
