/* ============================================
   OCX SOFT - Main Stylesheet
   ============================================ */

:root {
  /* Dark theme (default) */
  --bg-primary: #0a0a1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent-cyan: #00d4ff;
  --accent-purple: #7c3aed;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-cyan: #0891b2;
  --accent-purple: #7c3aed;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Global Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-purple);
}

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

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

body.light-theme header {
  background: rgba(248, 250, 252, 0.8);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-cyan);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Mobile Navigation
   ============================================ */

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-direction: column;
  gap: 0;
  padding: 0;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

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

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-menu a {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ============================================
   Main Content
   ============================================ */

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 2rem;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 1.5rem;
  }
}

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

.hero {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   Grid
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

/* ============================================
   Module Cards
   ============================================ */

.module-card {
  position: relative;
  overflow: hidden;
}

.module-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
}

.module-status.soon {
  background: rgba(124, 58, 237, 0.5);
  color: var(--accent-purple);
}

.module-status.dev {
  background: rgba(148, 113, 113, 0.5);
  color: #b8a9a0;
}

.module-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.module-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.module-features {
  list-style: none;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.module-features li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.module-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.module-compatibility {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.compat-badge {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   Features Section
   ============================================ */

.features {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
}

.features-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
  padding: 4rem 2rem;
}

.pricing-container {
  max-width: 600px;
  margin: 2rem auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 1rem 0;
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* ============================================
   Documentation
   ============================================ */

.docs-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.docs-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: fit-content;
  backdrop-filter: blur(10px);
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 0.5rem;
}

.docs-sidebar a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
}

.docs-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.docs-section {
  margin-bottom: 3rem;
  display: none;
}

.docs-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.docs-section h2 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.docs-section h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.code-block code {
  color: var(--accent-cyan);
}

.step {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0.25rem;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-cyan);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.3s ease;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

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

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Cabinet
   ============================================ */

.cabinet-section {
  max-width: 600px;
  margin: 0 auto;
}

.license-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.license-input-group input {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}

.license-input-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.license-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  display: none;
}

.license-info.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.license-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.license-info-row:last-child {
  border-bottom: none;
}

.license-info-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.license-info-value {
  color: var(--accent-cyan);
  font-weight: 600;
  text-align: right;
}

.license-status-valid {
  color: #10b981;
}

.license-status-expired {
  color: #ef4444;
}

.modules-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  display: none;
}

.modules-list.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.modules-list h3 {
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.module-download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.module-download-item:hover {
  border-color: var(--accent-cyan);
}

.module-download-item:last-child {
  margin-bottom: 0;
}

.module-download-name {
  color: var(--text-primary);
  font-weight: 600;
}

.module-download-size {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 1rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  display: none;
}

.error-message.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 2rem;
}

.footer-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-secondary);
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .docs-wrapper {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-sidebar.active {
    display: block;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }

  .license-input-group {
    flex-direction: column;
  }

  .license-input-group input {
    min-width: unset;
  }

  .license-input-group .btn {
    width: 100%;
  }

  section {
    padding: 2rem 1rem;
  }
}

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

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

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

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.scroll-animation {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}
