:root{
  --bg-light: #f5f8f6;
  --bg-dark: #0b0d0a;
  --card: #ffffff;
  --ink: #12130f;
  --muted: #5c635e;
  --green: #167a4a;
  --green-soft: #dcefe3;
  --line: rgba(18,19,15,0.08);

  --ink-4: rgba(18,19,15,0.04);
  --ink-6: rgba(18,19,15,0.06);
  --ink-16: rgba(18,19,15,0.16);
  --ink-40: rgba(18,19,15,0.4);

  --white-10: rgba(255,255,255,0.1);
  --white-22: rgba(255,255,255,0.22);
  --white-55: rgba(255,255,255,0.55);

  --shadow: 0 1px 2px var(--ink-4), 0 20px 40px -20px rgba(18,19,15,0.18);
}

html[data-theme="dark"]{ --page-bg: var(--bg-dark); }
html[data-theme="light"]{ --page-bg: var(--bg-light); }

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

html, body{
  margin: 0;
}

body{
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  transition: background 0.25s ease;
}

/* Utility */
.label--sm{
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Trendline background */
.trend-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.trend-bg__line{ fill: none; stroke: #167a4a; stroke-linecap: round; stroke-linejoin: round; }
.trend-bg__line--1{ stroke-width: 3; opacity: 0.08; }
.trend-bg__line--2{ stroke-width: 2; opacity: 0.05; }
html[data-theme="dark"] .trend-bg__line--1{ opacity: 0.16; }
html[data-theme="dark"] .trend-bg__line--2{ opacity: 0.1; }

/* Theme toggle */
.theme-toggle{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.theme-toggle__track{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 46px;
  height: 26px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--white-10);
  border: 1px solid var(--white-22);
  transition: background 0.2s ease, border-color 0.2s ease;
}

html[data-theme="light"] .theme-toggle__track{
  background: var(--ink-6);
  border-color: var(--ink-16);
}

.theme-toggle svg{
  width: 12px;
  height: 12px;
  color: var(--white-55);
}

html[data-theme="light"] .theme-toggle svg{
  color: var(--ink-40);
}

.theme-toggle__thumb{
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

html[data-theme="light"] .theme-toggle__thumb{
  transform: translateX(20px);
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce){
  .theme-toggle__thumb{ transition: none; }
  .card{ animation: none; opacity: 1; transform: none; }
}

.theme-toggle:focus-visible .theme-toggle__track{
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Card */
.card{
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 560px;
  width: 100%;
  margin: auto;
  padding: 44px 26px 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease-out forwards;
}

@keyframes rise{
  to{ opacity: 1; transform: translateY(0); }
}

/* Card elements */
.card__subtitle{
  margin: 16px 0 0;
}

.card__logo{
  width: 200px;
  max-width: 62%;
  display: block;
  margin: 0 auto;
}

.card__divider{
  width: 52px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 26px auto 24px;
}

.card__description{
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--muted);
  text-align: left;
  margin: 0;
}

.card__description:last-of-type{
  margin-bottom: 30px;
}

.card__cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.card__cta:hover,
.card__cta:focus-visible{
  border-bottom-color: var(--green);
}

.card__cta:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}

.card__cta svg{
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.card__cta:hover svg{
  transform: translate(2px, -2px);
}

/* Social links */
.social{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.social__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social__link:hover,
.social__link:focus-visible{
  border-color: var(--green);
  color: var(--green);
}

.social__link:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.social__link svg{
  width: 16px;
  height: 16px;
}

.card__footer{
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Networks */
.networks{
  margin: 0 0 30px;
}

.networks__title{
  margin: 0 0 12px;
  text-align: left;
}

.networks__list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.networks__list li{
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

.networks__list--brands li{
  background: var(--bg-light);
  border: 1px solid var(--line);
}

/* Responsive */
@media (min-width: 480px){
  .card{
    padding: 56px 48px 44px;
  }
  .card__description{
    font-size: 16px;
  }
}
