:root {
  --background: 20 14.3% 4.1%;
  --foreground: 0 0% 95%;
  --card: 24 9.8% 10%;
  --card-foreground: 0 0% 95%;
  --popover: 0 0% 9%;
  --popover-foreground: 0 0% 95%;
  --primary: 142.1 70.6% 45.3%;
  --primary-foreground: 144.9 80.4% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 12 6.5% 15.1%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 85.7% 97.3%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 142.4 71.8% 29.2%;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, hsla(142.1, 70.6%, 45.3%, 0.06), transparent 30%),
    hsl(var(--background));
}

.bg-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-top {
  top: 0;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: hsla(142.1, 70.6%, 45.3%, 0.14);
}

.bg-glow-bottom {
  bottom: 0;
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  background: hsla(142.1, 70.6%, 45.3%, 0.08);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
}

.card {
  border: 1px solid hsla(240, 3.7%, 15.9%, 0.95);
  background: hsla(24, 9.8%, 10%, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.main-card {
  padding: 32px;
}

.side-card {
  padding: 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: hsla(142.1, 70.6%, 45.3%, 0.15);
  box-shadow: inset 0 0 0 1px hsla(142.1, 70.6%, 45.3%, 0.2);
  overflow: hidden;
}

.brand-icon.logo-fallback {
  color: hsl(var(--primary));
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.brand h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2rem);
  line-height: 1.1;
}

.brand p {
  margin: 6px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.status-badge,
.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
}

.status-badge {
  margin-bottom: 24px;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: hsl(var(--primary));
  border: 1px solid hsla(142.1, 70.6%, 45.3%, 0.2);
  background: hsla(142.1, 70.6%, 45.3%, 0.1);
}

.notice-badge {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
}

.spin-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  animation: spin 1.2s linear infinite;
}

.spin-icon svg {
  width: 100%;
  height: 100%;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy h2 span {
  display: block;
  color: hsl(var(--primary));
}

.hero-copy p,
.side-copy,
.info-box p,
.thankyou-box p {
  color: hsl(var(--muted-foreground));
}

.hero-copy p {
  max-width: 42rem;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.85;
}

.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.info-box,
.thankyou-box {
  border: 1px solid hsl(var(--border));
  border-radius: 22px;
}

.feature-card {
  padding: 18px;
  background: hsla(20, 14.3%, 4.1%, 0.6);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: hsl(var(--primary));
  background: hsla(142.1, 70.6%, 45.3%, 0.1);
}

.feature-icon svg,
.support-link svg {
  width: 20px;
  height: 20px;
}

.feature-card h3,
.side-card h3,
.info-title,
.thankyou-title,
.bottom-title {
  margin: 0;
  color: hsl(var(--foreground));
}

.feature-card h3 {
  font-size: 1rem;
}

.feature-card p {
  margin: 8px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  line-height: 1.6;
}

.bottom-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 0.95rem;
}

.support-link:hover {
  text-decoration: underline;
}

.refresh-button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px hsla(142.1, 70.6%, 45.3%, 0.18);
}

.refresh-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.refresh-button:active {
  transform: translateY(0);
}

.side-card h3 {
  margin-top: 16px;
  font-size: 2rem;
  line-height: 1.15;
}

.side-copy {
  margin: 16px 0 0;
  font-size: 0.96rem;
  line-height: 1.9;
}

.info-stack {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.info-box {
  padding: 18px;
  background: hsla(20, 14.3%, 4.1%, 0.5);
}

.info-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.info-box p:last-child,
.thankyou-box p:last-child {
  margin: 8px 0 0;
  font-size: 0.93rem;
  line-height: 1.7;
}

.thankyou-box {
  margin-top: 32px;
  padding: 18px;
  background: hsla(142.1, 70.6%, 45.3%, 0.1);
  border-color: hsla(142.1, 70.6%, 45.3%, 0.2);
}

.thankyou-title {
  color: hsl(var(--primary));
  font-size: 0.98rem;
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 760px;
    padding: 24px 0;
  }

  .side-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 100%);
    gap: 20px;
  }

  .main-card,
  .side-card {
    padding: 22px;
    border-radius: 24px;
  }

  .brand {
    margin-bottom: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .refresh-button {
    width: 100%;
  }

  .side-card h3 {
    font-size: 1.7rem;
  }
}
