/* ========== Theme Colors (easy to change) ========== */
:root {
  --primary: #1d4ed8;       /* Deep blue */
  --primary-soft: #e0ebff;
  --primary-dark: #1e3a8a;
  --accent: #16a34a;        /* Green (gain feeling) */
  --bg-page-top: #0f172a;
  --bg-page-bottom: #020617;
}

/* ========== Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0b1220 0, #020617 45%, #000 100%);
  color: #e5e7eb;
}

/* ========== Layout ========== */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  border-radius: 22px;
  padding: 22px 26px 20px;
  max-width: 960px;
  width: 100%;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* top right glow */
.card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  pointer-events: none;
}

/* ========== Brand bar ========== */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #22c55e 0, #16a34a 40%, #15803d 90%);
  color: #ecfdf5;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 12px 25px rgba(34, 197, 94, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-main {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.76rem;
  color: #9ca3af;
}

/* ========== Content layout ========== */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration svg {
  width: 100%;
  max-width: 320px;
}

/* SVG styling tuned for IPO / finance */
.board-bg {
  fill: #020617;
  stroke: rgba(148, 163, 184, 0.5);
  stroke-width: 1.5;
}

.grid-line {
  stroke: rgba(55, 65, 81, 0.55);
  stroke-width: 0.6;
}

.rupee-circle {
  fill: rgba(37, 99, 235, 0.12);
  stroke: rgba(37, 99, 235, 0.8);
  stroke-width: 1.8;
}

.rupee-text {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  fill: #bfdbfe;
  font-weight: 600;
}

.chart-line {
  fill: none;
  stroke: #22c55e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(22, 163, 74, 0.6));
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-line 1.4s ease-out forwards 0.2s;
}

.arrow-head,
.arrow-tail {
  fill: none;
  stroke: #22c55e;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-pill {
  fill: rgba(15, 23, 42, 0.95);
  stroke: rgba(248, 250, 252, 0.07);
  stroke-width: 1;
}

.status-text {
  font-family: system-ui, sans-serif;
  font-size: 8px;
  fill: #9ca3af;
}

/* ========== Text block ========== */
.text-block {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.6);
  width: fit-content;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f9fafb;
}

.text-block p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 28rem;
}

/* ========== Actions ========== */
.actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #f9fafb;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.7);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
  background: rgba(31, 41, 55, 0.95);
}

/* ========== Small note ========== */
.small-note {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.small-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

/* ========== Animations ========== */
@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* ========== Responsive ========== */
@media (max-width: 800px) {
  .card {
    padding: 18px 16px 18px;
    border-radius: 18px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .illustration {
    order: -1;
  }

  .illustration svg {
    max-width: 260px;
  }

  .text-block p {
    max-width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .brand-main {
    font-size: 0.96rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .text-block p {
    font-size: 0.9rem;
  }
}
