/* ==========================================================================
   Cryptsoft B2B Security Company - Main Stylesheet
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Primary Colors */
  --color-primary: #568cca;
  --color-primary-dark: #3a6fa8;
  --color-primary-light: #7aabe0;

  /* Neutral Colors */
  --color-dark-navy: #1a2332;
  --color-text: #2d3748;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-border: #e2e8f0;

  /* Accent Colors */
  --color-success: #10b981;
  --color-accent: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ==========================================================================
   2. Reset and Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--color-dark-navy);
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   3. Container
   ========================================================================== */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* ==========================================================================
   4. Navigation / Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: 72px;
}

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

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  max-height: 40px;
  width: auto;
}

.header-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-left: 10px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.header-nav .nav-links {
  flex: 1;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.nav-link.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 0;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Nav CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-left: 12px;
}

.nav-cta:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 16px 0;
  z-index: 999;
}

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

.mobile-nav .nav-link {
  display: block;
  padding: 12px 24px;
  width: 100%;
  border-bottom: none;
  border-radius: 0;
}

.mobile-nav .nav-link.active {
  background-color: var(--color-bg-alt);
  border-bottom: none;
  border-left: 3px solid var(--color-primary);
}

.mobile-nav .nav-cta {
  display: block;
  text-align: center;
  margin: 16px 24px 8px;
}

/* Body offset for fixed header */
body {
  padding-top: 72px;
}

/* Responsive Navigation */
@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

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

  .nav-links {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero {
  background-color: var(--color-dark-navy);
  background-image: linear-gradient(135deg, var(--color-dark-navy) 0%, #0f172a 50%, #1e293b 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(86, 140, 202, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(86, 140, 202, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.hero-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.hero-stat-label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(86, 140, 202, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--color-dark-navy);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Hero responsive */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ==========================================================================
   6. Section Styles
   ========================================================================== */

.section {
  padding: 80px 0;
}

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

.section-dark {
  background-color: var(--color-dark-navy);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.section-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 32px;
  }
}

/* ==========================================================================
   7. Cards
   ========================================================================== */

.card {
  background-color: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 32px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(86, 140, 202, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

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

.card-icon img {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark-navy);
}

.card-text {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ==========================================================================
   8. Grid Layouts
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ==========================================================================
   9. Product Cards
   ========================================================================== */

.product-card {
  background-color: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 32px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark-navy);
}

.product-card-header .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.product-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-card-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(86, 140, 202, 0.1);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
}

/* ==========================================================================
   10. Customer / Logo Grid
   ========================================================================== */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.logo-cell,
.logo-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-base), opacity var(--transition-base);
  text-decoration: none;
}

.logo-cell:hover,
.logo-grid-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

.logo-cell img,
.logo-grid-item img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
}

/* ==========================================================================
   11. Testimonials
   ========================================================================== */

.testimonial-card {
  background-color: var(--color-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  padding-left: 24px;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 3rem;
  color: var(--color-primary);
  font-style: normal;
  line-height: 1;
  font-weight: 700;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-dark-navy);
}

.testimonial-role {
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

/* ==========================================================================
   12. Testimonial Carousel
   ========================================================================== */

.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 16px;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--color-text);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--color-bg-alt);
  box-shadow: var(--shadow-lg);
}

.carousel-btn--prev,
.carousel-prev {
  left: 8px;
}

.carousel-btn--next,
.carousel-next {
  right: 8px;
}

.carousel-slide {
  padding: 0 60px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast);
}

.carousel-dot:hover {
  background-color: var(--color-primary-light);
}

.carousel-dot.active {
  background-color: var(--color-primary);
}

/* Carousel content styling */
.carousel-quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  padding-left: 24px;
  padding-right: 24px;
}

.carousel-quote::before {
  content: '\201C';
  position: absolute;
  left: -4px;
  top: -8px;
  font-size: 3rem;
  color: var(--color-primary);
  font-style: normal;
  line-height: 1;
}

.carousel-quote::after {
  content: '\201D';
  position: absolute;
  right: -4px;
  bottom: -16px;
  font-size: 3rem;
  color: var(--color-primary);
  font-style: normal;
  line-height: 1;
}

.carousel-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-author-logo {
  max-height: 36px;
  max-width: 80px;
  object-fit: contain;
}

.carousel-author-info {
  display: flex;
  flex-direction: column;
}

.carousel-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.carousel-author-role {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   13. About Page
   ========================================================================== */

.about-card {
  display: flex;
  flex-direction: row;
  background-color: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.about-card-image {
  width: 400px;
  min-height: 240px;
  background-size: calc(100% - 48px) auto;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.about-card-content {
  flex: 1;
  padding: 32px;
}

.about-card-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 12px;
}

.about-card-content p {
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .about-card {
    flex-direction: column;
  }

  .about-card-image {
    width: 100%;
    min-height: 180px;
  }
}

/* ==========================================================================
   14. Announcements
   ========================================================================== */

.announcement-item {
  display: flex;
  flex-direction: row;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-date {
  min-width: 120px;
  color: var(--color-text-light);
  font-size: 0.875rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.announcement-content {
  flex: 1;
}

.announcement-title {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-dark-navy);
  margin-bottom: 4px;
}

.announcement-title a {
  color: inherit;
  text-decoration: none;
}

.announcement-title a:hover {
  color: var(--color-primary);
}

.announcement-text {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.9375rem;
}

@media (max-width: 767px) {
  .announcement-item {
    flex-direction: column;
    gap: 4px;
  }

  .announcement-date {
    min-width: auto;
  }
}

/* ==========================================================================
   15. Contact Form
   ========================================================================== */

.contact-form {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--color-text);
}

.form-label .required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(86, 140, 202, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

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

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: #ef4444;
}

.form-input.invalid:focus,
.form-select.invalid:focus,
.form-textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.invalid-feedback {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

.form-hint {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-bg-dark);
  color: #ffffff;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-heading {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  opacity: 0.6;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-social a {
  color: #ffffff;
  opacity: 0.5;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   17. Utility Classes
   ========================================================================== */

/* Text Alignment */
.text-center {
  text-align: center;
}

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

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

/* Margins - Top */
.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-5 {
  margin-top: 40px;
}

.mt-6 {
  margin-top: 48px;
}

/* Margins - Bottom */
.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mb-5 {
  margin-bottom: 40px;
}

.mb-6 {
  margin-bottom: 48px;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

/* Gap Utilities */
.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.gap-4 {
  gap: 32px;
}

/* Visibility */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   18. Interop Page
   ========================================================================== */

.interop-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .interop-features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-panel {
  background-color: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 24px;
}

.feature-panel h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* ==========================================================================
   19. Partners Grid
   ========================================================================== */

.partner-card {
  background-color: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 32px;
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.partner-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.partner-card img {
  max-height: 80px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.partner-card h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 8px;
}

.partner-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   20. Animations
   ========================================================================== */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.6s ease forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   21. Tables
   ========================================================================== */

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background-color: var(--color-bg-alt);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-primary);
  font-size: 0.875rem;
  color: var(--color-dark-navy);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text);
}

.data-table tr:hover td {
  background-color: var(--color-bg-alt);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Responsive table wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.table-responsive .data-table {
  min-width: 600px;
}

/* ==========================================================================
   22. Badge / Pill Styles
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

.badge-blue {
  background-color: rgba(86, 140, 202, 0.1);
  color: var(--color-primary);
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.badge-dark {
  background-color: rgba(26, 35, 50, 0.1);
  color: var(--color-dark-navy);
}

.badge-amber {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-accent);
}

/* ==========================================================================
   23. PQC Highlight Box
   ========================================================================== */

.pqc-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.pqc-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.pqc-banner h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pqc-banner p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 80%;
}

.pqc-banner .btn-secondary {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .pqc-banner::before {
    display: none;
  }

  .pqc-banner p {
    max-width: 100%;
  }
}

/* ==========================================================================
   24. Specs / Features List
   ========================================================================== */

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23568cca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 3l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 3px;
  background-size: 14px 14px;
}

/* ==========================================================================
   25. Tab Component
   ========================================================================== */

.tabs {
  width: 100%;
}

.tab-list {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  white-space: nowrap;
  position: relative;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.tab-panel {
  padding: 24px 0;
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ==========================================================================
   26. Additional Component Styles
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 16px 0;
}

.breadcrumbs a {
  color: var(--color-text-light);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .separator {
  color: var(--color-border);
}

/* Alert / Notice Boxes */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid;
}

.alert-info {
  background-color: rgba(86, 140, 202, 0.08);
  border-color: rgba(86, 140, 202, 0.2);
  color: var(--color-primary-dark);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #059669;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

/* Divider */
.divider {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin: 24px 0;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark-navy) 0%, #0f172a 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

@media (max-width: 767px) {
  .cta-section {
    padding: 48px 0;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }
}

/* Inline code */
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875em;
  background-color: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}

/* ==========================================================================
   27. JS-Generated Component Alignment
   ========================================================================== */

/* Nav dropdown - JS generates .nav-item.has-dropdown > .nav-dropdown */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item.has-dropdown > .nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 1001;
}

.nav-item.has-dropdown:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.15s;
}

.nav-dropdown-item:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-dropdown-header {
  display: block;
  padding: 8px 16px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.nav-dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background-color: var(--color-border);
}

/* Mobile nav - JS generated classes */
.mobile-nav-link {
  display: block;
  padding: 12px 24px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.mobile-nav-group {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-group > .mobile-nav-link {
  border-bottom: none;
}

.mobile-nav-sublinks {
  padding-left: 16px;
  padding-bottom: 8px;
}

.mobile-nav-sublink {
  display: block;
  padding: 6px 24px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.mobile-nav-cta {
  display: block;
  text-align: center;
  margin: 16px 24px 8px;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.mobile-nav-cta:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

/* Footer columns - JS generates .footer-col with h4 and ul>li>a */
.footer-col h4 {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  opacity: 0.6;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  padding: 0;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #ffffff;
}

/* Responsive nav - ensure hamburger shows on mobile */
@media (max-width: 767px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none !important;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   28. Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .mobile-menu-btn,
  .mobile-nav,
  .back-to-top,
  .nav-cta {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: #fff !important;
    color: #000 !important;
    padding: 24px 0;
  }

  .hero h1 {
    color: #000;
    font-size: 2rem;
  }

  .section {
    padding: 24px 0;
  }

  .card,
  .product-card,
  .testimonial-card,
  .about-card,
  .feature-panel,
  .partner-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
