:root {
  --bg-dark: #0a0c10;
  --bg-card: #161b22;
  --bg-soft: #11141a;
  --bg-accent: #1c2128;
  --accent: #3fb1ff;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --border: #30363d;
  --container: 1200px;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.7;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}
.section {
  padding: 140px 0;
  border-bottom: 1px solid var(--border);
}
.bg-soft {
  background-color: var(--bg-soft);
}
.center {
  text-align: center;
}
.max-800 {
  max-width: 800px;
  margin: 0 auto;
}
.max-600 {
  max-width: 600px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -2px;
}
h2 {
  font-size: 2.8rem;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.8rem;
}
p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.highlight {
  color: var(--accent);
}
.system-label,
.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
}

/* HEADER */
.header {
  height: 85px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.3rem;
}
.logo img {
  width: 50px;
  height: 50px;
}
.logo-icon {
  color: var(--accent);
}
.desktop-nav {
  display: flex;
  gap: 40px;
}
.desktop-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.desktop-nav a:hover {
  color: var(--accent);
}
.burger-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}
.line {
  width: 32px;
  height: 2px;
  background: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 99;
  transform: translateY(-100%);
  transition: 0.6s cubic-bezier(0.8, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu.active {
  transform: translateY(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  margin-top: 60px;
}
.mobile-nav a {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* HERO */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 180px 0 100px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

/* PHILOSOPHY */
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 80px;
  margin-top: 40px;
}
.p-feat-item {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}
.p-feat-item i {
  color: var(--accent);
  margin-bottom: 15px;
}

/* STEPS */
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 60px 0;
}
.step-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-accent);
}
.step-icon {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 15px;
}

/* SPLIT CARD */
.split-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-card-layout.reverse {
  direction: rtl;
}
.split-card-layout.reverse > * {
  direction: ltr;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  color: var(--text-main);
}
.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* SECURITY */
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.sec-card {
  background: #1c2128;
  padding: 50px;
  border: 1px solid var(--accent);
  border-radius: 12px;
}

/* TABLE */
.table-wrapper {
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.tr.thead {
  background: var(--bg-accent);
  font-weight: 800;
  font-size: 0.8rem;
}
.td {
  padding: 25px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}
.td.highlight {
  color: var(--accent);
  font-weight: 700;
  background: rgba(63, 177, 255, 0.05);
}

/* STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.stack-box {
  text-align: center;
  background: var(--bg-card);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* FAQ (FIXED CSS) */
.accordion-container {
  width: 100%;
  margin-top: 40px;
}
.acc-item {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  width: 100%;
  overflow: hidden;
}
.acc-head {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.acc-head span {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.acc-icon {
  transition: transform 0.4s ease;
  color: var(--accent);
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-inner {
  padding: 0 25px 25px 25px;
}

/* FORM */
.form-wrapper {
  background: var(--bg-card);
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.vertical-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
}
.input-group input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 18px;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
}
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 10px;
}
.checkbox-container a {
  color: var(--accent);
  text-decoration: underline;
}
.checkbox-container input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}
.checkbox-container label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FOOTER */
.footer {
  padding: 120px 0 50px;
  background: #05070a;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  font-weight: 700;
  border-radius: 4px;
  transition: 0.4s;
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--outline {
  border-color: var(--border);
  color: #fff;
}
.btn--submit {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
}
.btn--xs {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* COOKIE */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  padding: 30px;
  border-radius: 12px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1024px) {
  .hero-grid,
  .philosophy-layout,
  .method-steps,
  .split-card-layout,
  .security-grid,
  .footer-grid,
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .tr {
    grid-template-columns: 1fr;
  }
  .split-card-layout.reverse {
    direction: ltr;
  }
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    padding: 140px 0 80px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .form-header h2 {
    font-size: 1.8rem;
  }
  .sc-text h2 {
    font-size: 2rem;
  }
  .center h2 {
    font-size: 2rem;
  }
  .section-label h2 {
    font-size: 0.75rem;
  }
  .burger-btn {
    display: flex;
  }
  .form-wrapper {
    padding: 30px;
  }
  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
}

.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;
  }
}
