/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --primary: #2563EB;
  --primary-hover: color-mix(in srgb, var(--primary) 88%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --heading: #0F172A;
  --text: #64748B;
  --border: #E2E8F0;

  --radius-sm: 12px;
  --radius-lg: 20px;

  --shadow-card:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -4px rgba(15, 23, 42, 0.08),
    0 24px 48px -12px rgba(15, 23, 42, 0.10);
  --shadow-btn: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 16px -6px var(--primary);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, var(--primary-soft), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
p {
  margin: 0;
}

img,
svg {
  display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 16px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 40px 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: rise 0.7s var(--ease) both;
}

/* ==========================================================================
   Branding
   ========================================================================== */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 4px 12px -4px rgba(15, 23, 42, 0.12);
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--primary);
}

.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.brand__tagline {
  margin-top: 2px;
  font-size: 14px;
}

.brand__tagline:empty {
  display: none;
}

.divider {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ==========================================================================
   Heading
   ========================================================================== */
.intro h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  text-wrap: balance;
}

.intro p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
  list-style: none;
  margin: 28px 0;
  padding: 4px 16px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.step + .step {
  border-top: 1px dashed var(--border);
}

.step__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.step__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--heading);
}

.step__text {
  margin-top: 1px;
  font-size: 13.5px;
}

/* ==========================================================================
   Button
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
  text-decoration: none;
  background: var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--primary);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Supporting text
   ========================================================================== */
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.trust svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.notice {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  font-size: 13px;
  text-align: center;
  animation: fade 0.8s 0.3s ease both;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
  .page {
    padding: 24px 16px;
    justify-content: flex-start;
    padding-top: max(24px, 6vh);
  }

  .card {
    padding: 32px 20px 24px;
    border-radius: 18px;
  }

  .brand__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .divider {
    margin: 24px 0;
  }

  .intro h1 {
    font-size: 22px;
  }

  .intro p {
    font-size: 14.5px;
  }

  .steps {
    margin: 24px 0;
    padding: 2px 14px;
  }
}
