:root {
  --green: #219e68;
  --green-dark: #13784d;
  --green-light: #7fcf9f;
  --mint: #e9f7ee;
  --ink: #12291e;
  --muted: #5d7266;
  --subtle: #8a9b90;
  --background: #f6faf7;
  --surface: #ffffff;
  --border: #e0ece4;
  --shadow-sm: 0 1px 2px rgba(18, 83, 51, .05), 0 4px 12px rgba(18, 83, 51, .04);
  --shadow-md: 0 2px 4px rgba(18, 83, 51, .04), 0 14px 32px rgba(18, 83, 51, .09);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }

/* ---------- Page shell & background ---------- */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.page::before, .page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
  filter: blur(10px);
}
.page::before {
  width: 640px; height: 640px;
  left: -300px; top: 18%;
  background: radial-gradient(circle, rgba(127, 207, 159, .32) 0%, rgba(127, 207, 159, 0) 70%);
}
.page::after {
  width: 720px; height: 720px;
  right: -340px; bottom: -340px;
  background: radial-gradient(circle, rgba(33, 158, 104, .22) 0%, rgba(33, 158, 104, 0) 70%);
}
/* faint dot grid that fades out toward the edges */
.main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(19, 120, 77, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, #000 0%, transparent 75%);
}

.container { width: min(100% - 48px, 1160px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 8px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: clamp(150px, 18vw, 210px); height: auto; }

.language-switch {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.language {
  min-width: 42px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.language:hover { color: var(--green-dark); }
.language.active { background: var(--green); color: #fff; }

/* ---------- Hero ---------- */
.main { position: relative; display: grid; flex: 1; place-items: center; padding-block: 12px 28px; }
.hero { width: min(100%, 820px); text-align: center; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }

.status-icon {
  position: relative;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border: 1px solid #c6e9d4;
  border-radius: 20px;
  color: var(--green);
  background: linear-gradient(160deg, #fff 0%, var(--mint) 100%);
  box-shadow: var(--shadow-md), inset 0 1px 0 #fff;
}
.status-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(33, 158, 104, .28);
  border-radius: 25px;
}
.status-icon svg { width: 28px; height: 28px; animation: wiggle 3.2s ease-in-out infinite; transform-origin: 70% 30%; }

.status {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 8px 16px 8px 12px;
  background: rgba(233, 247, 238, .85);
  color: var(--green-dark);
  border: 1px solid #c9e8d4;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px;
  backdrop-filter: blur(6px);
}
.status-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

h1 {
  margin: 18px auto 14px;
  font-size: clamp(28px, min(4.6vw, 6.4vh), 54px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}
h1 .line { display: block; }
h1 .accent {
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green) 55%, #34b77c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}

.description {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* indeterminate progress bar */
.progress {
  position: relative;
  width: 180px; height: 4px;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #dcefe3;
}
.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  animation: slide 1.8s ease-in-out infinite;
}

/* ---------- Social ---------- */
.social-section { margin-top: 28px; }
.social-heading {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px; font-weight: 650;
}
.social-heading::before, .social-heading::after {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, #c8ddd0);
}
.social-heading::after { transform: scaleX(-1); }

.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #2c4637;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 650;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.social-link svg { width: 18px; height: 18px; flex: none; color: var(--green); transition: color .2s ease; }
.social-link:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(33, 158, 104, .25);
}
.social-link:hover svg { color: #fff; }
.social-link:active { transform: translateY(0); }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding-block: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 12.5px;
}

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-14deg); }
  84% { transform: rotate(10deg); }
  92% { transform: rotate(-4deg); }
}

/* ---------- Responsive ---------- */
/* short desktop/laptop screens: keep everything above the fold */
@media (max-height: 760px) {
  .site-header { padding-block: 16px 4px; }
  .status-icon { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 16px; }
  .status-icon::after { inset: -6px; border-radius: 21px; }
  .status-icon svg { width: 24px; height: 24px; }
  h1 { margin-block: 14px 10px; }
  .progress { margin-top: 18px; }
  .social-section { margin-top: 22px; }
}
@media (max-height: 620px) {
  .status-icon, .progress { display: none; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 32px, 1160px); }
  .site-header { padding-block: 16px 4px; }
  .brand img { width: 136px; }
  .language { min-width: 38px; padding: 6px 10px; font-size: 12px; }
  .main { padding-block: 8px 20px; }
  .status-icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; }
  .status-icon::after { inset: -6px; border-radius: 20px; }
  .status-icon svg { width: 24px; height: 24px; }
  .status { padding: 7px 13px 7px 10px; font-size: 10px; letter-spacing: 1px; gap: 8px; }
  h1 { font-size: clamp(26px, 7.6vw, 34px); margin-block: 16px 10px; letter-spacing: -.03em; }
  .description { font-size: 15px; line-height: 1.55; }
  .progress { width: 140px; margin-top: 18px; }
  .social-section { margin-top: 24px; }
  .social-heading { font-size: 12.5px; margin-bottom: 12px; }
  .social-heading::before, .social-heading::after { width: 24px; }
  /* one compact row of four: icon above label */
  .social-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .social-link { flex-direction: column; gap: 5px; min-height: 62px; padding: 8px 4px; font-size: 11.5px; border-radius: 12px; }
  .social-link svg { width: 20px; height: 20px; }
  .footer { flex-direction: column; gap: 2px; padding-block: 12px 16px; text-align: center; font-size: 11.5px; }
}
@media (max-width: 650px) and (max-height: 700px) {
  .status-icon, .progress { display: none; }
}
@media (max-width: 340px) {
  .social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
