:root {
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-light: #eaf1ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #d9e1ef;
  --white: #fff;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #f3f7ff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* desktop: fixed 1568x1011 canvas, JS se zoom hota hai — kabhi scroll nahi */
@media (min-width: 961px) {
  html, body { height: 100%; overflow: hidden; }
  body { display: grid; place-items: center; }
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* ---------- background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #f6f9ff 0%, #eef4ff 45%, #f5f8ff 100%);
  overflow: hidden;
}
.bg i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 213, 255, .85) 0%, rgba(191, 213, 255, 0) 70%);
}
.bg i:nth-child(1) { width: 900px; height: 900px; left: -260px; top: 200px; }
.bg i:nth-child(2) { width: 700px; height: 700px; left: 520px; top: 380px; opacity: .8; }
.bg i:nth-child(3) { width: 600px; height: 600px; right: -120px; top: -260px; opacity: .6; }
.bg i:nth-child(4) { width: 700px; height: 700px; right: -180px; bottom: -320px; opacity: .55; }

/* ---------- page grid ---------- */
.page {
  width: 1568px;
  height: 1011px;
  padding: 22px 44px 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  transform-origin: top center;
}

/* ---------- top nav ---------- */
.nav {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 25px; letter-spacing: -.02em; }
.brand b { color: var(--blue); font-weight: 700; }
.mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
  display: grid; place-items: center;
}
.mark svg { width: 24px; height: 24px; }
.brand.sm { font-size: 22px; }
.brand.sm .mark { width: 40px; height: 40px; border-radius: 11px; }

.tagline { display: flex; align-items: center; gap: 22px; color: var(--ink-2); font-size: 15px; margin-left: 150px; }
.tagline i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.mode {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500;
}
.mode svg { width: 22px; height: 22px; }
.mode .chev { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) 596px;
  gap: 40px;
  margin-top: 44px;
  align-items: start;
}
.left { position: relative; min-height: 880px; align-self: stretch; }
.hero > * { min-width: 0; }
.stage {
  position: absolute; right: 0; bottom: 0;
  width: 772px; height: 880px;
  transform-origin: bottom right;
  pointer-events: none;
}
.stage[hidden] { display: none; }
.left h1 {
  font-size: clamp(40px, 4.3vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
}
.left h1 span { color: var(--blue); display: block; }
.left .lead {
  margin-top: 26px;
  font-size: clamp(17px, 1.35vw, 20.5px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 500px;
}
.features { margin-top: 26px; display: grid; gap: 14px; position: relative; z-index: 2; }
.feature { display: flex; align-items: center; gap: 22px; }
.feature .tile {
  width: 62px; height: 62px; border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(30, 64, 175, .10);
  display: grid; place-items: center;
}
.feature .tile svg { width: 28px; height: 28px; }
.feature strong { display: block; font-size: 17px; font-weight: 600; }
.feature small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.hand { font-family: var(--hand); color: var(--blue); }
.hand-1 {
  position: absolute; left: 6px; top: 610px;
  font-size: 46px; line-height: .95; font-weight: 600;
  transform: rotate(-14deg);
}
.hand-1 u { display: block; text-decoration: none; margin-left: 10px; }
.hand-1::after {
  content: ""; display: block; width: 190px; height: 4px; margin: 4px 0 0 20px;
  background: var(--blue); border-radius: 4px; transform: rotate(-2deg);
}
.hand-2 {
  position: absolute; left: 596px; top: 214px;
  font-size: 22px; line-height: 1.1; font-weight: 500; color: var(--ink-2);
  transform: rotate(-16deg);
}
.arrow-1, .arrow-2 { position: absolute; width: 90px; height: 90px; color: var(--blue); }
.arrow-1 { left: 640px; top: 292px; width: 80px; height: 80px; }
.arrow-2 { left: 452px; top: 372px; width: 60px; height: 110px; }

/* floating file cards */
.file {
  position: absolute;
  width: 96px; height: 116px; border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(30, 64, 175, .18);
  display: grid; place-items: center; align-content: center; gap: 4px;
  font-weight: 800; font-size: 18px;
}
.file svg { width: 44px; height: 52px; }
.file.xlsx { left: 528px; top: 340px; z-index: 3; transform: rotate(-8deg); color: #16a34a; }
.file.csv  { left: 636px; top: 396px; z-index: 3; transform: rotate(6deg); color: var(--blue); }

/* ---------- laptop ---------- */
.laptop {
  position: absolute; left: 236px; top: 522px;
  width: 440px; z-index: 2;
  transform: perspective(1400px) rotateX(6deg) rotateY(-14deg) rotateZ(2deg);
  transform-origin: bottom center;
}
.screen {
  background: #1f2430;
  border-radius: 16px 16px 6px 6px;
  padding: 12px 12px 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .28);
}
.screen .inner {
  background: #f5f7fb;
  border-radius: 8px;
  height: 270px;
  overflow: hidden;
  font-size: 7px;
  display: grid;
  grid-template-columns: 90px 1fr;
}
.base {
  height: 16px; margin: 0 -30px;
  background: linear-gradient(180deg, #d9dde6, #b9c0cc);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
}
.base::before {
  content: ""; display: block; width: 90px; height: 5px; margin: 0 auto;
  background: #a5adbb; border-radius: 0 0 6px 6px;
}
.mini-side { background: #fff; border-right: 1px solid #e5e9f0; padding: 10px 8px; }
.mini-side .b { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 8px; margin-bottom: 12px; }
.mini-side .b i { width: 11px; height: 11px; border-radius: 3px; background: var(--blue); }
.mini-side a { display: block; padding: 5px 7px; border-radius: 4px; color: #64748b; margin-bottom: 2px; }
.mini-side a.on { background: var(--blue); color: #fff; }
.mini-main { padding: 10px 12px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.mini-stats div { background: #fff; border: 1px solid #e5e9f0; border-radius: 5px; padding: 5px 7px; }
.mini-stats small { display: block; color: #94a3b8; font-size: 5.5px; }
.mini-stats b { display: block; font-size: 9px; color: #0f172a; }
.mini-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-top .search { flex: 1; height: 16px; border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; margin-right: 8px; padding: 0 6px; color: #94a3b8; display: flex; align-items: center; }
.mini-top .up { background: var(--blue); color: #fff; padding: 4px 8px; border-radius: 5px; font-weight: 600; }
.mini-top .u { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.mini-top .u i { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); display: block; }
.mini-top .u b { display: block; font-size: 6px; }
.mini-top .u small { display: block; font-size: 5px; color: #94a3b8; }
table.mini { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; }
table.mini th { text-align: left; font-weight: 600; color: #64748b; padding: 5px 6px; border-bottom: 1px solid #edf1f6; }
table.mini td { padding: 5px 6px; border-bottom: 1px solid #f1f4f8; color: #334155; }
table.mini .ok { background: #dcfce7; color: #15803d; padding: 1px 5px; border-radius: 3px; font-weight: 600; }

/* plant */
.plant { position: absolute; left: 640px; top: 530px; width: 150px; height: 230px; z-index: 1; }

/* ---------- login card ---------- */
.card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px 36px 30px;
  box-shadow: 0 20px 60px rgba(30, 64, 175, .12);
}
.card-head { text-align: center; }
.card-head .mark { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 16px; box-shadow: 0 12px 28px rgba(37, 99, 235, .35); }
.card-head .mark svg { width: 46px; height: 46px; }
.card-head h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.card-head h2 b { color: var(--blue); }
.card-head p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }

form { margin-top: 30px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field .lr { display: flex; justify-content: space-between; align-items: baseline; }
.field label { font-size: 15px; font-weight: 500; }
.field .lr a { color: var(--blue); font-size: 15px; font-weight: 500; }
.field .lr a:hover { text-decoration: underline; }
.control { position: relative; }
.control .lead-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #94a3b8; }
.control .input {
  width: 100%; height: 56px;
  padding: 0 48px 0 48px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.control .input::placeholder { color: #94a3b8; }
.control .input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.control .toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; background: transparent; color: var(--blue);
  display: grid; place-items: center; border-radius: 8px;
}
.control .toggle svg { width: 22px; height: 22px; }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); border-radius: 4px; }

.btn {
  width: 100%;
  height: 60px;
  border: 0; border-radius: 12px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  color: #fff; font-size: 20px; font-weight: 600;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 22px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }
.btn .label { grid-column: 2; }
.btn .arrow { grid-column: 3; justify-self: end; width: 24px; height: 24px; }
.btn .spinner {
  grid-column: 2; width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .label, .btn.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: none; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px;
}
.alert.show { display: flex; }
.alert svg { width: 18px; height: 18px; flex: 0 0 18px; }

.or { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 28px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- OTP ---------- */
.sent-to { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.sent-to b { color: var(--ink); }
.sent-to a { color: var(--blue); font-weight: 500; margin-left: 6px; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp input { width: 100%; min-width: 0; height: 54px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.otp input.filled { border-color: var(--blue); background: #f5f8ff; }
.resend { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.resend button { border: 0; background: transparent; color: var(--blue); font-weight: 600; cursor: pointer; }
.resend button:disabled { color: var(--muted); cursor: default; font-weight: 500; }
.alert.ok { border-color: #bfe3cc; background: #e7f5ec; color: #1e7e4a; }

/* ---------- perks (card ke andar) ---------- */
.perks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}
.perk {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6px 12px;
  border-left: 1px solid var(--line);
}
.perk:first-child { border-left: 0; }
.perk svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 12px; }
.perk strong { display: block; font-size: 15px; font-weight: 600; }
.perk small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

.copy { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .page { width: auto; height: auto; min-height: 100vh; padding: 18px 24px 24px; zoom: 1 !important; transform: none !important; }
  .nav { grid-template-columns: 1fr auto; }
  .tagline { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; margin-top: 28px; }
  .right { order: -1; }
  .card { max-width: 560px; margin: 0 auto; }
  .left { min-height: auto; text-align: left; }
  .left h1 { font-size: clamp(38px, 7vw, 56px); }
  .left .lead { max-width: 560px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .feature { align-items: flex-start; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature { gap: 16px; }
  .feature .tile { width: 54px; height: 54px; border-radius: 14px; flex: 0 0 54px; }
  .feature .tile svg { width: 24px; height: 24px; }
  .feature strong { font-size: 16px; }
  .brand { font-size: 21px; }
  .mark { width: 40px; height: 40px; }
  .mode span { display: none; }
  .mode { gap: 6px; }
}
@media (max-width: 480px) {
  .page { padding: 14px 16px 24px; }
  .card { padding: 26px 18px 22px; border-radius: 20px; }
  .card-head .mark { width: 64px; height: 64px; border-radius: 18px; }
  .card-head .mark svg { width: 34px; height: 34px; }
  .card-head h2 { font-size: 26px; }
  .field label, .field .lr a, .check { font-size: 14px; }
  .control .input { height: 50px; font-size: 15px; }
  .btn { height: 52px; font-size: 18px; }
  .perks { grid-template-columns: 1fr; gap: 14px; }
  .perk { border-left: 0; padding: 0; }
  .left h1 { font-size: 36px; }
}
