/* ==========================================================================
   RTS POWER SYSTEMS — Design System v2.0
   Dark Industrial Tech Theme
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2b3d;
  --border: #243047;
  --border-glow: rgba(0, 180, 216, 0.4);
  --accent: #00b4d8;
  --accent-light: #00e5ff;
  --accent-dark: #0088a3;
  --text-primary: #e8ecf1;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #00b4d8, #00e5ff);
  --overlay: rgba(10, 15, 26, 0.7);
  --glass-bg: rgba(10, 15, 26, 0.85);
  --glass-border: rgba(0, 180, 216, 0.12);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 10000;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection {
  background: rgba(0, 180, 216, 0.3);
  color: var(--white);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.navbar--scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar__logo:hover {
  opacity: 0.85;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
}

.navbar__link.active {
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
  padding: 0.25rem;
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.55);
}

.language-switch__link.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.language-switch__link.navbar__link:hover {
  background: rgba(0, 180, 216, 0.08);
  color: var(--white);
}

.language-switch__link--active.navbar__link,
.language-switch__link--active.navbar__link:hover {
  background: rgba(0, 180, 216, 0.14);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.16);
}

.language-switch__flag {
  display: none;
}

.language-switch__divider {
  color: var(--text-muted);
  font-size: 0.8rem;
  user-select: none;
}

.navbar__link--cta {
  background: var(--gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
  margin-left: 0.5rem;
}

.navbar__link--cta:hover {
  opacity: 0.9;
  color: var(--bg-primary) !important;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero--short {
  min-height: 60vh;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 2rem;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.section__header {
  margin-bottom: 3rem;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.08);
  transform: translateY(-4px);
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: 1.75rem;
}

.card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card__title {
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.card__link:hover {
  gap: 0.75rem;
}

/* Card Featured */
.card--featured .card__body {
  padding: 2rem;
}

/* Card list items */
.card__list {
  margin-top: 1rem;
}

.card__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card__list-item::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- Industry Detail Cards ---------- */
.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}

.industry-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.08);
}

.industry-card__title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
}

.industry-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.industry-card__subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.industry-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.industry-card__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.industry-card__list-item::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
}

.industry-card__approach {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.step:hover {
  border-color: var(--border-glow);
}

.step__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
}

.step__content {
  flex: 1;
}

.step__title {
  margin-bottom: 0.5rem;
}

.step__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient);
  color: var(--bg-primary);
  border-color: transparent;
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
  color: var(--bg-primary);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 2rem;
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 180, 216, 0.2);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section__title {
  margin-bottom: 1rem;
}

.cta-section__text {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Contact Layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-sidebar__title {
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info__item {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-info__item strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info__item a {
  color: var(--text-secondary);
}

.contact-info__item a:hover {
  color: var(--accent);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

/* ---------- Form ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form__input,
.form__textarea {
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__btn {
  align-self: flex-start;
}

.form__status {
  display: none;
  margin-top: -0.25rem;
  margin-bottom: -0.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.form__status.is-visible {
  display: block;
}

.form__status--success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.form__status--error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.form__btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer__brand .navbar__logo img {
  height: 72px;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__contact-item strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Utilities ---------- */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .navbar__menu.active {
    transform: translateX(0);
  }

  .navbar__menu .navbar__link {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }

  .navbar__menu .language-switch {
    margin-left: 0;
    margin-top: 0.75rem;
    padding: 0.35rem;
    background: rgba(17, 24, 39, 0.9);
  }

  .navbar__menu .language-switch__link.navbar__link {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  .navbar__menu .navbar__link--cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .navbar__toggle {
    z-index: 1001;
  }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .hero { min-height: 90vh; }
  .hero--short { min-height: 50vh; }

  .section { padding: 4rem 0; }

  .footer__inner { grid-template-columns: 1fr; }

  .footer__bottom .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .steps { gap: 1rem; }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .page-home .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 7.5rem 0 4rem;
    background-position: 62% center;
  }

  .page-home .hero__content {
    width: 100%;
  }

  .page-home .hero__title {
    max-width: 9ch;
    margin-bottom: 1.25rem;
  }

  .page-home .hero__subtitle {
    max-width: 32rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .page-home .hero__tags {
    margin-bottom: 2rem;
  }

  .page-home .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero { min-height: 80vh; }
  h1 { font-size: 1.75rem; }
  .form__btn { width: 100%; justify-content: center; }

  .page-home .container {
    padding: 0 1rem;
  }

  .page-home .hero {
    padding: 7rem 0 3rem;
    background-position: 68% center;
  }

  .page-home .hero__tag {
    max-width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
  }

  .page-home .hero__title {
    max-width: none;
    font-size: clamp(1.25rem, 10vw, 2rem);
    line-height: 1.12;
  }

  .page-home .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .page-home .hero__tags {
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .page-home .badge {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .page-home .hero__actions {
    gap: 0.85rem;
  }

  .page-home .btn {
    min-height: 56px;
    padding: 0.9rem 1.1rem;
    font-size: 0.82rem;
  }
}
