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

:root {
  --primary-color: #a78bfa;
  --primary-dark: #8b5cf6;
  --secondary-color: #ec4899;
  --text-dark: #0f172a;
  --text-crystal: #4cd6f4;
  --text-light: #94a3b8;
  --bg-light: #1e1b4b;
  --bg-white: #0f0a1f;
  --border-color: #312e81;
  --success-color: #10b981;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%, #f093fb 100%);
  --galaxy-gradient: linear-gradient(135deg, #0f0a1f 0%, #1e1b4b 20%, #4c1d95 40%, #7c3aed 60%, #a78bfa 80%, #ec4899 100%);
  --nebula-gradient: radial-gradient(ellipse at top, #7c3aed, transparent), radial-gradient(ellipse at bottom, #ec4899, transparent);
}

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: rgba(15, 10, 31, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.hero {
  background: var(--galaxy-gradient);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.15), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trust-badges span {
  font-size: 0.95rem;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #e2e8f0;
}

.features {
  padding: 5rem 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(124, 58, 237, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.feature-card p {
  color: #cbd5e1;
}

.stats {
  padding: 4rem 0;
  background: var(--bg-light);
  color: white;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.stat-item p {
  opacity: 0.9;
}

.products-preview {
  padding: 5rem 0;
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(30, 27, 75, 0.6);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.2);
}

.product-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.product-card p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.product-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.product-card ul li {
  padding: 0.5rem 0;
  color: #cbd5e1;
}

.cta {
  padding: 5rem 0;
  background: var(--galaxy-gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.2), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

footer {
  background: var(--bg-white);
  color: white;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-col p {
  opacity: 0.8;
  font-size: 0.9rem;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.page-header {
  background: var(--galaxy-gradient);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(167, 139, 250, 0.2), transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.about-content,
.product-section,
.docs-content,
.contact-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.about-section {
  margin-bottom: 4rem;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.about-section p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.values-grid {
  margin-top: 3rem;
}

.value-card {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(124, 58, 237, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.value-card p {
  color: #cbd5e1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
}

.member-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.member-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.awards-list {
  margin-top: 2rem;
}

.award-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  align-items: center;
}

.award-year {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  min-width: 60px;
}

.award-title {
  color: #e2e8f0;
}

.product-section.alternate {
  background: var(--bg-light);
}

.product-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.product-header p {
  color: #cbd5e1;
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  padding: 0.5rem 0;
  color: #cbd5e1;
}

.pricing-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: rgba(30, 27, 75, 0.6);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.price {
  margin-bottom: 2rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

.price .period {
  color: #cbd5e1;
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: #cbd5e1;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.docs-sidebar h3 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.docs-nav {
  list-style: none;
}

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

.docs-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}

.docs-nav a:hover {
  color: var(--primary-color);
  background: rgba(30, 27, 75, 0.4);
}

.doc-section {
  margin-bottom: 4rem;
}

.doc-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.doc-section h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #e2e8f0;
}

.doc-section p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.doc-section ul,
.doc-section ol {
  color: #cbd5e1;
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

.code-block {
  background: rgba(15, 10, 31, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.payment-methods-grid,
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.method-card,
.sdk-card {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.method-card h4,
.sdk-card h4 {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.method-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.docs-table th,
.docs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.docs-table th {
  background: rgba(30, 27, 75, 0.6);
  font-weight: 600;
  color: #e2e8f0;
}

.docs-table td {
  color: #cbd5e1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.contact-info p {
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.method-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.contact-method p {
  color: #cbd5e1;
  margin-bottom: 0.3rem;
}

.contact-method small {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.chat-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.office-hours {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.office-hours h3 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.office-hours p {
  margin-bottom: 0.5rem;
}

.contact-form-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group label {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
  background: rgba(30, 27, 75, 0.4);
  color: #e2e8f0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

.faq-section,
.map-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.faq-item p {
  color: #cbd5e1;
  line-height: 1.6;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.office-card {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.office-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #e2e8f0;
}

.office-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(15, 10, 31, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(124, 58, 237, 0.3);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

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

  .docs-sidebar {
    position: static;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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