/* root & Globals */
:root {
  --hdr: 96px;
  --ftr: 64px;
  --anchor-offset: 24px;
  --bg: #0b0b0f;
  --panel: #14141a;
  --muted: #9aa0a6;
  --fg: #e8e8e8;
  --accent: #ff8a00;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial;
}

body {
  padding-bottom: calc(var(--ftr) + 28px);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 16px);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 15, .75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1f1f26;
  z-index: 10;
}

.hdr--stack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 77px;
  height: 77px;
  border-radius: 50%;
}

.title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: normal;
}

.nav a {
  color: #b7bdc7;
  margin-left: 22px;
  text-decoration: none;
}

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

.lang-switcher a {
  color: orange;
  text-decoration: none;
  transition: color 0.2s;
  margin: 0 0.5em;
}

.lang-switcher a:hover {
  color: silver;
}

/* Hero Section */
.hero {
  display: grid;
  place-items: center;
  min-height: 86vh;
}

.hero-card {
  text-align: center;
  background: linear-gradient(180deg, #14141a, #101017);
  border: 1px solid #23232b;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.hero-intro {
  max-width: 900px;
  margin: 0 auto 24px;
  color: #ddd;
}

.hero-intro p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hero-intro p.lead {
  font-size: 18px;
  margin-bottom: 14px;
  color: orange;
}

.hero-eyebrow {
  opacity: 1.75;
  letter-spacing: 0.08em;
}

.hero-subline {
  font-size: 1.25rem;
  color: red;
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Logo Video Container */
.logo-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
}

.logo-container video, .logo-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #2b2b33;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 1s ease-in-out;
}

.fade-in-video {
  animation: fadeInLogo 1.5s ease-out forwards;
}

/* Components */
.kicker {
  color: var(--muted);
  letter-spacing: .12em;
  font-size: 13px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin: .4em 0;
  color: var(--accent);
}

.cta {
  display: inline-block;
  margin-top: 18px;
  background: linear-gradient(180deg, #ff9b2a 0%, #ff7a00 100%);
  color: #111;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.32), 0 22px 40px rgba(0, 0, 0, 0.45);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  text-align: center;
  position: relative;
}

.cta::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  mix-blend-mode: overlay;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.30), 0 30px 50px rgba(0, 0, 0, 0.5);
}

.cta:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.32), 0 8px 18px rgba(0, 0, 0, 0.35) inset;
}

.cta:focus {
  outline: 3px solid rgba(255, 138, 0, 0.18);
  outline-offset: 3px;
}

.cta--submit {
  display: block;
  width: 50%;
  margin: 18px auto 0;
  font-size: clamp(16px, 2vw, 18px);
  padding: 14px 22px;
  box-sizing: border-box;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid #22222a;
  border-radius: 16px;
  padding: 18px;
}

.card h3 {
  margin: .2em 0 .4em;
  color: var(--accent);
  font-weight: normal;
}

.muted { color: var(--muted); }
.section { padding: 64px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.trust-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin: 24px 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #0f0f12, #0b0b0f);
  border: 1px solid #222;
  color: var(--muted);
  font-size: 14px;
}

.step-title { color: white; }

/* Forms */
form input, form textarea, form select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2a2a33;
  background: #14141a;
  color: #e8e8e8;
  box-sizing: border-box;
}

form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.checkbox-line input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 4px 8px 0 0;
}

.checkbox-line span {
  flex: 1 1 auto;
  text-align: left;
  margin: 0;
  color: var(--muted);
}

section[id], h2[id] {
  scroll-margin-top: calc(var(--hdr) + var(--anchor-offset));
}

h2[id] { margin-top: 6px; }

/* UI Elements */
.to-top {
  position: fixed;
  right: 22px;
  bottom: calc(var(--ftr) + 22px);
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid #2b2b34;
  color: #111;
  background: radial-gradient(circle at 30% 30%, #e5e5e5, #bcbcbc 60%, #9e9e9e);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 3px rgba(255, 138, 0, .18) inset;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
  opacity: 0;
  pointer-events: none;
}

.to-top.show { opacity: 1; pointer-events: auto; }
.to-top::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ff8a00 inset;
  opacity: .6;
}

.automation {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 8px auto;
}

/* Loader */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--accent);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0) } 100% { transform: rotate(360deg) } }

/* Footer */
footer.ftr {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ftr);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 15, .75);
  backdrop-filter: blur(6px);
  border-top: 1px solid #1f1f26;
  z-index: 20;
  color: #8c8c95;
}

footer.ftr .wrap { padding-top: 0; padding-bottom: 0 }
footer a { color: var(--accent); text-decoration: none }
footer a:hover { color: #fff }

/* Chat Widget */
#chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  font-family: sans-serif;
  resize: both;
  min-width: 300px;
  min-height: 400px;
  max-width: 90vw;
  max-height: 90vh;
}

#chat-widget-header {
  background: #1a1a1a;
  color: #ff9d00;
  padding: 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  border-bottom: 1px solid #333;
}

#chat-widget-header button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

#chat-widget-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #121212;
  color: #e0e0e0;
}

#chat-widget-body p {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  word-wrap: break-word;
  line-height: 1.4;
}

#chat-widget-footer {
  padding: 15px;
  border-top: 1px solid #333;
  display: flex;
  gap: 10px;
  background: #1a1a1a;
}

#chat-widget-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: white;
  border-radius: 8px;
  outline: none;
}

#chat-widget-input::placeholder { color: #888; }

#chat-widget-send {
  background: linear-gradient(135deg, #ff9d00, #e68a00);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}

#chat-widget-send:hover { opacity: 0.9; }

#chat-resize-handle {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ff9d00 50%, transparent 50%);
  position: absolute;
  top: 0;
  left: 0;
  cursor: nwse-resize;
  z-index: 1001;
  border-top-left-radius: 12px;
}

#chat-widget-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff9d00, #e68a00);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 157, 0, 0.3);
}

/* Media Queries */
@media (max-width: 640px) {
  .nav { display: none; }
  form input[type="text"], form input[type="email"], form input[type="tel"], form textarea { width: 100% !important; }
  .checkbox-line input[type="checkbox"] { width: 20px; height: 20px; margin: 6px 10px 0 0; }
  .checkbox-line span { font-size: 13px; }
  .cta, .cta--submit { width: 100% !important; }
  .card { padding-bottom: 16px; }
}
