/* VARIABLES */
:root {
  --bg: #f3f4f6; /* Light Grey Background */
  --surface: #ffffff;
  --text: #1f2937; /* Dark Grey Text */
  --text-muted: #6b7280;
  --accent: #7c3aed; /* Electric Violet */
  --accent-dark: #5b21b6;
  --highlight: #14b8a6; /* Teal */
  --border: #e5e7eb;

  --font-mono: "Space Mono", monospace;
  --font-sans: "Inter", sans-serif;

  --radius: 4px; /* Sharp corners for tech feel */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}
h4 {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 600px;
}
.mono-label,
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

/* LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 700px;
  margin: 0 auto;
}
.center {
  text-align: center;
}
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

/* TOP BAR */
.top-notice {
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* HEADER */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}
.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-sym {
  color: var(--accent);
}
.logo svg {
  width: 24px;
  height: 24px;
}

.nav-main {
  display: flex;
  gap: 24px;
}
.nav-main a {
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-main a:hover {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.loc-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
}

.burger {
  display: none;
  background: none;
}

/* BUTTONS */
.btn-solid {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius);
  display: inline-block;
}
.btn-solid:hover {
  background: var(--accent-dark);
}

.btn-mono {
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-radius: 0;
}
.btn-mono:hover {
  background: #000;
}

.btn-outline {
  border: 1px solid var(--text);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius);
  display: inline-block;
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-link {
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

/* HERO */
.hero {
  background: var(--surface);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  align-items: center;
}

.code-window {
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
}
.cw-header {
  background: #2d2d2d;
  padding: 10px 15px;
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.r {
  background: #ff5f56;
}
.y {
  background: #ffbd2e;
}
.g {
  background: #27c93f;
}
.cw-body {
  padding: 20px;
  color: #d4d4d4;
  line-height: 1.5;
}
.k {
  color: #c586c0;
}
.c {
  color: #4ec9b0;
}
.f {
  color: #dcdcaa;
}
.s {
  color: #ce9178;
}
.n {
  color: #b5cea8;
}

/* TICKER */
.ticker-bar {
  background: var(--accent);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.ticker-content {
  white-space: nowrap;
  animation: tick 30s linear infinite;
}
@keyframes tick {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* SERVICES GRID */
.bg-dots {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.srv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  transition: 0.3s;
  position: relative;
}
.srv-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.icon-box {
  color: var(--accent);
  margin-bottom: 20px;
}
.srv-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 15px;
  display: inline-block;
}

/* QUIZ */
.quiz-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.quiz-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.q-step {
  display: none;
  text-align: center;
}
.q-step.active {
  display: block;
  animation: fade 0.4s;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.q-options button {
  padding: 15px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-mono);
  text-align: left;
  transition: 0.2s;
}
.q-options button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.res-icon {
  color: var(--highlight);
  margin-bottom: 15px;
}

/* ADVANTAGES */
.layout-img-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.adv-list {
  margin: 20px 0;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.adv-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* BLOG / CASES */
.bg-light {
  background: #fafafa;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.case-item {
  border-top: 2px solid var(--text);
  padding-top: 20px;
  transition: 0.3s;
}
.case-item:hover {
  border-color: var(--accent);
}
.ci-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 15px;
  display: inline-block;
}

/* PRICING */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.p-col {
  padding: 40px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  text-align: center;
}
.p-col:last-child {
  border-right: none;
}
.p-col.featured {
  background: #fdfbff;
}
.p-head {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 5px;
}
.p-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.p-tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 4px;
}
.p-col ul {
  margin-bottom: 30px;
  text-align: left;
}
.p-col li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  list-style: disc;
  margin-left: 20px;
}

/* STEPS */
.steps-hor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}
.st-num {
  font-family: var(--font-mono);
  color: var(--border);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

/* FAQ */
.faq-list details {
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 10px;
  padding: 15px;
  transition: 0.3s;
}
.faq-list details[open] {
  border-color: var(--accent);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list p {
  margin-top: 10px;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* FORM */
.form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--text);
  color: #fff;
  padding: 60px;
  border-radius: var(--radius);
}
.fb-info h2 {
  color: #fff;
}
.fb-info p {
  color: #ccc;
}
.contacts-block {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.contacts-block p {
  color: #fff;
  margin-bottom: 5px;
}

.fb-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.inp-grp label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 5px;
  color: #aaa;
}
.inp-grp input,
.inp-grp select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-sans);
}
.inp-grp input:focus {
  outline: none;
  border-color: var(--accent);
}
.chk-grp {
  font-size: 0.8rem;
  color: #aaa;
}
.chk-grp a {
  text-decoration: underline;
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: 0.2s;
}
.submit-btn:hover {
  background: #fff;
  color: #000;
}

/* FOOTER */
.footer {
  padding: 80px 0 30px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.f-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.footer h6 {
  margin-bottom: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}
.footer a,
.footer p {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.footer a:hover {
  color: var(--accent);
}
.footer-btm {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* MOBILE NAV */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--surface);
  z-index: 2000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: 0.3s;
}
.mobile-overlay.active {
  transform: translateX(0);
}
.mo-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  font-family: var(--font-mono);
}
#closeMenu {
  background: none;
  font-weight: 700;
}
.mo-links a {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

/* COOKIE */
.cookie-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 15px 25px;
  display: none;
  align-items: center;
  gap: 15px;
  z-index: 5000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
#acceptCookie {
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .nav-main,
  .loc-code,
  .header-right .btn-mono {
    display: none;
  }
  .burger {
    display: block;
  }
  h1 {
    font-size: 2.8rem;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-vis {
    order: -1;
    margin-bottom: 40px;
  }
  .grid-3,
  .cases-grid,
  .pricing-table,
  .layout-img-text,
  .form-box,
  .steps-hor,
  .footer-layout {
    grid-template-columns: 1fr;
  }
  .pricing-table {
    border: none;
    gap: 20px;
  }
  .p-col {
    border: 1px solid var(--border);
  }
  .form-box {
    padding: 30px;
  }
  .inp-row {
    grid-template-columns: 1fr;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
