@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ==================== RESET & VARIABLES ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #111;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --text: #111;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-light: rgba(220, 38, 38, 0.06);
  --accent-border: rgba(220, 38, 38, 0.2);
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-dark {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-dark .nav-links a {
  color: rgba(255, 255, 255, 0.6);
}
.nav-dark .nav-links a:hover {
  color: #fff;
}
.nav-dark .lang-toggle {
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-dark .lang-toggle button {
  color: rgba(255, 255, 255, 0.4);
}
.nav-dark .lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}
.nav-dark .nav-mobile-toggle svg {
  stroke: #fff;
}
.nav-dark.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.nav-dark.scrolled .nav-links a {
  color: var(--text-secondary);
}
.nav-dark.scrolled .nav-links a:hover {
  color: var(--text);
}
.nav-dark.scrolled .lang-toggle {
  border-color: var(--border);
}
.nav-dark.scrolled .lang-toggle button {
  color: var(--text-muted);
}
.nav-dark.scrolled .lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}
.nav-dark.scrolled .nav-mobile-toggle svg {
  stroke: var(--text);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 520px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.nav-dropdown-menu .dropdown-col {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-menu .dropdown-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 8px 14px 4px;
}
.nav-dark .nav-dropdown-menu {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-dark .nav-dropdown-menu a {
  color: rgba(255, 255, 255, 0.7) !important;
}
.nav-dark .nav-dropdown-menu .dropdown-label {
  color: rgba(220, 38, 38, 0.9);
}
.nav-dark .nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 8px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-secondary) !important;
  border-radius: 6px;
  transition: all 0.15s;
  font-weight: 500;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-alt) !important;
  color: var(--text) !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo .logo-dark {
  display: block;
}
.nav-logo .logo-white {
  display: none;
}
/* Dark nav: show white logo */
.nav-dark .nav-logo .logo-dark {
  display: none;
}
.nav-dark .nav-logo .logo-white {
  display: block;
}
/* Dark nav scrolled (turns white): show dark logo again */
.nav-dark.scrolled .nav-logo .logo-dark {
  display: block;
}
.nav-dark.scrolled .nav-logo .logo-white {
  display: none;
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo-text span {
  color: var(--accent);
}
.nav-dark .nav-logo-text {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-left: 8px;
}
.lang-toggle button {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}

/* ==================== HERO — FULLSCREEN VIDEO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
  background: var(--bg-dark);
  color: var(--text-white);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -2px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  max-width: 600px;
  word-break: keep-all;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 36px;
  transition: background 0.2s;
}
.hero .btn-primary:hover {
  background: var(--accent-hover);
}

.hero .stat-row {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero .stat {
  flex: 1;
  max-width: 220px;
  text-align: center;
}
.hero .stat-num {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.5px;
}
.hero .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  padding: 160px 48px 80px;
  background: var(--bg-alt);
  color: var(--text);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header-dark {
  background: #0a0a0a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #fff;
  border-bottom: none;
}
.page-header-dark canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-header-dark .page-header-content {
  position: relative;
  z-index: 1;
}
.page-header-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}
.page-header-dark .page-header-label {
  color: var(--accent);
}
.page-header-dark .page-header-title {
  color: #fff;
}
.page-header.page-header-dark .section-label {
  color: var(--accent);
}
.page-header.page-header-dark h1 {
  color: #fff;
}
.page-header.page-header-dark p {
  color: rgba(255, 255, 255, 0.8);
}
.page-header .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  position: relative;
}
.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-top: 12px;
  color: var(--text);
  position: relative;
}
.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 560px;
  word-break: keep-all;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

/* ==================== SECTIONS ==================== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 48px;
}

.partner-logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
  margin-bottom: 12px;
  display: block;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: calc(50vw - var(--max-width) / 2 + 48px);
  padding-right: calc(50vw - var(--max-width) / 2 + 48px);
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -1px;
}

.lineup-category {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Robot category / sub-category layout */
.robot-category {
  margin-bottom: 32px;
}

.robot-category-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.robot-category-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.robot-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}

.robot-item:last-child {
  border-bottom: none;
}

.robot-item:hover {
  background: var(--bg);
  padding-left: 28px;
}

.robot-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  min-width: 260px;
  flex-shrink: 0;
}

.robot-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.robot-item-arrow {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.robot-item:hover .robot-item-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .robot-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .robot-item-name {
    min-width: auto;
  }
  .robot-item-arrow {
    display: none;
  }
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
  max-width: 560px;
  word-break: keep-all;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ==================== CARDS ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.08);
  transform: translateY(-3px);
}

.card .card-num {
  font-size: 48px;
  font-weight: 700;
  color: rgba(220, 38, 38);
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
}

.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  word-break: keep-all;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 16px;
  transition: gap 0.2s;
}
.card:hover .card-link {
  gap: 10px;
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.product-detail.reverse {
  direction: rtl;
}
.product-detail.reverse > * {
  direction: ltr;
}
.product-detail-img {
  background: var(--bg-alt);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-img .placeholder {
  font-size: 14px;
  color: var(--text-muted);
}
.product-detail-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.product-detail-content .tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.product-detail-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
}
.product-detail-content .spec-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-detail-content .spec-item {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-detail-content .spec-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==================== PRODUCT IMAGE CAROUSEL ==================== */
.product-carousel {
  position: relative;
  width: 100%;
  max-height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-carousel .carousel-slide img {
  max-height: 460px;
  object-fit: contain;
}
.product-carousel .carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.product-carousel .carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.product-carousel .carousel-slide img {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #fff;
}
.product-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-carousel .carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.product-carousel .carousel-btn.prev {
  left: 12px;
}
.product-carousel .carousel-btn.next {
  right: 12px;
}
.product-carousel .carousel-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}
.product-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.product-carousel .carousel-dot.active {
  background: var(--accent);
}
.product-carousel[data-count="1"] .carousel-btn,
.product-carousel[data-count="1"] .carousel-dots {
  display: none;
}

/* ==================== SPEC TABLE ==================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 32px;
}
.spec-table caption {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  text-align: left;
  margin-bottom: 12px;
}
.spec-table th,
.spec-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  white-space: nowrap;
}
.spec-table td {
  color: var(--text-secondary);
}
.spec-table thead th {
  background: var(--text);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-table tbody tr:hover {
  background: var(--bg-alt);
}
.spec-table .spec-group th {
  background: rgba(220, 38, 38, 0.06);
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Product feature list */
.product-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.product-features li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 768px) {
  .spec-table {
    font-size: 11px;
  }
  .spec-table th,
  .spec-table td {
    padding: 6px 8px;
  }
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==================== ABOUT BANNER ==================== */
.about-banner {
  width: 100%;
  background: var(--bg-alt);
  padding: 100px 48px;
  text-align: center;
}
.about-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-banner .btn-primary {
  margin-top: 28px;
}

/* ==================== NEWS & MEDIA ==================== */
.news-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 32px auto 0;
}

.news-carousel-inner {
  overflow: hidden;
  padding: 4px 0;
  margin: -4px 0;
}

.news-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.news-carousel-track .news-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: calc((100% - 40px) / 3);
}

@media (max-width: 1024px) {
  .news-carousel-track .news-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .news-carousel-track .news-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .news-prev { left: 4px; }
  .news-next { right: 4px; }
}

.news-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-carousel-btn:hover {
  border-color: var(--accent);
  background: #fff;
}

.news-carousel-btn svg {
  width: 18px;
  height: 18px;
}

.news-prev {
  left: -20px;
}

.news-next {
  right: -20px;
}

.news-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

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

.news-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.news-carousel-dots button.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  min-height: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
}

.news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.news-source {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .news-prev { left: 4px; }
  .news-next { right: 4px; }
}

/* ==================== CTA ==================== */
.cta-section {
  padding: 60px 48px;
  background: #fff;
  text-align: center;
}
.cta-section.cta-section-alt {
  background: var(--bg-alt);
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  margin-top: 28px;
}

/* ==================== TIMELINE ==================== */
.timeline {
  max-width: 700px;
  margin: 56px auto 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  padding-left: 40px;
  padding-bottom: 40px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.timeline-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.6;
}

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
}
.form-success[hidden] {
  display: none;
}
.form-success {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  margin-bottom: 28px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  animation: form-success-in 0.4s ease-out;
}
.form-success-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16A34A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-icon svg {
  width: 18px;
  height: 18px;
}
.form-success-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: #14532D;
  margin: 2px 0 4px;
}
.form-success-text p {
  font-size: 14px;
  color: #166534;
  line-height: 1.5;
  margin: 0;
}
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-item {
  margin-bottom: 28px;
}
.contact-info-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-info-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-map-link {
  display: block;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}
.contact-map {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* ==================== VALUES ==================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.value-card {
  text-align: center;
  padding: 40px 24px;
}
.value-card .value-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.value-card .value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== JOBS ==================== */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
  background: var(--bg-card);
}
.job-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.06);
}
.job-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.job-card .job-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.job-card .job-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 60px 48px 40px;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.65);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .footer-logo-img {
  height: 42px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
}

/* ==================== ANIMATIONS ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-detail.reverse {
    direction: ltr;
  }
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links a,
  .nav-dark .nav-links a,
  .nav-dark.scrolled .nav-links a {
    color: #fff !important;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links > li:last-child a {
    border-bottom: none;
  }
  .nav-dark .nav-links,
  .nav-dark.scrolled .nav-links {
    background: rgba(0, 0, 0, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .nav-mobile-toggle svg {
    stroke: #fff;
  }
  .nav.scrolled .nav-mobile-toggle svg,
  .nav:not(.nav-dark) .nav-mobile-toggle svg {
    stroke: var(--text);
  }
  /* Dropdown parent: show chevron indicator */
  .nav-dropdown > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .nav-dropdown > a::after {
    content: "▸";
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s;
  }
  .nav-dropdown.mobile-open > a::after {
    transform: rotate(90deg);
    color: var(--accent);
  }
  /* Sub-dropdown menu */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.06);
    min-width: unset;
    display: none;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 8px 0;
  }
  .nav-dropdown.mobile-open .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown-menu .dropdown-col {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown-menu .dropdown-label {
    padding: 6px 16px 2px;
    font-size: 11px;
    color: var(--accent) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none !important;
  }
  .nav-dropdown-menu a {
    padding: 8px 16px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: none !important;
  }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:active {
    color: #fff !important;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .hero-tagline {
    font-size: 16px;
  }
  .hero .stat-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hero .stat-num {
    font-size: 32px;
  }

  .page-header {
    padding: 120px 24px 60px;
  }
  .page-header h1 {
    font-size: 32px;
  }

  .section {
    padding: 60px 24px;
  }
  .section-title {
    font-size: 28px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==================== PRODUCT FEATURES LIST ==================== */
.product-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-features li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==================== SPEC TABLE ==================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.spec-table caption {
  font-size: 24px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 24px;
  color: var(--text);
}

.spec-table thead th {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 12px 16px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.spec-table thead th:first-child {
  text-align: left;
  border-radius: 8px 0 0 0;
}

.spec-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.spec-table tbody th,
.spec-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.spec-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.spec-table tbody td {
  text-align: center;
  color: var(--text-secondary);
}

.spec-table tr.spec-group th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-bottom: 2px solid var(--accent-border);
}

.spec-table tbody tr:hover {
  background: var(--bg-alt);
}

@media (max-width: 768px) {
  .spec-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .spec-table thead th,
  .spec-table tbody th,
  .spec-table tbody td {
    padding: 8px 10px;
  }

  .spec-table caption {
    font-size: 20px;
    margin-bottom: 16px;
  }
}
