/* ============================================================
   Octupo — централна demo страница (demo.octupo.com)
   Неутрална марка: кралско синьо + топло злато на меко бяло.
   Една красива страница за всички клиенти + поле за парола.
   ============================================================ */

:root {
  --royal: #1B3A8C;
  --royal-deep: #15306F;
  --royal-soft: #EAF0FB;
  --blue: #2E6BE6;
  --blue-deep: #2257C4;
  --gold: #C9A24B;
  --gold-soft: rgba(201, 162, 75, 0.55);

  --ink: #16203A;
  --ink-soft: #5A6478;
  --paper: #FFFFFF;
  --bg: #F6F8FC;
  --line: #E3E9F4;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 50px -22px rgba(27, 58, 140, 0.28);
  --shadow-card: 0 40px 90px -40px rgba(20, 34, 70, 0.45);

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* ---------- Атмосферен фон ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(46% 40% at 12% 4%,  rgba(46, 107, 230, 0.16), transparent 60%),
    radial-gradient(42% 38% at 90% 8%,  rgba(27, 58, 140, 0.14), transparent 58%),
    radial-gradient(50% 45% at 78% 96%, rgba(201, 162, 75, 0.12), transparent 60%),
    radial-gradient(60% 50% at 20% 100%, rgba(46, 107, 230, 0.08), transparent 62%);
  background-attachment: fixed;
}

/* ---------- HERO ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Марка ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: clamp(32px, 7vh, 64px);
  animation: rise-in 0.8s var(--ease) both;
}
.brand-mark {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, var(--royal), var(--royal-deep));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 26px; font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.brand-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--royal); letter-spacing: 0.2px;
}

/* ---------- Заглавие ---------- */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 22px;
  animation: rise-in 0.9s 0.05s var(--ease) both;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--blue), var(--royal) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto clamp(34px, 6vh, 52px);
  animation: rise-in 0.9s 0.12s var(--ease) both;
}

/* ---------- Карта за достъп ---------- */
.access-card {
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(30px, 5vw, 42px) clamp(26px, 5vw, 40px) clamp(28px, 5vw, 36px);
  animation: rise-in 1s 0.18s var(--ease) both;
}
.access-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 30px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.access-sub {
  font-size: 16px; color: var(--ink-soft); margin-bottom: 26px; line-height: 1.45;
}

/* Поле + бутон в едно */
.input-wrap {
  display: flex; gap: 10px;
}
.access-input {
  flex: 1; min-width: 0; height: 60px;
  font-family: var(--font-body); font-size: 19px; color: var(--ink);
  background: var(--royal-soft); border: 2px solid var(--line);
  border-radius: var(--radius-md); padding: 0 20px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.access-input::placeholder { color: #9AA7C4; }
.access-input:focus { outline: none; border-color: var(--blue); background: #fff; }

.access-btn {
  flex: none; height: 60px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border: none; border-radius: var(--radius-md); cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.access-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -22px rgba(46, 107, 230, 0.55); }
.access-btn:active { transform: translateY(0); }
.access-btn svg { transition: transform 0.22s var(--ease); }
.access-btn:hover svg { transform: translateX(3px); }

.access-message {
  min-height: 24px; margin-top: 16px; text-align: left;
  font-size: 15px; font-weight: 500; color: #C0392B;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.access-message.show { opacity: 1; transform: translateY(0); }
.access-message.ok { color: var(--royal); }

/* ---------- Тихи акценти ---------- */
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 22px;
  justify-content: center; margin-top: clamp(26px, 5vh, 40px);
  animation: rise-in 1s 0.26s var(--ease) both;
}
.trust-row li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
}
.trust-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b88f3a);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.16);
}

/* ---------- Footer ---------- */
.page-foot {
  text-align: center; padding: 26px 24px 30px;
  font-size: 14px; color: #9AA7C4;
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.page-foot a { color: var(--ink-soft); text-decoration: none; }
.page-foot a:hover { color: var(--royal); }
.page-foot .sep { opacity: 0.5; }

/* ---------- Анимации ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Адаптивност ---------- */
@media (max-width: 540px) {
  .input-wrap { flex-direction: column; }
  .access-input { width: 100%; }
  .access-btn { width: 100%; justify-content: center; }
  .trust-row { gap: 16px; }
}
