/* Лендинг и кабинет Rakursa. Палитра — как у редактора (App.vue): тёмная, зелёный акцент. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 system-ui, sans-serif;
  color: #e6e6ea;
  background: #17171b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #8fd8ab; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Шапка --- */
.top {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 24px;
  background: #202027; border-bottom: 1px solid #2c2c34;
  position: sticky; top: 0; z-index: 10;
}
.logo { font-size: 18px; font-weight: 700; letter-spacing: .04em; color: #e6e6ea; }
.logo b { color: #8fd8ab; }
.top nav { display: flex; gap: 16px; margin-left: 8px; }
.top .spacer { flex: 1; }
.lang {
  background: #16161b; border: 1px solid #33333d; color: #d6d6de;
  border-radius: 5px; font-size: 13px; padding: 4px 8px; cursor: pointer;
}

/* --- Кнопки --- */
.btn {
  display: inline-block; cursor: pointer; border-radius: 6px; font-size: 14px;
  padding: 8px 16px; border: 1px solid #33333d; background: #24242c; color: #d6d6de;
}
.btn:hover { background: #2f2f39; border-color: #4a4a57; text-decoration: none; }
.btn.primary { background: #2b4d3a; border-color: #3a6b4f; color: #bfe8cf; }
.btn.primary:hover { background: #345c46; }
.btn.big { font-size: 16px; padding: 12px 24px; }

/* --- Герой --- */
.hero {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap; padding: 72px 24px 56px; text-align: left;
}
.hero .text { max-width: 520px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 18px; color: #a8a8b3; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Декоративный CSS-куб: намёк на 3D без единого ассета. */
.scene { width: 180px; height: 180px; perspective: 700px; }
.cube {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  animation: spin 14s linear infinite;
}
.cube i {
  position: absolute; inset: 0; border: 1px solid #3a6b4f; border-radius: 6px;
  background: rgba(43, 77, 58, .28);
}
.cube i:nth-child(1) { transform: rotateY(0deg)   translateZ(90px); }
.cube i:nth-child(2) { transform: rotateY(90deg)  translateZ(90px); }
.cube i:nth-child(3) { transform: rotateY(180deg) translateZ(90px); }
.cube i:nth-child(4) { transform: rotateY(270deg) translateZ(90px); }
.cube i:nth-child(5) { transform: rotateX(90deg)  translateZ(90px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(90px); }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: rotateX(-18deg) rotateY(30deg); } }

/* --- Возможности --- */
.features { max-width: 960px; margin: 0 auto; padding: 24px 24px 64px; }
.features h2 { font-size: 26px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: #1c1c22; border: 1px solid #2c2c34; border-radius: 8px; padding: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; color: #bfe8cf; }
.card p { margin: 0; font-size: 14px; color: #a8a8b3; }

/* --- Кабинет --- */
.cabinet { max-width: 420px; margin: 48px auto; padding: 0 24px; flex: 1; width: 100%; }
.panel { background: #1c1c22; border: 1px solid #2c2c34; border-radius: 8px; padding: 24px; }
.panel h1 { font-size: 22px; margin: 0 0 18px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button {
  flex: 1; padding: 8px; cursor: pointer; border-radius: 6px; font-size: 14px;
  background: #24242c; border: 1px solid #33333d; color: #d6d6de;
}
.tabs button.active { background: #2b4d3a; border-color: #3a6b4f; color: #bfe8cf; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #a8a8b3; margin-bottom: 4px; }
.field input {
  width: 100%; padding: 9px 10px; border-radius: 6px; font-size: 14px;
  background: #16161b; border: 1px solid #33333d; color: #e6e6ea;
}
.field input:focus { outline: none; border-color: #3a6b4f; }
.err { color: #e8a1a1; font-size: 13px; min-height: 18px; margin: 6px 0 10px; }
.hint { color: #7c7c88; font-size: 12px; margin-top: 12px; }
.profile .email { font-size: 17px; font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.profile .status { font-size: 13px; color: #a8a8b3; margin-bottom: 18px; }
.profile .status.ok { color: #8fd8ab; }
.profile .row { display: flex; gap: 10px; flex-wrap: wrap; }
.full { width: 100%; text-align: center; }

/* --- Подвал --- */
footer {
  margin-top: auto; padding: 20px 24px; color: #7c7c88; font-size: 13px;
  border-top: 1px solid #2c2c34; background: #1a1a20;
  display: flex; gap: 16px; flex-wrap: wrap;
}
