/* ASTERON — LIGENT-style clone, typography reference: Apple */
:root {
  --bg: #080c14;
  --bg-elevated: #0e1420;
  --surface: #141b2b;
  --text: #e8ecf4;
  --text-muted: #8b96a8;
  --accent: #00c7be;
  --accent-dim: rgba(0, 199, 190, 0.15);
  --accent-glow: rgba(0, 199, 190, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  /* Apple-style system font stack: SF Pro on Apple, Segoe UI / Roboto / Helvetica elsewhere */
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-apple);
  --font-body: var(--font-apple);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.logo-wrap:hover { color: var(--text); }
.header-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.25rem 0;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--accent); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .logo-img { height: 28px; }
  .header-tagline { display: none; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 300px; }
  .nav-dropdown-trigger { display: block; padding: 0.75rem 0; }
  .nav a { padding: 0.75rem 0; display: block; }
  .nav-toggle { display: block; }
}

/* Carousel (LIGENT-style hero) */
.carousel {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42%;
  overflow: hidden;
  background: var(--bg-elevated);
}
.carousel-inner {
  position: absolute;
  inset: 0;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel-slide.carousel-slide-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,12,20,0.3) 0%, rgba(8,12,20,0.7) 100%);
}
.carousel-slide-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}
.carousel-caption {
  text-align: center;
}
.carousel-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-dot:hover {
  background: rgba(255,255,255,0.3);
}
.carousel-dot.carousel-dot-active {
  background: var(--accent);
  border-color: var(--accent);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.5);
  border-color: var(--accent);
}
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
@media (max-width: 768px) {
  .carousel { padding-bottom: 56%; }
  .carousel-prev, .carousel-next { width: 40px; height: 40px; font-size: 1.25rem; left: 0.5rem; right: 0.5rem; }
}

/* Hero (legacy, kept for other pages) */
.hero { padding: 0; }
.hero-block {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 6rem 0 4rem;
  transition: background 0.2s;
}
.hero-block:hover { background: rgba(255,255,255,0.02); }
.hero-inner { text-align: center; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent-dim); transform: translateY(-1px); }

/* Solutions grid */
.solutions { padding: 5rem 0; }
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 3rem;
}
.solution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.solution-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.solution-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}
.card-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--surface) 100%);
  position: relative;
}
.card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--accent-dim) 100%);
  opacity: 0.5;
}
.card-visual-1 { background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0a1628 100%); }
.card-visual-2 { background: linear-gradient(135deg, #0c1a1f 0%, #0d2830 50%, #0c1a1f 100%); }
.card-visual-3 { background: linear-gradient(135deg, #1a0d28 0%, #1e1640 50%, #1a0d28 100%); }
.card-visual-4 { background: linear-gradient(135deg, #0d1a0d 0%, #0d2814 50%, #0d1a0d 100%); }
.card-visual-5 { background: linear-gradient(135deg, #1a1408 0%, #28200d 50%, #1a1408 100%); }
.card-visual-6 { background: linear-gradient(135deg, #0d1428 0%, #141f33 50%, #0d1428 100%); }
.card-content { padding: 1.75rem; }
.card-content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.card-content p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1rem; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.solution-card:hover .card-link { text-decoration: underline; }

/* Product Family (solution sub-pages: list by family with image) */
.product-family {
  padding: 3rem 0 4rem;
  background: var(--bg-elevated);
}
.product-family .section-title {
  margin-bottom: 2rem;
}
.product-family-block {
  margin-bottom: 3rem;
}
.product-family-block:last-child {
  margin-bottom: 0;
}
.family-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}
.family-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.family-image {
  text-align: center;
}
.family-image img {
  max-width: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.product-item:last-child {
  border-bottom: none;
}
.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}
.product-spec {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
@media (max-width: 768px) {
  .family-content {
    grid-template-columns: 1fr;
  }
  .family-image img { max-width: 140px; }
}

/* About blurb */
.about-blurb {
  padding: 4rem 0;
  background: var(--bg-elevated);
}
.about-blurb .section-desc { margin-bottom: 1.5rem; }
.about-blurb .btn { margin-top: 0.5rem; }

/* News */
.news { padding: 5rem 0; background: var(--bg-elevated); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.news-card:hover { border-color: var(--accent-dim); }
.news-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--surface) 100%);
}
.news-img-1 { background: linear-gradient(135deg, #0a1628 0%, #0d2847 100%); }
.news-img-2 { background: linear-gradient(135deg, #0c1a1f 0%, #0d2830 100%); }
.news-body { padding: 1.25rem 1.5rem; }
.news-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-card h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: var(--text);
}
.news-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.75rem; line-height: 1.5; }
.news-link { color: var(--accent); font-weight: 500; font-size: 0.9rem; }
.news-card:hover .news-link { text-decoration: underline; }

/* Sustainable / ESG block */
.esg { padding: 5rem 0; }
.esg-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.esg-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
}
.esg-content p { color: var(--text-muted); margin: 0 0 1.5rem; }
.esg-visual {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .esg-inner { grid-template-columns: 1fr; }
  .esg-visual { height: 120px; }
}

/* Next / CTA */
.next-cta { padding: 3rem 0; border-top: 1px solid var(--border); }
.next-cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.next-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.next-link:hover { color: var(--accent); }
.next-contact { text-align: center; }
.next-contact strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 0.75rem 0;
}
.footer-row-2 { border-top: 1px solid var(--border); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-social a:hover { color: var(--accent); }
.footer-logo .logo-img { height: 24px; }
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Scroll up */
.scroll-up {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  z-index: 50;
  transition: color 0.2s, border-color 0.2s;
}
.scroll-up:hover { color: var(--accent); border-color: var(--accent-dim); }

/* Inner pages */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}
.page-hero .hero-title { margin-bottom: 0.5rem; }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.page-content {
  padding: 3rem 0 5rem;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}
.page-content p { margin: 0 0 1rem; color: var(--text-muted); }
.page-content ul { margin: 0 0 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--accent); }

/* Contact */
.contact { padding: 5rem 0; text-align: center; }
.contact-form { text-align: left; max-width: 520px; margin: 0 auto 2rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info { margin-top: 2rem; color: var(--text-muted); font-size: 0.95rem; }
.contact-info a { color: var(--accent); }

.news-article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.news-article:last-child { border-bottom: none; }
.news-article h3 { font-family: var(--font-head); font-size: 1.35rem; margin: 0 0 0.5rem; }
.news-article .date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.news-article p { color: var(--text-muted); }
