/* ========================================
   AuditLab Landing Page — Dark Theme
   Smart IT-HUB · sith.uz
   ======================================== */

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

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f1120;
  --bg-card: #151730;
  --bg-card-hover: #1a1e3a;
  --bg-input: #1a1e35;
  --border: #252850;
  --border-light: #303560;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a4c0;
  --text-muted: #6b6f8d;
  --accent: #0078d4;
  --accent-hover: #1a8fe8;
  --accent-dark: #005a9e;
  --accent-glow: rgba(0, 120, 212, 0.25);
  --danger: #d13438;
  --warning: #ff8c00;
  --success: #107c10;
  --info: #0078d4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

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

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 26, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo svg { width: 36px; height: 36px; }

.logo span { color: var(--accent); }

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

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

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

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border);
}

.lang-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
  font-family: inherit;
  text-transform: uppercase;
}

.lang-btn:hover { color: var(--text-secondary); }

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 1px;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav hidden by default on desktop */
.nav-mobile { display: none; }

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 120, 212, 0.08) 0%, transparent 60%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 120, 212, 0.03) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

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

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

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

.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 120, 212, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 120, 212, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-dark), var(--accent));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all var(--transition);
}

.step:hover .step-num {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* --- Module Showcase (Accordion) --- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.module-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.module-item.active,
.module-item:hover {
  border-color: var(--accent);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.module-header:hover {
  background: var(--bg-card-hover);
}

.module-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.module-count {
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(0, 120, 212, 0.1);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.module-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  font-size: 1.2rem;
}

.module-item.active .module-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.module-body-inner {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* --- Reports Section --- */
.report-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.report-features {
  list-style: none;
}

.report-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.report-features li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.report-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.report-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

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

.report-dot.red { background: var(--danger); }
.report-dot.yellow { background: var(--warning); }
.report-dot.green { background: var(--success); }

.report-preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.report-mini-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.report-mini-card .num {
  font-size: 1.8rem;
  font-weight: 800;
}

.report-mini-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.report-mini-card.critical .num { color: var(--danger); }
.report-mini-card.high .num { color: var(--warning); }
.report-mini-card.medium .num { color: #ffc83d; }
.report-mini-card.low .num { color: var(--success); }

.report-bar {
  grid-column: 1 / -1;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.report-bar-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.bar-track {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.bar-segment {
  height: 100%;
  transition: width 1s ease;
}

.bar-segment.critical { background: var(--danger); }
.bar-segment.high { background: var(--warning); }
.bar-segment.medium { background: #ffc83d; }
.bar-segment.low { background: var(--success); }

/* --- Report Format Cards --- */
.report-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

.format-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 120, 212, 0.1);
}

.format-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--accent);
}

.format-icon svg { width: 40px; height: 40px; }

.format-badge {
  position: absolute;
  bottom: -4px;
  right: -12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.format-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.format-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- Report CTA --- */
.report-cta {
  text-align: center;
  margin-top: 40px;
}

.report-demo-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-style: italic;
}

/* --- Pricing --- */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-hover));
}

.pricing-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-card .desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 20px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 120, 212, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg { width: 20px; height: 20px; }

.contact-info-text .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-text .value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(16, 124, 16, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  color: var(--success);
  text-align: center;
  font-weight: 500;
}

.form-success.show { display: block; }

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo svg { width: 24px; height: 24px; }
.footer-logo span { color: var(--accent); }

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .report-content { grid-template-columns: 1fr; }
  .report-formats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .nav-links { display: none; }

  .burger { display: flex; }

  .nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    z-index: 999;
  }

  .nav-mobile.open { display: block; }

  .nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-mobile a {
    display: block;
    padding: 14px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
  }

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

  .nav-mobile .lang-switcher {
    margin-top: 24px;
    justify-content: center;
  }

  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .section { padding: 64px 0; }

  .features-grid { grid-template-columns: 1fr; }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps::before { display: none; }

  .modules-grid { grid-template-columns: 1fr; }

  .report-formats { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

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

  .pricing-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
