/* stylelint-disable no-descending-specificity */
:root {
  --primary-cyan: #00f2da;
  --secondary-teal: #00b2a0;
  --bg-dark: #050a0e;
  --bg-gradient: #002b2b;
  --text-primary: #fff;
  --text-secondary: #a0aec0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: Inter, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Navigation */
.nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 79px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  background: rgba(5, 10, 14, 0.8);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo .kivicube-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-logo .split {
  width: 1px;
  height: 32px;
  margin: 0 20px;
  background: #f4f4f4;
}

.nav-logo img {
  width: auto;
  height: 37px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-cyan);
}

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

.nav-cta {
  white-space: nowrap;
}

.lang-switcher {
  position: relative;
}

.lang-button {
  min-width: 60px;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
}

.lang-button:hover,
.lang-button[aria-expanded="true"] {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(5, 10, 14, 0.96);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.lang-switcher.open .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: rgba(0, 242, 218, 0.12);
  color: var(--primary-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav .start-create {
  display: none;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--primary-cyan),
    var(--secondary-teal)
  );
  color: var(--bg-dark);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 242, 218, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

[data-scene] {
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  align-items: center;
  padding: 120px 60px 80px;
}

.hero-container {
  display: grid;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  margin: 0 auto;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
}

.hero-bg-video {
  position: absolute;
  z-index: 1;
  top: 87px;
  left: 0;
  width: 100%;
  height: calc(100% - 87px);
}

.hero-bg-video .video-area {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 50%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.hero-bg-video video {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 600px;
  border-radius: 8px;
  object-fit: cover;
}

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

.hero-logo {
  margin-bottom: 24px;
}

.hero-logo-image {
  width: auto;
  height: 79px;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 27px;
  opacity: 0.8;
}

.hero-description {
  max-width: 500px;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-size: 18px;
}

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

.hero-shapes {
  position: relative;
  height: 500px;
}

/* Glow Effects */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-cyan {
  background: radial-gradient(
    circle,
    rgba(0, 242, 218, 0.2) 0%,
    transparent 70%
  );
}

.hero-glow-1 {
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
}

.hero-glow-2 {
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
}

/* Demo Section */
.demo-section {
  position: relative;
  padding: 60px;
}

.demo-container {
  display: grid;
  max-width: 1180px;
  align-items: center;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
}

.demo-card {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  border-radius: 20px;
  text-align: center;
}

.demo-card-video {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 8px;
}

.video-play-fallback-host {
  position: relative;
}

.video-play-fallback-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  outline: none;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-play-fallback-button.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-play-fallback-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-play-fallback-button:focus,
.video-play-fallback-button:focus-visible,
.video-play-fallback-button:active {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.video-play-fallback-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.demo-content h2 {
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.demo-content p {
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 16px;
}

.demo-content .demo-subtitle {
  margin-bottom: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 27px;
  opacity: 0.8;
}

.demo-content .btn-secondary {
  margin-left: 16px;
}

/* Benefits Section */
.benefits-section {
  position: relative;
  padding: 60px;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-header h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 700;
}

.section-header h2 img {
  width: auto;
  height: 40px;
  margin-top: 7px;
  margin-left: 10px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.benefits-grid {
  position: relative;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, 1fr);
}

.benefit-card {
  padding: 32px 24px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 30px rgba(0, 242, 218, 0.1);
  transform: translateY(-5px);
}

.benefit-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--primary-cyan),
    var(--secondary-teal)
  );
  border-radius: 16px;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: var(--bg-dark);
}

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

.benefit-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* How It Works Section */
.how-it-works {
  position: relative;
  overflow: hidden;
  padding: 60px;
}

.how-glow {
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
}

.steps-container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  position: relative;
  padding: 40px;
  text-align: center;
}

.step-number {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;

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

.step-arrow {
  position: absolute;
  top: calc((100% - 150px) / 2);
  left: 100%;
  transform: translate(-20px, -45px);
}

.step-arrow svg {
  display: block;
  width: 90px;
  height: 90px;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
}

.step p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
  padding: 60px;
}

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

.testimonial-card {
  padding: 32px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-radius: 20px;
}

.testimonial-card::before {
  color: var(--primary-cyan);
  content: '"';
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-text {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

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

.author-avatar {
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-cyan),
    var(--secondary-teal)
  );
  border-radius: 50%;
  color: var(--bg-dark);
  font-weight: 700;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 600;
}

.author-info span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Use Cases Section */
.usecases-section {
  padding: 60px;
}

.usecase-item {
  display: grid;
  align-items: center;
  margin-bottom: 80px;
  gap: 60px;
  grid-template-columns: repeat(4, 1fr);
}

.case-video-area {
  position: relative;
  width: auto;
}

.case-video-area .case-video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.usecase-content {
  justify-self: flex-end;
}

.usecase-content h3 {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
}

.usecase-content p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 16px;
}

.usecase-images {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.usecase-images img {
  width: 100%;
  aspect-ratio: 11.1/9;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.usecase-images img:hover {
  transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
  padding: 120px 60px;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
}

.faq-header h2 {
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
}

.faq-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.faq-list {
  display: grid;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-radius: 16px;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.faq-question:hover {
  color: var(--primary-cyan);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary-cyan);
  text-decoration: none;
}

/* Footer */
.footer-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.footer-content {
  display: grid;
  box-sizing: border-box;
  align-items: flex-end;
  padding: 30px 90px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

.footer p {
  color: #8c8c8c;
  font-size: 16px;
  text-align: left;
}

.footer .links {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.footer a {
  color: #8c8c8c;
  font-size: 16px;
  text-decoration: none;
}

.scene-modal {
  position: fixed;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 9, 13, 0.82);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scene-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.scene-modal-dialog {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  height: 100%;
  max-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #020608;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.scene-modal-loading {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 8, 0.72);
  inset: 0;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  visibility: visible;
}

.scene-modal-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.scene-modal-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(0, 242, 218, 0.2);
  border-top-color: #00f2da;
  animation: scene-spinner-rotate 0.9s linear infinite;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 242, 218, 0.18);
}

@keyframes scene-spinner-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.scene-modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.scene-modal-close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-modal-close:hover {
  opacity: 0.9;
  transform: scale(1.04);
}

.scene-modal-iframe {
  position: absolute;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  inset: 0;
}

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

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

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  padding: 10px;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 10, 14, 0.98);
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 100dvh;
    padding: 0;
  }

  .hero-container,
  .demo-container,
  .demo-container-right {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .hero-content {
    order: 2;
  }

  .hero-container {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 120px 60px 80px;
    background: linear-gradient(359deg, black, transparent 50%, transparent);
  }

  .hero-bg-video {
    top: 79px;
    height: calc(100% - 79px);
  }

  .hero-bg-video .video-area {
    width: 100%;
    height: 100%;
  }

  .hero-bg-video video {
    width: 100%;
    max-width: initial;
    height: 100%;
    max-height: initial;
    border-radius: 0;
  }

  .demo-content {
    order: 2;
  }

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

  .hero-shapes {
    height: calc(100vh - 520px);
  }

  .hero-description {
    color: rgba(200, 200, 200);
  }

  .step {
    padding: 10px 20px;
  }

  .steps-container {
    gap: 60px;
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 240px;
    margin-bottom: 20px;
  }

  .step h3 {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .step-arrow svg {
    display: block;
    width: 70px;
    height: 70px;
  }

  .step .step-arrow {
    top: 100%;
    left: 50%;
    transform: translate(-35px, -5px) rotate(90deg);
  }

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

  .usecase-content {
    justify-self: flex-start;
  }

  .usecase-content p {
    margin-bottom: 20px;
  }

  .usecase-content h3 {
    margin-bottom: 8px;
    font-size: 26px;
  }

  .faq-container {
    gap: 40px;
  }

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

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

  .footer-content {
    align-content: flex-end;
    padding: 15px 30px;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .footer .links {
    justify-content: center;
    gap: 10px;
  }

  .footer p {
    order: 2;
    font-size: 14px;
    text-align: center;
  }

  .footer a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .video-play-fallback-button {
    width: 64px;
    height: 64px;
  }

  .nav-logo img {
    height: 30px;
  }

  .nav-logo .split {
    height: 22px;
    margin: 0 10px;
  }

  .nav-toggle {
    padding: 10px 5px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-toggle span {
    width: 20px;
  }

  .lang-button {
    min-width: 50px;
    padding: 8px;
    border-width: 1px;
  }

  .hero-container {
    align-self: stretch;
    padding: 120px 24px;
  }

  .hero-bg {
    background-position-x: 8vw;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .step {
    padding: 10px 0;
  }

  .step-number {
    width: 160px;
    margin-bottom: 12px;
  }

  .usecase-item {
    gap: 30px;
  }

  .demo-section,
  .benefits-section,
  .how-it-works,
  .testimonials-section,
  .usecases-section,
  .faq-section {
    padding: 50px 24px;
  }

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

  .section-header h2,
  .demo-content h2,
  .faq-header h2 {
    font-size: 28px;
  }

  .benefit-icon {
    margin-bottom: 8px;
  }

  .benefit-card {
    padding: 16px 8px;
  }

  .benefit-card h3 {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .benefit-card p {
    font-size: 10px;
  }

  .scene-modal {
    padding: 0;
  }

  .scene-modal-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: none;
    border-radius: 0;
  }
}

@media (max-width: 650px) {
  .nav-cta {
    display: none;
  }

  .nav > .btn {
    display: none;
  }

  .nav .start-create {
    display: block;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
