/* ========== BASE / RESET ========== */
:root {
  /* Dark outer frame */
  --bg-dark: #020617;

  /* Header solid dark blue like original design */
  --header-bar: #003366;

  --text-main: #1f2937;
  --text-muted: #6b7280;
  --feature-pill: #e0f2fe;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* Center horizontally, anchor to TOP, respect notches, and let card fill height */
body {
  background: var(--bg-dark);
  display: flex;
  justify-content: center;          /* center left/right */
  align-items: flex-start;          /* start at top, not middle */
  min-height: 100vh;

  /* Top padding:
     - at least 16px, or
     - safe-area inset for devices with camera hole / notch */
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  /* Bottom padding:
     - small but respects safe area at bottom as well */
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  padding-left: 0;
  padding-right: 0;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-y: auto;
}

/* Shell (the "phone" card) */
.app-shell {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* Fill almost all the vertical space, leaving only small dark edges */
  min-height: calc(100vh - 24px); /* 16 top + ~8 bottom padding */
}

/* ========== HEADER ========== */
.nc-header {
  background: var(--header-bar); /* solid dark blue bar */
}

.header-content {
  padding: 10px 16px;
}

/* Center title, keep seal pinned left */
.logo-title {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seal-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.title-block {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.site-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff; /* white text on dark blue */
}

.site-subtitle {
  font-size: 11px;
  color: #d1e4ff; /* lighter blue/white for subtitle */
}

/* ========== MAIN CONTENT ========== */
.main {
  padding: 18px 18px 12px;
  flex: 1 0 auto; /* allow main content to grow and push footer down */
}

.main-inner {
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
}

.hero h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
}

.hero .description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== CONNECT BUTTON ========== */
.button-section {
  text-align: center;
  margin-top: 20px;
}

.connect-button {
  position: relative;
  width: 190px;
  height: 90px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 20%, #ff8a80, #e11d48);
  box-shadow: 0 16px 28px rgba(220, 38, 38, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: 0.15s ease;
}

.connect-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button-glossy {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
}

.button-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-icon {
  width: 26px;
  height: 26px;
}

.button-text {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.button-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== FEATURES ========== */
.features {
  margin-top: 24px;
  padding: 16px 10px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f9fafb, #eef2ff);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.feature {
  flex: 1;
  text-align: center;
}

.feature-badge {
  margin: 0 auto 4px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--feature-pill);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
}

.feature-name {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== FOOTER CARD ========== */
.footer-wrap {
  padding: 0 18px 10px;
}

.footer-card {
  margin-top: 70px;
  padding: 60px 16px 18px;
  background: #f9fafb;
  border-radius: 24px;
  position: relative;
  text-align: center;
}

.footer-avatar-wrap {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.governor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: #ffffff;
  object-fit: contain; /* full head visible */
  padding: 6px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.footer-text {
  margin-top: 6px;
}

.footer-label {
  font-size: 11px;
  color: var(--text-muted);
}

.governor-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  color: var(--text-main);
}

.province-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* copyright */
.footer-bottom {
  padding: 10px 0 8px;
  text-align: center;
  font-size: 10px;
  color: #9ca3af;
}
