:root {
  color-scheme: light;
  --background: #ffffff;
  --background-secondary: #fafbfc;
  --card-background: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(59, 130, 246, 0.08);
  --border: #e5e7eb;
  --molecule: rgba(59, 130, 246, 0.08);
  --input-background: #f9fafb;
  --toggle-track: #e5e7eb;
  --toggle-thumb: #ffffff;
  --shadow-soft: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 18px 35px -20px rgba(15, 23, 42, 0.4);
  --shadow-hover: 0 20px 45px -15px rgba(59, 130, 246, 0.35);
  --success: #059669;
  --error: #dc2626;
  --header-height: 70px;
  --transition-speed: 0.35s;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0f0f0f;
  --background-secondary: #1a1a1a;
  --card-background: #262626;
  --text-primary: #f5f5f5;
  --text-secondary: #d4d4d8;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --accent-light: rgba(96, 165, 250, 0.15);
  --border: #404040;
  --molecule: rgba(96, 165, 250, 0.08);
  --input-background: #1a1a1a;
  --toggle-track: #404040;
  --toggle-thumb: #f5f5f5;
  --shadow-soft: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 18px 35px -20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 45px -18px rgba(0, 0, 0, 0.6);
  --success: #34d399;
  --error: #f97316;
}

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

body {
  margin: 0;
  height: 100vh;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  transition: background var(--transition-speed) ease,
    color var(--transition-speed) ease;
  overflow: hidden;
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
    background-attachment: fixed;
  }
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  transition: background var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
  z-index: 100;
}

:root[data-theme="dark"] .fixed-header {
  background: rgba(15, 15, 15, 0.95);
  border-bottom-color: #404040;
}

.header-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

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

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}

.header-link:hover {
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.header-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-link-icon {
  width: 18px;
  height: 18px;
}

.logo-section {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}

.logo-section:focus-visible,
.logo-section:hover {
  transform: scale(1.02);
}

.company-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.theme-button {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background: var(--background-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
}

.theme-button:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.theme-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-icon {
  font-size: 1.4rem;
  transition: opacity 0.3s ease;
  position: absolute;
  font-weight: normal;
}

.theme-icon.sun-icon {
  opacity: 1;
}

.theme-icon.moon-icon {
  opacity: 0;
}

:root[data-theme="dark"] .theme-icon.sun-icon {
  opacity: 0;
}

:root[data-theme="dark"] .theme-icon.moon-icon {
  opacity: 1;
}


main {
  position: relative;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 24px) 32px 24px;
}

.page-container {
  width: min(1200px, 100%);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.right-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2.hero-tagline {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--accent);
}

.hero-description {
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.product-suite {
  background: var(--card-background);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    box-shadow 0.3s ease;
}

.product-suite:hover {
  box-shadow: var(--shadow-hover);
}

.product-suite-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.product-suite-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.product-suite-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-tabs {
  display: inline-flex;
  border-radius: 6px;
  background: var(--background-secondary);
  padding: 6px;
  gap: 8px;
}

.product-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease,
    transform 0.2s ease;
}

.product-tab[aria-selected="true"] {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 15px -10px rgba(37, 99, 235, 0.6);
}

.product-tab:hover {
  transform: translateY(-1px);
}

.product-panels {
  display: grid;
}

.product-panel {
  display: none;
  gap: 12px;
}

.product-panel[aria-hidden="false"] {
  display: grid;
}

.product-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.product-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-audience {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.product-tag {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}



.product-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.product-section:last-child {
  border-bottom: none;
}

.product-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.product-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.product-content .product-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.product-content .product-audience {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.product-content .product-tags {
  justify-content: center;
}

.success-state {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--success);
}

.success-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-carousel-container {
  background: var(--card-background);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .product-carousel-container {
  background: #1f1f1f;
  border-color: #404040;
}

.product-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--background-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.2s ease;
  z-index: 2;
}

:root[data-theme="dark"] .carousel-arrow {
  background: #2a2a2a;
  border-color: #525252;
  color: #e5e5e5;
}

.carousel-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.carousel-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.product-carousel-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.product-carousel-slide {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

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

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

.product-carousel-slide h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.product-carousel-slide .product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-carousel-slide .product-audience {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-carousel-slide .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

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

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

:root[data-theme="dark"] .carousel-indicator {
  background: #525252;
}

.carousel-indicator.active {
  background: var(--accent);
}

.carousel-indicator:hover {
  background: var(--accent);
  transform: scale(1.2);
}

.molecule-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.atom {
  position: absolute;
  opacity: 0.07;
  --shift-x: 0px;
  --shift-y: 0px;
  transform: translate3d(var(--shift-x), var(--shift-y), 0);
  transition: transform 0.6s ease;
}

.atom::before,
.atom::after {
  content: "";
}

.atom .atom-core {
  position: relative;
  width: 100%;
  height: 100%;
  animation: float 20s ease-in-out infinite;
}

.atom .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--molecule);
  transform-origin: center;
  transform: translate(-50%, -50%);
}

.atom .orbit .electron {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  top: -2.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--molecule);
}

.atom .nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--molecule);
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-14px);
  }
}

.atom[data-size="sm"] {
  width: 140px;
  height: 140px;
}

.atom[data-size="md"] {
  width: 200px;
  height: 200px;
}

.atom[data-size="lg"] {
  width: 240px;
  height: 240px;
}

.atom[data-variant="a"] .orbit:nth-child(2) {
  width: 80px;
  height: 80px;
  animation: rotate 10s linear infinite;
}

.atom[data-variant="a"] .orbit:nth-child(3) {
  width: 120px;
  height: 120px;
  animation: rotate 14s linear infinite reverse;
}

.atom[data-variant="a"] .orbit:nth-child(4) {
  width: 160px;
  height: 160px;
  animation: rotate 18s linear infinite;
}

.atom[data-variant="b"] .orbit:nth-child(2) {
  width: 60px;
  height: 60px;
  animation: rotate 9s linear infinite reverse;
}

.atom[data-variant="b"] .orbit:nth-child(3) {
  width: 100px;
  height: 100px;
  animation: rotate 13s linear infinite;
}

.atom[data-variant="c"] .orbit:nth-child(2) {
  width: 70px;
  height: 70px;
  animation: rotate 11s linear infinite;
}

.atom[data-variant="c"] .orbit:nth-child(3) {
  width: 130px;
  height: 130px;
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .page-container {
    gap: 40px;
  }

  .product-suite {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  main {
    padding: calc(var(--header-height) + 32px) 24px 48px;
  }

  .page-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }



  .atom {
    opacity: 0.04;
  }
}

@media (max-width: 600px) {
  .fixed-header {
    padding: 0 20px;
    height: 64px;
  }

  :root {
    --header-height: 64px;
  }

  main {
    padding: calc(var(--header-height) + 20px) 20px 60px;
  }

  .logo-badge {
    width: 100px;
    height: 32px;
    font-size: 0.62rem;
  }

  .company-name {
    font-size: 1rem;
  }

  .product-suite {
    border-radius: 4px;
  }

  .product-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-card h3 {
    font-size: 1.35rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }


  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }


  .product-content {
    padding: 0 20px;
  }

  .product-content h2 {
    font-size: 2rem;
  }

  .product-carousel-container {
    padding: 24px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .product-carousel {
    gap: 16px;
  }
}

@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;
  }

  .atom {
    transition: none;
  }
}
