@font-face {
  font-family: "Yekan";
  src: url("/fonts/woff2/Yekan-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan";
  src: url("/fonts/woff2/Yekan-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080b12;
  --surface: rgba(20, 25, 38, .94);
  --surface-2: #111827;
  --border: rgba(255,255,255,.10);
  --text: #f8fafc;
  --muted: #aab4c5;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(139,92,246,.18), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(99,102,241,.16), transparent 30%),
    linear-gradient(135deg, #070a10 0%, #0d1220 55%, #090c14 100%);
  font-family: "Yekan", Tahoma, Arial, sans-serif;
  line-height: 1.9;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .20;
  background-image: url("/img/bg.png");
  background-repeat: repeat;
  background-size: 313px 256px;
  pointer-events: none;
}

img { max-width: 100%; }

a { color: inherit; }

.page-shell {
  width: min(100% - 28px, 1040px);
  margin: 0 auto;
  padding: 28px 0;
}

.chat-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 30px clamp(20px, 5vw, 54px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(17,24,39,.2));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #c4b5fd;
  font-size: .88rem;
  font-weight: 700;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.45;
}

.hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(24px, 5vw, 54px);
}

.logo-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-logo {
  width: min(100%, 597px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
  object-fit: contain;
}

.login-panel {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(8, 11, 18, .60);
}

.login-panel h2 {
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.panel-note, .privacy-note {
  color: var(--muted);
  font-size: .9rem;
}

.field { margin-top: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: #151b29;
  font: inherit;
}

.field select:disabled,
.field input[readonly] {
  opacity: 1;
  cursor: default;
}

.enter-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(99,102,241,.24);
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.enter-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(99,102,241,.30);
}

.enter-btn:focus-visible {
  outline: 3px solid rgba(196,181,253,.65);
  outline-offset: 3px;
}

.privacy-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: .78rem;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(20px, 5vw, 54px) 28px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}

.info-item strong { font-size: .92rem; }
.info-item span { color: var(--muted); font-size: .88rem; }

.seo-content {
  margin: 0 clamp(20px, 5vw, 54px) 28px;
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.seo-content h2 {
  color: var(--text);
  font-size: 1.15rem;
}

.seo-content p { margin-bottom: 0; }

.footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: .82rem;
}

.footer p { margin: 3px 0; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 18px, 620px); padding: 10px 0; }
  .chat-card { border-radius: 18px; }
  .content-grid { grid-template-columns: 1fr; padding: 24px 18px; }
  .logo-wrap { order: 0; }
  .login-panel { order: 1; }
  .info-list { grid-template-columns: 1fr; padding: 0 18px 22px; }
  .seo-content { margin-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter-btn { transition: none; }
}
