:root {
  --bg: #070b16;
  --bg-soft: #0c1426;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: #eef6ff;
  --muted: #a8b7d4;
  --soft: #d8e5ff;
  --primary: #46e8ff;
  --primary2: #6d78ff;
  --green: #41f6aa;
  --yellow: #ffcf5a;
  --red: #ff6b8b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(70, 232, 255, .18), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(109, 120, 255, .2), transparent 32%),
    linear-gradient(180deg, #070b16 0%, #0a1020 52%, #070b16 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 75%);
  pointer-events: none;
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, .72);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  display: grid;
  place-items: center;
  color: #06101d;
  box-shadow: 0 14px 34px rgba(70, 232, 255, .25);
}
.logo span small { display: block; color: var(--muted); font-weight: 600; letter-spacing: .02em; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  transition: .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.08); }

.btn, button.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #06101d;
  font-weight: 850;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 18px 46px rgba(70, 232, 255, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 58px rgba(70, 232, 255, .3); filter: saturate(1.15); }
.btn.secondary { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ff6b8b, #ff9d6c); }
.btn.small { min-height: 38px; padding: 0 13px; font-size: 13px; }

.hero { padding: 84px 0 54px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 44px; align-items: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--soft);
  font-weight: 750;
  font-size: 14px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 8px rgba(65,246,170,.12); }
h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: .94;
  letter-spacing: -.07em;
  margin: 18px 0 18px;
}
.gradient { background: linear-gradient(135deg, #fff, #83f3ff 48%, #b5baff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.62; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.trust-pill {
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  color: var(--soft);
  font-weight: 750;
  font-size: 14px;
}

.device-stage {
  min-height: 500px;
  position: relative;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device-stage::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 180deg, transparent, rgba(70,232,255,.35), transparent, rgba(109,120,255,.32), transparent); animation: rotate 12s linear infinite; }
.device-stage::after { content: ''; position: absolute; inset: 1px; border-radius: 35px; background: rgba(8, 13, 26, .88); }
@keyframes rotate { to { transform: rotate(360deg); } }
.phone-card, .repair-card-floating, .chip-card { position: absolute; z-index: 1; }
.phone-card {
  width: 250px; height: 392px; border-radius: 38px; top: 52px; left: 50%; transform: translateX(-50%) rotate(-5deg);
  background: linear-gradient(155deg, #111c35, #070b16);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  padding: 18px;
  animation: float 5s ease-in-out infinite;
}
.phone-notch { width: 86px; height: 18px; border-radius: 0 0 16px 16px; background: #050813; margin: -18px auto 18px; }
.phone-screen { height: 100%; border-radius: 26px; background: radial-gradient(circle at 30% 20%, rgba(70,232,255,.32), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.025)); padding: 18px; }
.screen-line { height: 12px; border-radius: 999px; background: rgba(255,255,255,.25); margin: 10px 0; }
.screen-line.short { width: 58%; }
.screen-button { margin-top: 28px; height: 44px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.repair-card-floating {
  left: 28px; bottom: 42px; width: 235px; padding: 18px; border-radius: 24px;
  background: rgba(255,255,255,.09); border: 1px solid var(--border); backdrop-filter: blur(14px);
  animation: float2 6s ease-in-out infinite;
}
.chip-card {
  right: 28px; top: 58px; width: 180px; padding: 16px; border-radius: 22px;
  background: rgba(70,232,255,.1); border: 1px solid rgba(70,232,255,.2); backdrop-filter: blur(14px);
  animation: float3 6.8s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateX(-50%) translateY(0) rotate(-5deg);} 50%{ transform: translateX(-50%) translateY(-14px) rotate(-2deg);} }
@keyframes float2 { 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes float3 { 50% { transform: translateY(16px) rotate(-2deg); } }

.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; margin: 0; }
.section p.sub { color: var(--muted); max-width: 660px; line-height: 1.65; margin: 10px 0 0; }
.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
  transition: .2s ease;
  backdrop-filter: blur(16px);
}
.card:hover { transform: translateY(-4px); background: var(--card-strong); border-color: rgba(70,232,255,.35); }
.icon {
  width: 52px; height: 52px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(70,232,255,.22), rgba(109,120,255,.18));
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 16px;
  font-size: 24px;
}
.card h3 { margin: 0 0 10px; letter-spacing: -.03em; font-size: 21px; }
.card p, .card li { color: var(--muted); line-height: 1.58; }
.card ul { padding-left: 18px; margin: 10px 0 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 72px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 22px; width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 900; color: #06101d;
  background: linear-gradient(135deg, var(--primary), var(--green));
}

.cta-band {
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(70,232,255,.18), rgba(109,120,255,.14));
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; }

.form-shell { max-width: 980px; margin: 42px auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--soft); font-weight: 780; font-size: 14px; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.075);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  font: inherit;
  transition: .2s ease;
}
select option { color: #101827; }
textarea { min-height: 136px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(70,232,255,.7); box-shadow: 0 0 0 4px rgba(70,232,255,.12); }
.checkbox { flex-direction: row; align-items: flex-start; gap: 12px; color: var(--muted); }
.checkbox input { width: 18px; min-height: 18px; margin-top: 3px; }
.honeypot { position: absolute; left: -10000px; opacity: 0; }
.notice {
  border-radius: 20px;
  border: 1px solid rgba(70,232,255,.22);
  background: rgba(70,232,255,.08);
  padding: 16px;
  color: var(--soft);
  line-height: 1.55;
}
.notice.error { border-color: rgba(255,107,139,.35); background: rgba(255,107,139,.1); }
.notice.success { border-color: rgba(65,246,170,.35); background: rgba(65,246,170,.1); }

.progress-wrap { margin-top: 20px; }
.progress-bar { height: 10px; background: rgba(255,255,255,.09); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--green)); transition: width .4s ease; }
.status-timeline { margin-top: 20px; display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.dot { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.18); margin-top: 4px; }
.timeline-item.active .dot { background: var(--green); box-shadow: 0 0 0 8px rgba(65,246,170,.1); }
.timeline-item strong { color: var(--text); }

.admin-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.sidebar { position: sticky; top: 96px; }
.sidebar .card { padding: 18px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 16px; color: var(--muted); font-weight: 750; cursor: pointer; border: 1px solid transparent; }
.side-link:hover, .side-link.active { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--border); }
.admin-view { display: none; }
.admin-view.active { display: block; }
.table-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 800; }
tr:hover td { background: rgba(255,255,255,.035); }
.badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; color: var(--soft); background: rgba(255,255,255,.07); font-size: 12px; font-weight: 800; }
.kpi { font-size: 32px; line-height: 1; letter-spacing: -.05em; font-weight: 950; }
.detail-panel { display: none; }
.detail-panel.active { display: block; }
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.image-thumb { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: rgba(255,255,255,.06); aspect-ratio: 1/1; display: grid; place-items: center; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }

.footer { padding: 42px 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--soft); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }
.center { text-align: center; }

@media (max-width: 980px) {
  .hero-grid, .admin-layout { grid-template-columns: 1fr; }
  .device-stage { min-height: 420px; }
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 720px) {
  .nav-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; }
  .hero { padding-top: 42px; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .phone-card { width: 210px; height: 332px; }
  .repair-card-floating { left: 14px; width: 205px; }
  .chip-card { right: 14px; width: 160px; }
  .section { padding: 48px 0; }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
}

.success-badge { border-color: rgba(65,246,170,.35); background: rgba(65,246,170,.12); color: #dfffee; }
.danger-badge { border-color: rgba(255,107,139,.35); background: rgba(255,107,139,.13); color: #ffdfe7; }
.code-block {
  white-space: pre-wrap;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.28);
  color: var(--soft);
  padding: 18px;
  line-height: 1.6;
}
.section-head.compact { margin-bottom: 12px; }
.fixdesk-widget-placeholder {
  min-height: 180px;
  border: 1px dashed rgba(70,232,255,.35);
  border-radius: 24px;
  background: rgba(70,232,255,.06);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.fixdesk-frame {
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
}

/* FixDesk Widget Integration */
.fixdesk-direct-card {
  overflow: hidden;
}

.fixdesk-widget-host {
  margin-top: 22px;
  min-height: 720px;
  width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.fixdesk-widget-host iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 22px;
}

/* FixDesk direct widget */
.fixdesk-direct-card {
  overflow: visible;
}

.fixdesk-widget-wrap {
  margin-top: 24px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  min-height: 760px;
}

#fixdeskform {
  width: 100%;
  min-height: 720px;
}

#fixdeskform iframe {
  width: 100% !important;
  min-height: 720px !important;
  border: 0 !important;
  border-radius: 22px;
}

@media (max-width: 720px) {
  .fixdesk-widget-wrap {
    padding: 10px;
    border-radius: 20px;
  }

  #fixdeskform,
  #fixdeskform iframe {
    min-height: 820px !important;
  }
}
