:root {
  --bg: #04070d;
  --bg-secondary: #0c1220;
  --text: #edf4ff;
  --muted: #97a6bc;
  --border: rgba(158, 182, 255, 0.12);
  --accent: #63f5ff;
  --accent2: #d8ff63;
  --accent3: #ff7a59;
  --accent4: #7aa2ff;
  --surface: rgba(14, 18, 31, 0.78);
  --radius: 20px;
  --max-w: 1120px;
  --font: "Avenir Next", "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 24px 60px rgba(99, 245, 255, 0.14);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.32);
}

[data-theme="light"] {
  --bg: #f5f8ff;
  --bg-secondary: #edf2fb;
  --text: #112033;
  --muted: #42546f;
  --border: rgba(27, 51, 89, 0.12);
  --surface: rgba(255, 255, 255, 0.82);
  --glow: 0 18px 48px rgba(122, 162, 255, 0.16);
  --shadow-soft: 0 24px 60px rgba(52, 73, 102, 0.12);
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(99, 245, 255, 0.08), transparent 24%),
    radial-gradient(circle at 100% 0, rgba(122, 162, 255, 0.08), transparent 22%),
    var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 7, 13, 0.94);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(245, 248, 255, 0.96);
}

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

.brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand:hover {
  opacity: 0.8;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.875rem;
}

.header-nav a {
  color: var(--muted);
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  transition: width 0.3s ease;
  border-radius: 1px;
}

.header-nav a:hover {
  color: var(--text);
  opacity: 1;
}

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

.theme-toggle {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--accent);
  transform: rotate(20deg);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
  box-shadow: var(--glow);
}

/* Hero */
.hero {
  position: relative;
  padding: 74px 0 68px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(122, 162, 255, 0.06), transparent 58%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 44px;
}

.hero-title,
.hero-copy {
  min-width: 0;
}

.hero-title {
  width: 100%;
}

.hero-copy {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  text-align: left;
}

.hero-eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-headline {
  position: relative;
  display: inline-block;
  font-size: clamp(4.4rem, 13vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-bottom: 6px;
  background: linear-gradient(120deg, var(--accent), var(--accent4), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline::after {
  content: "Linzec";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent), var(--accent4), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.28;
  filter: blur(14px);
  transform: translateY(6px) scale(1.01);
}

.hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 420px;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.hero-pills span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 8px;
}

[data-theme="light"] .section-heading {
  color: #2a5bd7;
}

[data-theme="light"] .header-nav a,
[data-theme="light"] .lang-toggle,
[data-theme="light"] .theme-toggle {
  color: #31435f;
}

[data-theme="light"] .header-nav a:hover,
[data-theme="light"] .lang-toggle:hover,
[data-theme="light"] .theme-toggle:hover {
  color: #12305b;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

/* Product cards */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  transition: all 0.3s ease;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-card:hover {
  border-color: rgba(99, 245, 255, 0.42);
  box-shadow: var(--glow);
  transform: translateY(-4px);
  opacity: 1;
}

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

.product-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-platforms {
  display: inline-flex;
  gap: 6px;
}

.platform-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(99, 245, 255, 0.12);
  border: 1px solid rgba(99, 245, 255, 0.24);
  color: var(--accent);
  letter-spacing: 0.05em;
}

.product-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.product-highlights {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.product-highlights li {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 2;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-link:hover {
  border-color: rgba(99, 245, 255, 0.4);
  background: rgba(99, 245, 255, 0.08);
  color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.product-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Carousel / Testimonials */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 2;
}

.carousel-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.carousel-nav-btn:hover {
  transform: scale(1.06);
  border-color: rgba(99, 245, 255, 0.4);
  background: rgba(14, 18, 31, 0.92);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  transition: border-color 0.3s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.carousel-slide:hover {
  border-color: rgba(255, 122, 89, 0.4);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: normal;
}

.testimonial-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 245, 255, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-text-metric {
  font-style: normal;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.testimonial-text-metric::before,
.testimonial-text-metric::after {
  content: none;
}

.testimonial-author {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.testimonial-source {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 122, 89, 0.12);
  color: var(--accent3);
  font-weight: 600;
}

a.testimonial-source:hover {
  color: var(--accent3);
  opacity: 1;
  background: rgba(255, 122, 89, 0.2);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(99, 245, 255, 0.34);
}

.carousel-dot:hover {
  background: var(--accent2);
  transform: scale(1.2);
}

/* About */
.about-text {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 580px;
  line-height: 1.8;
}

/* Contact */
.contact-text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.contact-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 1;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent2);
  opacity: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-title,
  .hero-copy {
    text-align: center;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-headline {
    font-size: clamp(3.2rem, 22vw, 4.8rem);
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-pills {
    justify-content: center;
  }

  .section {
    padding: 44px 0;
  }

  .header-nav {
    gap: 12px;
  }

  .product-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .carousel-slide {
    padding: 20px;
  }

  .carousel-nav {
    padding: 0 4px;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
