*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #0b1d35;
  --blue:   #1565c0;
  --slate:  #4d6b7c;
  --green:  #2e7d32;
  --red:    #c62828;
  --radius: 20px;
  --shadow:
    0 48px 96px rgba(0, 0, 0, 0.55),
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 2px 8px  rgba(0, 0, 0, 0.18);
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* ── Background layers ──────────────────────────────────── */
.bg-image {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 20s ease-in-out;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    140deg,
    rgba(11, 29, 53, 0.82) 0%,
    rgba(21, 101, 192, 0.38) 55%,
    rgba(11, 29, 53, 0.75) 100%
  );
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 2;
  background-image: repeating-linear-gradient(
    -52deg,
    transparent, transparent 55px,
    rgba(255,255,255,0.018) 55px,
    rgba(255,255,255,0.018) 56px
  );
}

/* Animated light streaks at bottom — road/highway feel */
.bg-streak {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(21,101,192,0.85) 25%,
    rgba(255,255,255,0.5) 50%,
    rgba(198,40,40,0.85) 75%,
    transparent 100%
  );
  animation: streakSlide 6s linear infinite;
}

@keyframes streakSlide {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Language switcher ──────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 4px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.lang-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-btn.active {
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lang-btn:not(.active):hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: scale(1.04);
}

/* ── Card ───────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: cardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top accent stripe */
.card-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 50%, var(--red) 100%);
}

/* ── Card Header ────────────────────────────────────────── */
.card-header {
  padding: 2.2rem 2.5rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid #f0f3f7;
  position: relative;
}

/* Subtle grid pattern inside header */
.card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(21,101,192,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.logo-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fafc, #edf1f7);
  border: 2px solid #e4eaf2;
  box-shadow:
    0 4px 16px rgba(11,29,53,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.card-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(21,101,192,0.08), rgba(11,29,53,0.06));
  border: 1px solid rgba(21,101,192,0.18);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Card Body ──────────────────────────────────────────── */
.card-body {
  padding: 1.75rem 2rem 1.9rem;
}

.section-label {
  font-size: 0.63rem;
  font-weight: 700;
  color: #b4bfcb;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1.15rem 0.9rem 0.9rem;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after { opacity: 1; }
.btn:active       { transform: translateY(0) scale(0.99); }

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-content {
  flex: 1;
  text-align: left;
}

.btn-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.btn-sub {
  display: block;
  font-size: 0.69rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  font-weight: 500;
}

.btn-arrow {
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
  color: rgba(255,255,255,0.95);
}

.btn-primary {
  background: linear-gradient(135deg, #0e2444 0%, #1565c0 100%);
  box-shadow: 0 4px 18px rgba(21,101,192,0.38);
}
.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(21,101,192,0.52);
}

.btn-secondary {
  background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
  box-shadow: 0 4px 18px rgba(46,125,50,0.32);
}
.btn-secondary:hover {
  box-shadow: 0 10px 32px rgba(46,125,50,0.48);
}

/* ── Card Footer ────────────────────────────────────────── */
.card-footer {
  padding: 0.85rem 2rem 1.1rem;
  border-top: 1px solid #f0f3f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: #bcc8d4;
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46,125,50,0.07);
  border: 1px solid rgba(46,125,50,0.2);
  border-radius: 50px;
  padding: 3px 9px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { border-radius: 16px; }
  .card-header { padding: 1.8rem 1.6rem 1.5rem; }
  .card-body   { padding: 1.5rem 1.4rem 1.6rem; }
  .card-footer { padding: 0.75rem 1.4rem 1rem; }
  .lang-btn span { display: none; }
  .lang-btn { padding: 5px 8px; }
}

@media (max-width: 340px) {
  .card-title { font-size: 1.1rem; }
  .btn-sub    { display: none; }
}
