@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #09090b;
  --bg-2: #111114;
  --bg-3: #18181c;
  --surface: #1c1c21;
  --surface-2: #242429;
  --text: #f4f4f6;
  --text-2: #b4b4bc;
  --text-3: #787882;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --accent: #e8302c;
  --accent-2: #ff4a45;
  --accent-glow: rgba(232, 48, 44, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(232, 48, 44, 0.15);
  --max-w: 1000px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select {
  font: inherit;
}

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

.section {
  padding: 80px 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 32px;
  width: auto;
}

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

.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 48, 44, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  min-height: 1.5em;
}

/* Text Slider */
.text-slider {
  display: block;
  position: relative;
}

.slide {
  display: none;
  animation: slideIn 0.6s ease forwards;
}

.slide.active {
  display: block;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn i, .btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c41e19);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow), 0 0 40px rgba(232, 48, 44, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(145deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 48, 44, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: rgba(232, 48, 44, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(232, 48, 44, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 48, 44, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.card-icon i, .card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Section Header */
.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Preview Section */
.preview-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

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

.preview-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-2);
}

.preview-features li i, .preview-features li svg {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  width: 16px;
  height: 16px;
}

.preview-image {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.preview-image img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Module Tabs */
.module-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.module-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(145deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.module-tab i, .module-tab svg {
  width: 18px;
  height: 18px;
}

.module-tab:hover {
  border-color: rgba(232, 48, 44, 0.3);
  color: var(--text);
}

.module-tab.active {
  background: linear-gradient(135deg, var(--accent), #c41e19);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Module Content */
.module-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.module-panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 32px;
  background: linear-gradient(145deg, var(--bg-2), var(--bg));
}

.module-panel.active {
  display: grid;
}

.module-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
}

.preview-dots span:first-child {
  background: var(--accent);
}

.preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.preview-body {
  padding: 20px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.preview-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.module-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.module-info p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.module-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

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

.module-features li i, .module-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Datasheet Section */
.datasheet-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.datasheet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.datasheet-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 48, 44, 0.08), transparent 70%);
  pointer-events: none;
}

.datasheet-left {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.datasheet-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #c41e19);
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.datasheet-icon i, .datasheet-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.datasheet-text {
  max-width: 600px;
}

.datasheet-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.datasheet-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent), #c41e19);
  border: none;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px var(--accent-glow);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-download i, .btn-download svg {
  width: 20px;
  height: 20px;
}

.btn-download:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 50px var(--accent-glow), 0 0 60px rgba(232, 48, 44, 0.4);
}

.btn-download:hover::before {
  left: 100%;
}

/* CTA Section */
.cta-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(232, 48, 44, 0.15), rgba(232, 48, 44, 0.05));
  border: 1px solid rgba(232, 48, 44, 0.2);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 48, 44, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-2);
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cta-actions .btn i, .cta-actions .btn svg {
  width: 18px;
  height: 18px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(232, 48, 44, 0.1);
}

/* Integrations */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.logo-tag {
  padding: 12px 20px;
  background: linear-gradient(145deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.logo-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 48, 44, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-tag:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(232, 48, 44, 0.1);
}

.logo-tag:hover::after {
  opacity: 1;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo img {
  height: 32px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), #c41e19);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.footer-social a i, .footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom p i, .footer-bottom p svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.back-to-top i, .back-to-top svg {
  width: 16px;
  height: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-3);
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom p i, .footer-bottom p svg {
  width: 14px;
  height: 14px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.back-to-top i, .back-to-top svg {
  width: 16px;
  height: 16px;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-card {
    order: -1;
  }
  
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .preview-image {
    order: -1;
  }
  
  .module-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .datasheet-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  
  .datasheet-left {
    flex-direction: column;
    align-items: center;
  }
  
  .datasheet-text {
    max-width: 100%;
  }
  
  .datasheet-meta {
    justify-content: center;
  }
  
  .btn-download {
    width: 100%;
    justify-content: center;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --max-w: 100%;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  
  .nav.open {
    display: flex;
  }
  
  .nav a {
    padding: 12px 16px;
    width: 100%;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .module-tabs {
    gap: 8px;
  }
  
  .module-tab {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .module-tab span {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
