/* Lights Out: Night Atlas — Nocturnal Observatory & Celestial Logic Theme */
:root {
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --accent-gold: #d4a34b;
  --accent-gold-light: #f5c97a;
  --accent-gold-dark: #8c6418;
  --accent-gold-glow: rgba(212, 163, 75, 0.28);
  --accent-navy: #0e1e32;
  --accent-navy-deep: #08101a;
  --bg-night: #faf9f5;
  --bg-card: #ffffff;
  --cx-line: rgba(212, 163, 75, 0.22);
}

[hidden] { display: none !important; }
html[lang="tr"] [data-language]:not([data-language="tr"]) { display: none !important; }
html:not([lang="tr"]) [data-language="tr"] { display: none !important; }

/* Sticky Header */
.lo-header {
  border-bottom: 1px solid var(--cx-line);
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.header-inner .cx-brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-heading);
  text-decoration: none;
}

.header-inner .cx-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--accent-gold-glow);
}

.all-products {
  font-weight: 700;
  color: var(--accent-gold-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.all-products:hover {
  color: var(--accent-gold);
}

/* Project Subnav */
.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cx-line);
}

.project-nav a {
  color: #475569;
  text-decoration: none;
  font-size: .88rem;
  padding: 6px 0;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-nav a:hover {
  color: var(--accent-gold-dark);
}

.project-nav a[aria-current] {
  color: var(--accent-gold-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 700;
}

/* Hero Section */
.lo-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
  align-items: center;
}

.lo-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0b1523;
  margin: 14px 0 18px;
  font-family: Outfit, 'DM Sans', sans-serif;
}

.lo-hero h1 span {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #d4a34b 0%, #f5c97a 50%, #997736 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lo-hero .lead {
  font-size: 1.18rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.lo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 163, 75, 0.12);
  border: 1px solid rgba(212, 163, 75, 0.35);
  color: var(--accent-gold-dark);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 18px 0 24px;
}

.lo-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.primary {
  background: linear-gradient(135deg, #101c2c 0%, #08101a 100%);
  color: #f5c97a;
  border: 1px solid rgba(245, 201, 122, 0.3);
  box-shadow: 0 8px 24px rgba(8, 16, 26, 0.2);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 16, 26, 0.3);
  border-color: rgba(245, 201, 122, 0.6);
}

.button.secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid var(--cx-line);
}

.button.secondary:hover {
  background: #f8fafc;
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
}

/* Showcase Hero Card */
.atlas-showcase {
  background: #08101a;
  border: 1px solid rgba(245, 201, 122, 0.25);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(8, 16, 26, 0.25), 0 0 40px rgba(212, 163, 75, 0.1);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.atlas-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 6px 10px;
}

.atlas-top img {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(245, 201, 122, 0.25);
}

.atlas-top span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #f5c97a;
  text-transform: uppercase;
}

.atlas-hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.atlas-showcase figcaption {
  font-size: 0.85rem;
  color: #cbd5e1;
  padding: 12px 8px 6px;
  line-height: 1.5;
}

/* Key Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 64px;
}

.facts div {
  background: #ffffff;
  border: 1px solid var(--cx-line);
  padding: 24px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.facts div:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.facts strong {
  display: block;
  font-size: 2.2rem;
  color: var(--accent-gold-dark);
  font-family: Outfit, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.facts span {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Core Features & Grid */
.section {
  padding: 48px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--cx-line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 14px 30px rgba(212, 163, 75, 0.12);
}

.card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 163, 75, 0.12);
  color: var(--accent-gold-dark);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.28rem;
  color: #0b1523;
  margin-bottom: 12px;
  font-family: Outfit, sans-serif;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Visual Map Showcase */
.map-banner {
  background: linear-gradient(145deg, #08101a 0%, #0d1e30 100%);
  border-radius: 28px;
  border: 1px solid rgba(245, 201, 122, 0.25);
  color: #ffffff;
  padding: 48px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-banner h2 {
  font-size: 2.2rem;
  font-family: Outfit, sans-serif;
  color: #f5c97a;
  margin-bottom: 16px;
}

.map-banner p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.map-banner-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}

/* Standards & Legal Box */
.standards-box {
  background: #ffffff;
  border: 1px solid var(--cx-line);
  border-radius: 24px;
  padding: 40px;
  margin: 48px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.standards-box h3 {
  font-size: 1.45rem;
  color: #0b1523;
  margin-bottom: 14px;
  font-family: Outfit, sans-serif;
}

.standards-box p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}

.legal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--cx-line);
  color: #1e293b;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-chip:hover {
  background: rgba(212, 163, 75, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
}

/* Document & Legal Article Styling */
.document {
  max-width: 820px;
  margin: 40px auto 64px;
  background: #ffffff;
  border: 1px solid var(--cx-line);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.document h1 {
  font-size: 2.4rem;
  color: #0b1523;
  margin: 8px 0 12px;
  font-family: Outfit, sans-serif;
}

.document .updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.notice-banner {
  background: rgba(212, 163, 75, 0.1);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.6;
}

.document section {
  margin-bottom: 36px;
}

.document h2 {
  font-size: 1.45rem;
  color: #0b1523;
  margin-bottom: 12px;
  font-family: Outfit, sans-serif;
  border-bottom: 1px solid rgba(212, 163, 75, 0.15);
  padding-bottom: 6px;
}

.document h3 {
  font-size: 1.15rem;
  color: #1e293b;
  margin: 16px 0 8px;
}

.document p, .document li {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.7;
}

.document ul, .document ol {
  padding-inline-start: 1.4em;
  margin-bottom: 16px;
}

.document li {
  margin-bottom: 8px;
}

/* Footer */
footer.shell {
  border-top: 1px solid var(--cx-line);
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.shell a {
  color: var(--accent-gold-dark);
  text-decoration: none;
  font-weight: 600;
}

footer.shell a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .lo-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .map-banner {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .document {
    padding: 28px 20px;
  }
}

@media (max-width: 600px) {
  .facts {
    grid-template-columns: 1fr;
  }
}
