/* =========================================================
   LiftKala — Design tokens
   Primary: #0F3D68 (deep industrial blue)
   Deep:    #081C30 (navy / header-footer)
   Blue-500:#1C6DD0 (interactive)
   Amber:   #F2A93B (signal / CTA — hazard-stripe echo)
   Slate:   #55647A (secondary text)
   Bg:      #F4F7FB
   ========================================================= */

:root {
  --navy: #081c30;
  --blue-900: #0b2c4d;
  --blue-700: #0f3d68;
  --blue-500: #1c6dd0;
  --blue-100: #e7f0fc;
  --amber: #f2a93b;
  --amber-dark: #d68a17;
  --slate: #55647a;
  --slate-light: #8593a8;
  --line: #e3e9f1;
  --bg: #f4f7fb;
  --white: #ffffff;

  --font-body: "Vazirmatn", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(11, 44, 77, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 44, 77, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--blue-900);
  line-height: 1.7;
}

img,
svg {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.row .reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.row .reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.row .reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.row .reveal:nth-child(5) {
  transition-delay: 0.24s;
}
.row .reveal:nth-child(6) {
  transition-delay: 0.3s;
}
.row .reveal:nth-child(7) {
  transition-delay: 0.36s;
}
.row .reveal:nth-child(8) {
  transition-delay: 0.42s;
}

/* ---------- Hero load-in ---------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy > * {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.25s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.35s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.45s;
}
.hero-visual {
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10px, -18px) scale(1.06);
  }
}
.hero-blob {
  animation: floatBlob 8s ease-in-out infinite;
}

@keyframes cabGlow {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(242, 169, 59, 0.6);
  }
  50% {
    box-shadow: 0 0 26px rgba(242, 169, 59, 0.95);
  }
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* nav underline */
.nav-link-plain {
  position: relative;
}
.nav-link-plain::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  left: 0.9rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link-plain:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: 1240px;
}

/* ---------- Buttons ---------- */
.btn-amber {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 138, 23, 0.35);
  color: var(--navy);
}
.btn-outline-light-blue {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn-outline-light-blue:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

/* =========================================================
   Auth (login/register) page
   ========================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  padding: 1.2rem 0;
}
.auth-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.auth-topbar .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--blue-500), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.auth-topbar .brand-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow:
    0 -13px 0 rgba(255, 255, 255, 0.35),
    0 13px 0 rgba(255, 255, 255, 0.35);
}
.auth-topbar .brand-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-900);
}
.auth-topbar .brand-text b {
  font-weight: 900;
  color: var(--blue-700);
}
.auth-back-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--slate);
  transition: color 0.15s ease;
}
.auth-back-link:hover {
  color: var(--blue-700);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

.auth-shell {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(8, 28, 48, 0.16);
  min-height: 620px;
}

/* ---- left visual panel ---- */
.auth-visual {
  background: linear-gradient(
    165deg,
    var(--navy),
    var(--blue-900) 55%,
    var(--blue-700)
  );
  color: var(--white);
  padding: 3rem 2.6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    500px 340px at 85% 10%,
    rgba(242, 169, 59, 0.14),
    transparent 60%
  );
  pointer-events: none;
}
.auth-visual-content {
  position: relative;
  z-index: 1;
}
.auth-visual-content .eyebrow-chip {
  margin-bottom: 1.3rem;
}
.auth-visual-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 0.9rem;
  max-width: 22ch;
}
.auth-visual-content h2 span {
  color: var(--amber);
}
.auth-visual-content > p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 34ch;
}

.auth-trust-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
}
.auth-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.auth-trust-list i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* mini floor-shaft decoration */
.auth-shaft-decor {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
  opacity: 0.85;
}
.auth-shaft-decor .shaft-mini-track {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3) 0 6px,
    transparent 6px 12px
  );
}
.auth-shaft-decor .shaft-mini-cab {
  position: absolute;
  top: 50%;
  right: 18%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(242, 169, 59, 0.7);
  animation: shaftMiniMove 4s ease-in-out infinite;
}
@keyframes shaftMiniMove {
  0%,
  100% {
    right: 6%;
  }
  50% {
    right: 88%;
  }
}
.auth-shaft-decor span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* ---- right form panel ---- */
.auth-form-panel {
  background: var(--white);
  padding: 3rem 2.8rem;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 2rem;
  gap: 0.2rem;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.6rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--slate);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.auth-tab.is-active {
  background: var(--white);
  color: var(--amber);
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: none;
  flex-direction: column;
  animation: heroFadeUp 0.4s ease both;
}
.auth-form.is-active {
  display: flex;
}
.auth-form h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}
.auth-form > p {
  font-size: 0.87rem;
  color: var(--slate);
  margin-bottom: 1.6rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.auth-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-900);
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.auth-input-wrap:focus-within {
  border-color: var(--blue-500);
  background: var(--white);
}
.auth-input-wrap i:first-child {
  color: var(--slate-light);
  font-size: 1rem;
  margin-inline-start: 0.9rem;
  flex-shrink: 0;
}
.auth-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 0.78rem 0.8rem;
  font-size: 0.9rem;
  color: var(--blue-900);
  font-family: var(--font-body);
  min-width: 0;
}
.auth-input-wrap input:focus {
  outline: none;
}
.auth-input-wrap input::placeholder {
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.auth-eye-toggle {
  background: none;
  border: none;
  color: var(--slate-light);
  padding: 0 0.9rem;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.auth-eye-toggle:hover {
  color: var(--blue-700);
}

.auth-send-code-btn {
  flex-shrink: 0;
  background: var(--blue-100);
  color: var(--blue-700);
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  margin-inline-end: 0.35rem;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.auth-send-code-btn:hover {
  background: var(--blue-700);
  color: #fff;
}
.auth-send-code-btn:disabled {
  background: var(--bg);
  color: var(--slate-light);
  pointer-events: none;
}

.auth-method-toggle {
  display: flex;
  gap: 1.2rem;
  margin: -0.3rem 0 1.1rem;
}
.method-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--slate-light);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.method-btn.is-active {
  color: var(--blue-700);
  font-weight: 700;
  border-color: var(--blue-700);
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate);
  cursor: pointer;
}
.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-700);
}
.auth-link-sm {
  color: var(--blue-500);
}
.auth-link-sm:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem;
}
.auth-submit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.auth-feedback {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.auth-feedback.show {
  display: flex;
}
.auth-feedback i {
  font-size: 0.95rem;
}

.auth-switch-text {
  margin-top: auto;
  padding-top: 1.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
}
.auth-switch-text button {
  background: none;
  border: none;
  color: var(--blue-700);
  font-weight: 700;
}
.auth-switch-text button:hover {
  text-decoration: underline;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.auth-terms input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-700);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.auth-terms a {
  color: var(--blue-500);
}

.auth-footer {
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-light);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    box-shadow: var(--shadow-md);
  }
  .auth-visual {
    padding: 2.2rem;
  }
  .auth-visual-content h2 {
    max-width: none;
  }
  .auth-trust-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.6rem;
  }
  .auth-trust-list li {
    font-size: 0.8rem;
  }
  .auth-shaft-decor {
    display: none;
  }
  .auth-form-panel {
    padding: 2.2rem 1.6rem;
  }
}
@media (max-width: 575.98px) {
  .auth-shell {
    padding: 0 0.8rem;
    display:inline;
  }
  .auth-visual {
    padding: 1.8rem 1.4rem;
  }
  .auth-form-panel {
    padding: 1.8rem 1.2rem;
  }
  .auth-field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .auth-topbar .brand-text {
    font-size: 1.05rem;
  }
  .auth-back-link span {
    display: none;
  }
}
