/* =========================================================
   FactoryInsight Studio — Landing Page
   Factory theme: dark steel base + safety-amber accent
   ========================================================= */

:root {
  --steel-900: #0F172A;
  --steel-800: #1E293B;
  --steel-700: #334155;
  --steel-500: #64748B;
  --steel-300: #CBD5E1;
  --steel-100: #F1F5F9;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --signal-green: #22C55E;
  --signal-red: #EF4444;
  --white: #FFFFFF;
  --radius-card: 8px;
  --radius-btn: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel-800);
  background: var(--white);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber-500); color: var(--steel-900); }
.btn--primary:hover { background: var(--amber-600); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--steel-500); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-800);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.navbar__wordmark { font-size: 18px; white-space: nowrap; }
.navbar__wordmark strong { font-weight: 800; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.navbar__nav > a {
  color: var(--steel-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.navbar__nav > a:hover { color: var(--white); }
.navbar__nav > a.btn { color: var(--steel-900); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--steel-700);
  border-radius: var(--radius-btn);
  overflow: hidden;
}
.lang-toggle__btn {
  background: transparent;
  border: none;
  color: var(--steel-300);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}
.lang-toggle__btn.is-active { background: var(--amber-500); color: var(--steel-900); }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    var(--steel-900);
  background-size: 40px 40px, 40px 40px, auto;
  color: var(--white);
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
}
.hazard-stripe {
  width: 140px;
  height: 8px;
  margin: 22px 0;
  border-radius: 2px;
  background: repeating-linear-gradient(
    45deg,
    var(--amber-500) 0 12px,
    var(--steel-900) 12px 24px
  );
}
.hero__sub {
  color: var(--steel-300);
  font-size: 19px;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.tv-frame {
  border: 10px solid #060B18;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px var(--steel-700),
    0 24px 80px rgba(245, 158, 11, 0.14),
    0 12px 40px rgba(0, 0, 0, 0.6);
  transform: perspective(1400px) rotateY(-4deg);
  overflow: hidden;
  background: var(--steel-900);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--light { background: var(--steel-100); }
.section--dark {
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    var(--steel-900);
  background-size: 40px 40px, 40px 40px, auto;
  color: var(--white);
}
.section__kicker {
  color: var(--amber-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 46px;
  max-width: 720px;
}
.section__closing {
  margin-top: 44px;
  font-size: 19px;
  font-weight: 600;
  color: var(--steel-800);
  border-left: 4px solid var(--amber-500);
  padding-left: 18px;
  max-width: 640px;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 28px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--steel-500); font-size: 15.5px; }
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--amber-600);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card--feature:hover, .card--why:hover {
  border-color: var(--amber-500);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: stretch;
  gap: 18px;
}
.step {
  flex: 1;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-card);
  padding: 30px;
}
.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--steel-900);
  color: var(--amber-500);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--steel-500); font-size: 15.5px; }
.step__arrow {
  align-self: center;
  color: var(--amber-500);
  font-size: 28px;
  font-weight: 800;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.shot-frame {
  border: 1px solid var(--steel-800);
  border-radius: 10px;
  overflow: hidden;
  background: var(--steel-900);
  position: relative;
}
.shot-frame::before {
  content: "● ● ●";
  display: block;
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--steel-500);
  background: var(--steel-800);
  padding: 7px 12px;
}
.gallery__item figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--steel-800);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact__info h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 18px;
}
.contact__info > p { color: var(--steel-300); margin-bottom: 34px; max-width: 440px; }
.contact__details { list-style: none; display: grid; gap: 22px; }
.contact__details li { display: grid; gap: 2px; color: var(--steel-300); font-size: 15.5px; }
.contact__details a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact__details a:hover { color: var(--amber-500); }
.contact__label {
  color: var(--amber-500);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.contact__form {
  background: var(--steel-800);
  border: 1px solid var(--steel-700);
  border-radius: 12px;
  padding: 34px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; display: grid; gap: 7px; }
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel-300);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--steel-900);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius-btn);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--steel-500); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--amber-500); outline: none; }
.form-consent {
  font-size: 13px;
  color: var(--steel-500);
  margin-bottom: 20px;
}
.form-success {
  margin-top: 18px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--signal-green);
  color: var(--signal-green);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--steel-900);
  color: var(--steel-300);
  border-top: 1px solid var(--steel-800);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 24px;
}
.footer__brand p { margin-top: 16px; font-size: 15px; max-width: 300px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer__col a {
  color: var(--steel-300);
  text-decoration: none;
  font-size: 15px;
}
.footer__col a:hover { color: var(--amber-500); }
.footer__bar {
  border-top: 1px solid var(--steel-800);
  padding: 20px 0;
  font-size: 14px;
  color: var(--steel-500);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .tv-frame { transform: none; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .navbar__burger { display: flex; }
  .navbar__nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--steel-900);
    border-bottom: 1px solid var(--steel-800);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .navbar__nav.is-open { display: flex; }
}

@media (max-width: 768px) {
  .cards--3, .gallery { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 40px; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 70px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cards--4 { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
}
