/* === Header / Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

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

/* Mobile menu button */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  transition: var(--transition);
}

/* Mobile menu */
.header__nav.open {
  display: flex;
}

@media (max-width: 768px) {
  .header__menu-btn { display: flex; }
  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .header__nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .header__nav a:last-child { border-bottom: none; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(10,36,99,0.8) 100%), url('../images/hero/hero.webp') center/cover no-repeat;
  color: var(--color-text-light);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: #94A3B8;
  margin-bottom: 32px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.hero__cta:hover {
  background: #1D4ED8;
  color: var(--color-white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }
}

/* === Card === */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: 20px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-dark);
}

.card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Dark card variant */
.card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.card--dark .card__title { color: var(--color-white); }
.card--dark .card__text { color: #94A3B8; }

/* === Feature Card (icon + text) === */
.feature-card {
  text-align: center;
  padding: 32px 24px;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-cyan));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.section--dark .feature-card__text {
  color: #94A3B8;
}

/* === Product Preview Card === */
.product-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.product-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card__body {
  padding: 24px;
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-dark);
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.product-card:hover .product-card__link {
  color: var(--color-accent-cyan);
}

/* === Product Detail Page === */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
  color: var(--color-text-light);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: #94A3B8;
  font-size: 1.1rem;
  max-width: 600px;
}

@media (max-width: 768px) {
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 1.75rem; }
}

/* === Image Gallery === */
.gallery {
  display: grid;
  gap: 16px;
}

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

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .gallery--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery--2 { grid-template-columns: 1fr; }
}

/* === Feature List === */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-list__icon::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.feature-list__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* === Footer === */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__text {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 8px;
}

.footer__links a {
  display: block;
  color: #94A3B8;
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer__links a:hover {
  color: var(--color-accent-cyan);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
}

.footer__bottom a {
  color: #64748B;
  margin: 0 8px;
}

.footer__bottom a:hover {
  color: var(--color-accent-cyan);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--color-border);
}

/* === Content Section (for detail pages) === */
.content-section {
  padding: 60px 0;
}

.content-section h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.content-section p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Two-column layout for content + image */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-row--reverse {
  direction: rtl;
}

.content-row--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .content-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .content-row--reverse {
    direction: ltr;
  }
}

/* === Scenario Cards (for application scenarios) === */
.scenario-card {
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scenario-card__number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-cyan));
  color: var(--color-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.scenario-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.scenario-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* === Tech Track Card === */
.tech-card {
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.tech-card:hover {
  border-color: var(--color-accent-cyan);
}

.tech-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.tech-card__text {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 0;
}
