/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b1220;
  background:
    radial-gradient(1200px 600px at 10% -10%, #e0f2fe 0%, transparent 60%),
    radial-gradient(1200px 600px at 110% 10%, #ffe4e6 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow-x: hidden;
}

.wrap {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: clamp(16px, 2vw, 32px);
}

/* ===== Theme Tokens ===== */
:root{
  --gold:#f59e0b;
  --gold-deep:#d97706;
  --red:#e11d48;
  --red-deep:#be123c;
  --card-bg: rgba(255,255,255,.75);
  --text:#0b1220;
  --muted:#475569;
  --chip-bg:#fff;
  --border: rgba(15,23,42,.12);
  --orb1:#93c5fd; --orb2:#fca5a5;
  --btn-grad: linear-gradient(135deg, var(--gold), var(--red));
  --btn-shadow: 0 10px 22px rgba(190, 18, 60, .22);
  --btn-shadow-h: 0 14px 28px rgba(190, 18, 60, .30);
}

/* Decorative orbs */
.bg-orb {
  position: fixed;
  inset: auto auto 10% -10%;
  width: 380px; height: 380px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .45;
  z-index: 0;
  pointer-events: none;
}
.orb-1 { background: var(--orb1); left: -8%; bottom: 12%; }
.orb-2 { background: var(--orb2); right: -8%; top: 8%; }

/* ===== Card ===== */
.card {
  position: relative;
  width: min(720px, 92vw);
  background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,.6));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 28px;
  padding: clamp(18px, 3.5vw, 28px);
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.08), 0 2px 8px rgba(2, 8, 23, 0.06);
  z-index: 1;
  animation: floatIn .8s cubic-bezier(.2,.8,.2,1);
}
@keyframes floatIn {
  from { opacity: 0; transform: translate3d(0,10px,0) }
  to   { opacity: 1; transform: translate3d(0,0,0) }
}

.brand {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}
.logo {
  width: 88px; height: 88px; border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 6px 18px rgba(2,8,23,.08);
  background: #fff;
}
.title h1 {
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ===== Buttons Row ===== */
.cta-row {
  margin: 18px 0 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn.primary {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: var(--btn-shadow);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-h);
  filter: saturate(1.05) brightness(1.02);
}
.btn.outline {
  background: #ffffffc7;
  color: var(--text);
  border-color: var(--border);
}
.btn.outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
}

/* ===== Socials (responsive + red icons) ===== */
.social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  grid-auto-rows: 44px;
  gap: 12px;
  justify-items: center;
  align-items: center;
  padding: 12px 0 0;
  margin: 6px 0 2px;
  list-style: none;
}
.social-link {
  text-decoration: none !important;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(2,8,23,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.social-link i {
  font-size: 18px;
  line-height: 1;
  color: red;
}
.social-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2,8,23,.10);
  border-color: rgba(15,23,42,.18);
}
.social-link:hover i { color: #b91c1c; }

/* ---- Mobile tuning ---- */
@media (max-width: 520px) {
  .cta-row { grid-template-columns: 1fr; }
  .social { grid-template-columns: repeat(4, 44px); justify-content: center; }
  .brand { grid-template-columns: 72px 1fr; }
  .logo { width: 72px; height: 72px; border-radius: 16px; }
}

/* ---- Small tablet tuning ---- */
@media (min-width: 521px) and (max-width: 768px) {
  .social { grid-template-columns: repeat(6, 44px); }
}

/* ===== Chips ===== */
.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: var(--text);
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(2,8,23,.07); }

.foot {
  margin-top: 14px;
  text-align: center;
  color: #64748b;
}

/* ===== Toast ===== */
#toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: #0b1220;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(2,8,23,.2);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  z-index: 110;
  font-weight: 700;
}
#toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Modal (Popup) ===== */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,.45);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}
.modal{
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(2,8,23,.25);
  transform: translateY(10px);
  transition: transform .2s ease;
}
.modal-backdrop.open .modal{
  transform: translateY(0);
}
.modal-header{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}
.modal-logo{
  width: 64px; height: 64px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(15,23,42,.08); object-fit: cover;
}
.modal h2{
  margin: 0 0 4px; font-family: Poppins, Inter, sans-serif; letter-spacing: -0.02em;
}
.modal-desc{ color:#475569; margin: 8px 0 16px; }
.modal-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.modal-close{
  position: absolute; right: 10px; top: 6px;
  background: transparent; border: 0; font-size: 24px; cursor: pointer;
  line-height: 1;
}
