/* Moody marketing site — light theme is the primary design; dark is an
   explicit opt-in via the nav toggle (data-theme="dark" on <html>). */

:root {
  --bg: #ffffff;
  --bg-tint: #f4f6fc;
  --text: #10131a;
  --text-secondary: #4b5468;
  --text-faint: #8a93a6;
  --border: #e4e8f2;

  --accent: #0246e8;
  --accent-hover: #0339bd;
  --accent-tint: #eaf0fe;
  --on-accent: #ffffff;

  --float-shadow: 0 20px 60px rgba(2, 20, 80, 0.12);
  --nav-shadow: 0 8px 30px rgba(2, 20, 80, 0.08);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-tint: #131826;
  --text: #f3f5fa;
  --text-secondary: #a7afc4;
  --text-faint: #6b7386;
  --border: #232b3d;

  --accent: #5b83ff;
  --accent-hover: #7b9bff;
  --accent-tint: #16223f;
  --on-accent: #0b0f1a;

  --float-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --nav-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

h1,
h2 {
  font-family: "Instrument Sans", "Inter", sans-serif;
  font-weight: 600;
  margin: 0;
}

main {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.brand img {
  border-radius: 6px;
  display: block;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background-color 200ms var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

/* Hero */

.hero {
  padding: 96px 0 112px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.hero h1 {
  max-width: 720px;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lede {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.5;
}

.waitlist {
  margin-top: 32px;
}

.waitlist button,
.nav-cta {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  height: 48px;
  padding: 0 28px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 30px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: background-color 200ms var(--ease), transform 150ms var(--ease), box-shadow 200ms var(--ease);
}

.waitlist button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

/* Product demo */

.app-demo {
  margin: 64px 0 0;
  width: 100%;
  max-width: 880px;
}

.app-window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  box-shadow: var(--float-shadow);
}

.window-chrome {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--accent);
}

.app-demo figcaption {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 14px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  justify-self: start;
}

.footer-brand img {
  border-radius: 5px;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
}

.footer-social a {
  display: inline-flex;
  color: var(--text-faint);
  transition: color 200ms var(--ease);
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-copyright {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
  justify-self: end;
}

/* Responsive */

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .lede {
    font-size: 17px;
  }

  .app-demo {
    margin-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-social,
  .footer-copyright {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
