:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --fg: #292524;
  --fg-soft: #78716c;
  --fg-strong: #44403c;
  --surface: #ffffff;
  --border: rgb(231 229 228 / 0.85);
  --accent: #65a30d;
  --accent-bright: #84cc16;
  --accent-text: #3f6212;
  --orb-lime: rgb(190 242 100 / 0.4);
  --orb-amber: rgb(253 230 138 / 0.55);
  --btn-primary-bg: #292524;
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: #1c1917;
  --trust-dot: #65a30d;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shadow-soft: 0 10px 30px rgb(28 25 23 / 0.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061018;
  --fg: #eef6f0;
  --fg-soft: #a7c0b0;
  --fg-strong: #d5e6db;
  --surface: #0f2430;
  --border: rgba(95, 194, 58, 0.16);
  --accent: #5fc23a;
  --accent-bright: #8adb5c;
  --accent-text: #8adb5c;
  --orb-lime: rgba(95, 194, 58, 0.22);
  --orb-amber: rgba(138, 219, 92, 0.1);
  --btn-primary-bg: linear-gradient(135deg, #6dcf45, #3d8f28);
  --btn-primary-fg: #04120d;
  --btn-primary-hover: linear-gradient(135deg, #7ad652, #449e2e);
  --trust-dot: #5fc23a;
  --shadow-soft: 0 18px 44px rgb(0 0 0 / 0.35);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.shell {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

html[data-theme="dark"] .shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(95, 194, 58, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 35% at 92% 40%, rgba(138, 219, 92, 0.09), transparent 55%),
    radial-gradient(ellipse 42% 32% at 8% 75%, rgba(61, 143, 40, 0.12), transparent 55%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb--lime {
  top: 2.5rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  background: var(--orb-lime);
}

.orb--amber {
  bottom: 0;
  left: -4rem;
  width: 14rem;
  height: 14rem;
  background: var(--orb-amber);
  animation-delay: -5s;
}

html[data-theme="dark"] .orb {
  display: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

@media (min-width: 768px) {
  .topbar {
    padding: 1.5rem 1.5rem 0;
  }
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.brand::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: 0.05em;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-soft);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

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

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

html[data-theme="light"] .theme-toggle__icon--sun,
html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 1.25rem 3rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards 0.05s;
}

.headline {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s ease forwards 0.15s;
}

.headline__accent {
  color: var(--accent-text);
  white-space: nowrap;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--fg-soft);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s ease forwards 0.28s;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s ease forwards 0.4s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--btn-primary-hover);
  filter: brightness(1.02);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.btn__arrow {
  transition: transform 0.2s ease;
}

.btn--primary:hover .btn__arrow {
  transform: translateX(2px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--fg-soft);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s ease forwards 0.52s;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--trust-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--trust-dot) 18%, transparent);
}

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

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(12px, -18px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .eyebrow,
  .headline,
  .lede,
  .actions,
  .trust {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: #d6d3d1;
  color: #1c1917;
}

html[data-theme="dark"] ::selection {
  background: rgba(95, 194, 58, 0.35);
  color: #ffffff;
}
