/* ========================================
   Lux Impetus — Industrial Software
   ======================================== */

:root {
  --color-bg: #f8f8f7;
  --color-surface: #ffffff;
  --color-text: #0B1324;
  --color-text-secondary: #4B5568;
  --color-accent: #B61F2E;
  --color-accent-light: #fdf2f2;
  --color-border: #d4d4d0;
  --color-steel: #6b6b6b;
  --color-gold: #FDE047;
  --color-red: #DC2626;
  --gradient-brand: linear-gradient(90deg, #FDE047, #DC2626);
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --section-pad: 64px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 40px;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  background: transparent;
}

.header.scrolled {
  background: rgba(248, 248, 247, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
  padding: 12px 40px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--color-text);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 20px;
}

[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 20px;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.lang-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

.lang-btn.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-surface);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px 40px;
}

.hero-logo {
  width: 760px;
  max-width: 90%;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 16px;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 20px;
  letter-spacing: 0.01em;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  line-height: 1.9;
}

/* ---- Sections (shared) ---- */
.section {
  padding: var(--section-pad) 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 713px;
  margin-left: auto;
  margin-right: auto;
}

.section-text + .section-text {
  margin-top: 16px;
}

/* ---- Divider ---- */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.divider hr {
  border: none;
  height: 2px;
  background: var(--gradient-brand);
}

/* ---- Highlight block ---- */
.highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 20px;
  line-height: 1.6;
}

/* ---- List items ---- */
.item-list {
  list-style: none;
  margin: 24px auto;
  max-width: 713px;
  text-align: left;
}

.item-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

[dir="rtl"] .item-list li {
  padding-left: 0;
  padding-right: 24px;
}

.item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}

[dir="rtl"] .item-list li::before {
  left: auto;
  right: 0;
}

/* ---- Options (why section) ---- */
.option-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px 28px;
  margin: 16px auto;
  max-width: 713px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  text-align: left;
}

/* ---- Cost grid ---- */
.cost-grid {
  display: inline-block;
  text-align: left;
  margin-top: 20px;
}

.cost-col h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.cost-no-pay {
  margin-top: 28px;
  max-width: 713px;
  margin-left: auto;
  margin-right: auto;
}

.cost-no-pay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cost-no-pay p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ---- Principle block ---- */
.principle {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 36px;
  margin-top: 32px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  border-top: 3px solid;
  border-image: var(--gradient-brand) 1;
}

/* ---- Expertise grid ---- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.expertise-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-body);
  text-align: center;
}

/* ---- Contact ---- */
.contact-section {
  text-align: center;
  padding: var(--section-pad) 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-email {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.7;
}

.contact-details {
  margin-top: 20px;
}

.contact-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.contact-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 3px;
  line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 32px 40px;
  border-top: 2px solid;
  border-image: var(--gradient-brand) 1;
  margin-top: 40px;
}

.footer p,
.footer .footer-meta {
  font-size: 0.8rem;
  color: var(--color-steel);
  margin-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --section-pad: 44px;
  }

  .header {
    padding: 14px 20px;
  }

  .header.scrolled {
    padding: 10px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 99;
  }

  [dir="rtl"] .nav-links {
    transform: translateX(100%);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 16px;
  }

  [dir="rtl"] .lang-switcher {
    margin-right: 0;
  }

  .hero {
    padding: 64px 24px 24px;
  }

  .hero-logo {
    width: 420px;
    max-width: 95%;
    margin-bottom: 16px;
  }

  .section {
    padding: var(--section-pad) 24px;
  }

  .divider {
    padding: 0 24px;
  }

  .cost-grid {
    display: inline-block;
  }

  .principle {
    padding: 32px 24px;
    font-size: 1.05rem;
  }

  .contact-section {
    padding: var(--section-pad) 24px;
  }
}

/* ---- RTL adjustments ---- */

[dir="rtl"] .hero {
  text-align: center;
}

[dir="rtl"] .contact-section {
  text-align: center;
}

[dir="rtl"] .principle {
  text-align: center;
}

[dir="rtl"] .footer {
  text-align: center;
}
